feat: Add the ability for a super admin to define account limits (#3946)

Fixes: #3773
This commit is contained in:
Sojan Jose
2022-02-14 15:55:08 +05:30
committed by GitHub
parent edd93ca4a3
commit 3d73d8935a
9 changed files with 71 additions and 14 deletions

View File

@@ -0,0 +1,9 @@
<div class="field-unit__label">
<%= f.label field.attribute %>
</div>
<div class="field-unit__field">
<% JSON.parse(field.to_s).each do |key,val| %>
<%= key %>: <%= number_field "account[limits]", key, value: val %> </br>
<% end %>
</div>

View File

@@ -0,0 +1 @@
<%= field.to_s %>

View File

@@ -0,0 +1,3 @@
<% JSON.parse(field.to_s).each do |k,v| %>
<%= k %>: <%= v %> </br>
<% end %>