<%= link_to t(:module_authorization), admin_authorizations_path(@module_app.key) %> <%= link_to t(:category_auth), admin_authorizations_path(@module_app.key, type: 'category') %> <%= link_to t(:approval_), admin_authorizations_path(@module_app.key, type: 'approval') %> <% if @error %> <%= @error %> <% else %> <%= select_tag :category, options_from_collection_for_select(@categories, "id", "title", @category.id), :onchange => "window.location.href = '/admin/authorizations/'+'#{@module_app.key}/#{@type}/'+$(this).val();" if @categories %> <% end %>
<%= link_to content_tag(:i, nil, class: "icons-plus") + ' ' + t(:add), '#', class: 'btn btn-primary select_user_modal', rel: admin_modal_select_authorizations_path(@module_app.key, @type, @category) %> <%= link_to content_tag(:i, nil, class: "icon-trash") + ' ' + t(:delete), '#', id: 'remove_users', class: 'btn btn-danger', rel: admin_remove_users_authorizations_path(@module_app.key, @type, @category) %>