<% provide :page_header do %>

<%= t('.header') %>

<% end %>
<% @feature_set.grouped_features.each do |group, features| -%> <% if @feature_set.grouped? -%> <% end -%> <% features.each do |feature| %> <% @feature_set.strategies.each do |strategy| -%> <% next unless strategy.is_a? Flipflop::Strategies::ActiveRecordStrategy %> <% end -%> <% end -%> <% end -%>
<%= t('.feature') %> <%= t('.description') %> <%= t('.action') %>

<%= t(group ? group.name : :default, scope: [:flipflop, :groups], default: group ? group.title : nil) -%>

<%= @feature_set.status(feature) -%> <%= feature.name.humanize -%> <%= feature.description -%>
<%= form_tag(hyrax.admin_feature_strategy_path(feature.key, strategy.key), method: :put) do -%>
<%= submit_tag "on", type: "submit", class: Flipflop.enabled?(feature.name.to_sym) ? 'active' : nil, disabled: !strategy.switchable? -%> <%= submit_tag "off", type: "submit", class: Flipflop.enabled?(feature.name.to_sym) ? nil : 'active', disabled: !strategy.switchable? -%>
<% end -%>