mirror of
https://github.com/docusealco/docuseal
synced 2026-11-11 07:42:32 -05:00
add number format
This commit is contained in:
1 parent
fc5c4ff2fc
commit
6f7128a51c
7 files changed
+105
No files matched your search
@@ -39,6 +39,11 @@
|
||||
<% value = Time.current.in_time_zone(local_assigns[:timezone]).to_date.to_s if value == '{{date}}' %>
|
||||
<%= TimeUtils.format_date_string(value, field.dig('preferences', 'format'), local_assigns[:locale]) %>
|
||||
</div>
|
||||
<% elsif field['type'] == 'number' %>
|
||||
<autosize-field></autosize-field>
|
||||
<div class="flex items-center px-0.5 whitespace-nowrap">
|
||||
<%= NumberUtils.format_number(value, field.dig('preferences', 'format')) %>
|
||||
</div>
|
||||
<% else %>
|
||||
<autosize-field></autosize-field>
|
||||
<div class="flex items-center px-0.5 whitespace-pre-wrap"><%= Array.wrap(value).join(', ') %></div>
|
||||
|
||||
Reference in new issue
Block a user