Sha256: 8f711c3ca1f7ed6c4c57ba5860cb2b55e57ea009a78031fc574e909921cb61b7

Contents?: true

Size: 499 Bytes

Versions: 3

Compression:

Stored size: 499 Bytes

Contents

<div class="container">
  <h1>Editing site</h1>
  <%= render 'form' %>

  <h3>Edit Permissions</h3>
  <%= form_tag update_multiple_dashboard_roles_path, method: :patch do %>
    <% Storytime::Role.all.each do |role| %>
      <h4><%= role.label %></h4>
      <%= simple_fields_for "roles[#{role.id}][]", role do |f| %>
        <%= f.association :allowed_actions, as: :check_boxes, label: false %>
      <% end %>
    <% end %>
    <%= submit_tag "Save", class: "btn btn-primary" %>
  <% end %>
</div>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
storytime-0.0.4 app/views/storytime/dashboard/sites/edit.html.erb
storytime-0.0.2 app/views/storytime/dashboard/sites/edit.html.erb
storytime-0.0.1 app/views/storytime/dashboard/sites/edit.html.erb