Chatwoot/app/views/fields/account_features_field/_form.html.erb

10 lines
274 B
Text
Raw Permalink Normal View History

<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 %>
<br/>
<% end %>
</div>