add number currency format

This commit is contained in:
Pete Matsyburka committed 2025-01-17 21:08:13 +02:00
1 parent 37faa7ece6
commit 9aaf61e658
5 files changed
+40 -2

No files matched your search

+2
View File
@@ -222,6 +222,8 @@
</div>
<% elsif field['type'] == 'checkbox' %>
<%= svg_icon('check', class: 'w-6 h-6') %>
<% elsif field['type'] == 'number' %>
<%= NumberUtils.format_number(value, field.dig('preferences', 'format')) %>
<% elsif field['type'] == 'date' %>
<%= TimeUtils.format_date_string(value, field.dig('preferences', 'format'), @submission.account.locale) %>
<% else %>