feat: Ability to manage account features from super admin (#5455)
- This PR adds the ability to enable and disable features for an account from the super admin.
This commit is contained in:
8
app/views/fields/account_features_field/_form.html.erb
Normal file
8
app/views/fields/account_features_field/_form.html.erb
Normal file
@@ -0,0 +1,8 @@
|
||||
<div class="field-unit__label">
|
||||
<%= f.label field.attribute %>
|
||||
</div>
|
||||
<div class="field-unit__field">
|
||||
<% field.data.each do |key,val| %>
|
||||
<%= key %>: <%= check_box "enabled_features", "feature_#{key}", { checked: val }, true, false %>
|
||||
<% end %>
|
||||
</div>
|
||||
6
app/views/fields/account_features_field/_show.html.erb
Normal file
6
app/views/fields/account_features_field/_show.html.erb
Normal file
@@ -0,0 +1,6 @@
|
||||
<div class="field-unit__field">
|
||||
<% field.data.each do |key,val| %>
|
||||
<%= key %>: <%= val %> <br/>
|
||||
<% end %>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user