<%= t('camaleon_cms.admin.users.user_roles')%>

<%= link_to raw(" #{t('camaleon_cms.admin.users.add_user_role')}"), {action: :new}, class: "btn btn-primary pull-right cama_ajax_request" %>
<% @user_roles.decorate.each do |f| %> <% end %>
<%= t('camaleon_cms.admin.table.id') %> <%= t('camaleon_cms.admin.table.name') %> <%= t('camaleon_cms.admin.table.description') %> <%= t('camaleon_cms.admin.table.actions') %>
<%= f.id %> <%= f.the_title %> <%= f.the_content %> <%= link_to raw(''), {action: :edit, id: f.id }, class: "btn btn-default btn-xs cama_ajax_request", title: "#{t('camaleon_cms.admin.button.edit')}" %> <% if f.editable? %> <%= link_to raw(''), { action: :destroy, id: f.id }, method: :delete, data: { confirm: t('camaleon_cms.admin.message.delete_item') }, class: "btn btn-danger btn-xs cama_ajax_request", title: t('camaleon_cms.admin.button.delete') %> <% else %> <%= link_to 'javascript:;', disabled: true, class: 'btn btn-danger btn-xs cama_ajax_request', title: t('camaleon_cms.admin.users.message.role_can_not_be_deleted', default: 'This role can not be deleted') do %> <% end %> <% end %>
<%= content_tag("div", raw(t('camaleon_cms.admin.message.data_found_list')), class: "alert alert-warning") if @user_roles.empty? %> <%= raw cama_do_pagination(@user_roles) %>