%= form_tag update_multiple_dashboard_roles_path, method: :patch, remote: true, class: "storytime-modal-form" do %>
<% @roles.each do |role| %> | <%= role.label %> <%= hidden_field_tag "roles[#{role.id}][allowed_action_ids][]", nil %> | <% end %>
<%= action.name %> | <% @roles.each do |role| %>class="check_boxes optional" id="roles_<%= role.id %>_allowed_action_ids_<%= action.id %>" name="roles[<%= role.id %>][allowed_action_ids][]" type="checkbox" value="<%= action.id %>"> | <% end %>