Sha256: 4b95453c4fa363384b0b05175fde1cf04017cec85592d547757afb617aeba87e
Contents?: true
Size: 1.37 KB
Versions: 2
Compression:
Stored size: 1.37 KB
Contents
<div class="text"> <h1 class="heading-large"><%= t(".heading") %></h1> <table> <thead> <tr> <th scope="col"><%= t(".table.key") %></th> <th scope="col"><%= t(".table.status") %></th> <th scope="col"></th> </tr> </thead> <tbody> <% @feature_toggles.each do |feature_toggle| %> <tr> <td><%= feature_toggle.key %></th> <td> <span class="status-tag <%= feature_toggle.active ? "status-tag--active" : "status-tag--inactive" %>"> <%= feature_toggle.active ? t(".status.enabled") : t(".status.disabled") %> </span> </td> <td> <ul class="list"> <li> <%= form_for feature_toggle do |f| %> <%= f.hidden_field :active, value: !feature_toggle.active %> <%= f.submit t(".actions.toggle"), class: "button" %> <% end %> </li> <li> <%= delete_button_to t(".actions.delete"), feature_toggle_path(feature_toggle), { data: { confirm: "Are you sure?" }, class: "button button-red" } %> </li> </ul> </td> </tr> <% end %> </tbody> </table> <p> <%= link_to t(".new"), new_feature_toggle_path, class: "button" %> </p> </div>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
defra_ruby_features-0.1.1 | app/views/defra_ruby_features/feature_toggles/index.html.erb |
defra_ruby_features-0.1.0 | app/views/defra_ruby_features/feature_toggles/index.html.erb |