Sha256: a1ec92a281da8b220f7b741d0e27f6487a9e0d16212f79312bcb3f14f988137f
Contents?: true
Size: 1.44 KB
Versions: 3
Compression:
Stored size: 1.44 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 :adeia_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 %> <%= action_f.hidden_field :_destroy, identifier: "destroy" %> <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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
adeia-0.15.4 | app/views/adeia/permissions/_form.html.erb |
adeia-0.15.3 | app/views/adeia/permissions/_form.html.erb |
adeia-0.15.2 | app/views/adeia/permissions/_form.html.erb |