feat: Add the ability for a super admin to define account limits (#3946)
Fixes: #3773
This commit is contained in:
9
app/views/fields/account_limits_field/_form.html.erb
Normal file
9
app/views/fields/account_limits_field/_form.html.erb
Normal 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>
|
||||
1
app/views/fields/account_limits_field/_index.html.erb
Normal file
1
app/views/fields/account_limits_field/_index.html.erb
Normal file
@@ -0,0 +1 @@
|
||||
<%= field.to_s %>
|
||||
3
app/views/fields/account_limits_field/_show.html.erb
Normal file
3
app/views/fields/account_limits_field/_show.html.erb
Normal file
@@ -0,0 +1,3 @@
|
||||
<% JSON.parse(field.to_s).each do |k,v| %>
|
||||
<%= k %>: <%= v %> </br>
|
||||
<% end %>
|
||||
Reference in New Issue
Block a user