|
|
|
|
@ -1,5 +1,5 @@
|
|
|
|
|
<% align = field.dig('preferences', 'align') %>
|
|
|
|
|
<field-value dir="auto" class="flex absolute text-[1.5vw] lg:text-base <%= align == 'right' ? 'justify-end' : (align == 'center' ? 'justify-center' : '') %>" style="width: <%= area['w'] * 100 %>%; height: <%= area['h'] * 100 %>%; left: <%= area['x'] * 100 %>%; top: <%= area['y'] * 100 %>%">
|
|
|
|
|
<field-value dir="auto" class="flex absolute text-[1.5vw] lg:text-base <%= align == 'right' ? 'justify-end' : (align == 'center' ? 'justify-center' : '') %>" style="width: <%= area['w'] * 100 %>%; height: <%= area['h'] * 100 %>%; left: <%= area['x'] * 100 %>%; top: <%= area['y'] * 100 %>%; <%= "font-size: #{field['preferences']['font_size']}pt" if field.dig('preferences', 'font_size') %>">
|
|
|
|
|
<% if field['type'].in?(['signature', 'image', 'initials', 'stamp']) %>
|
|
|
|
|
<img class="object-contain mx-auto" src="<%= attachments_index[value].url %>" loading="lazy">
|
|
|
|
|
<% elsif field['type'].in?(['file', 'payment']) %>
|
|
|
|
|
|