<%= t("settings.#{feature.key}") %>
<%= t("settings.#{feature.key}_description", default: t("admin.settings.no_description")) %>
|
<% if feature.enabled? %>
<%= t ("admin.settings.index.features.enabled") %>
<% else %>
<%= t("admin.settings.index.features.disabled") %>
<% end %>
|
<%= form_for(feature, url: admin_setting_path(feature), html: { id: "edit_#{dom_id(feature)}"}) do |f| %>
<%= f.hidden_field :value, id: dom_id(feature), value: (feature.enabled? ? "" : "active") %>
<%= f.submit(t("admin.settings.index.features.#{feature.enabled? ? "disable" : "enable"}"),
class: "button expanded #{feature.enabled? ? "hollow alert" : "success"}",
data: {confirm: t("admin.actions.confirm")}) %>
<% end %>
|
<% end %>