18d3c40fb3
* feat: installation config in super admin console * Added the ability for super admins to view, edit and update installation config values. Also they can add new isntallation config values. The impact of editing and adding depends on which all installation config values are being used in the code. * Known limitation now: Ability to edit hash values (for eg: feature flags) are disabled. This requires more work and will be taken up in a secondary set of changes. * Minor UX improvement. Clicking on the Sidekiq option in the super admin siebar will now open the sidekiq dashboard in a new tab rather than in the same tab that you were using super admin. * fix: method name fix in custom adminsitrate field * feat: added locked attribute to global config * Added the locked attribute to instalaltion config table. Added necessary migrations. Added changes in config loader. * Added the changes on the installation config yml * Locked the account feature defaults in code * feat: show only editable configs in admin console * Added a new scope in installation config model * Added scope in adminstrate controller for installation_config * fix: new installation config create error * Fixed the error in new installation config create * fix: specs coverage * Added specs for installation config super admin controller * chore: update git ignore with encrypted config ext
19 lines
672 B
Text
19 lines
672 B
Text
<div class="field-unit field-unit--string">
|
|
<%= f.label field.attribute, class: "field-unit__label" %>
|
|
<div class="field-unit__field">
|
|
<% if field.array? %>
|
|
<% field.data.each do |sub_field| %>
|
|
<%= f.fields_for "#{field.attribute}[]", field.resource do |values_form| %>
|
|
<div class="field-unit">
|
|
<% sub_field.each do |sf_key, sf_value| %>
|
|
<%= values_form.label sf_key %>
|
|
<%= values_form.text_field sf_key, value: sf_value, disabled: true %>
|
|
<% end %>
|
|
</div>
|
|
<% end %>
|
|
<% end %>
|
|
<% else %>
|
|
<%= f.text_field field.attribute %>
|
|
<% end %>
|
|
</div>
|
|
</div>
|