Sha256: 4f600a4f06857055a2737ee1b5d7d874d036eee9e933eae090d368c57663d6a1
Contents?: true
Size: 1.37 KB
Versions: 1
Compression:
Stored size: 1.37 KB
Contents
<%= form_for @permission do |f| %> <%= render 'error_messages', object: f.object %> <%= f.label :permission_type %> <%= f.select :permission_type, options_for_enum(@permission, :permission_type) %> <%= f.label :adeia_element_id %> <%= f.collection_select :element_id, Adeia::Element.all, :id, :name %> <%= f.label :global_owner %> <%= f.grouped_collection_select :global_owner, [ User, Adeia::Group ], :all, :human_name, :to_global_id, :name %> <%= f.label :read_right %> <%= f.check_box :read_right %> <%= f.label :create_right %> <%= f.check_box :create_right %> <%= f.label :update_right %> <%= f.check_box :update_right %> <%= f.label :destroy_right %> <%= f.check_box :destroy_right %> <%= f.label :resource_id %> <%= f.number_field :resource_id %> <%= f.fields_for :actions, (@permission.actions.build unless @permission.actions.any?) do |action_f| %> <div class="fields-for"> <div class="actions-fields"> <%= action_f.label :name %> <%= action_f.text_field :name %> <button class="remove-fields" data-type="actions"><%= t "adeia.permissions.form.actions.destroy" %></button> </div> <button class="add-fields" data-type="actions" data-count="<%= @permission.actions.count %>"> <%= t "adeia.permissions.form.actions.add" %> </button> </div> <% end %> <%= f.submit %> <% end %>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
adeia-0.10.2 | app/views/adeia/permissions/_form.html.erb |