mirror of
https://github.com/docusealco/docuseal
synced 2026-11-09 23:42:32 -05:00
render image as file
This commit is contained in:
1 parent
bf2f5b24dc
commit
cd477c880c
4 files changed
+13
-8
No files matched your search
@@ -28,9 +28,9 @@
|
||||
</div>
|
||||
<% end %>
|
||||
</div>
|
||||
<% elsif field['type'].in?(['image', 'initials', 'stamp']) %>
|
||||
<% elsif field['type'].in?(['image', 'initials', 'stamp']) && attachments_index[value].image? %>
|
||||
<img class="object-contain mx-auto" src="<%= attachments_index[value].url %>" loading="lazy">
|
||||
<% elsif field['type'].in?(['file', 'payment']) %>
|
||||
<% elsif field['type'].in?(['file', 'payment', 'image']) %>
|
||||
<autosize-field></autosize-field>
|
||||
<div class="px-0.5 flex flex-col justify-center">
|
||||
<% Array.wrap(value).each do |val| %>
|
||||
|
||||
Reference in new issue
Block a user