Sha256: 9162fcbd55433cb8aeda5e952504d491c4f4a2b794fba574a847c21107dc99b0
Contents?: true
Size: 2 KB
Versions: 12
Compression:
Stored size: 2 KB
Contents
<div class="page-title"> <h2><span class="fa fa-file-o"></span> <%= t('admin.users.user_roles')%></h2> </div> <!-- PAGE CONTENT WRAPPER --> <div class="page-content-wrap"> <div class="row"> <div class="col-md-12"> <!-- START BASIC TABLE SAMPLE --> <div class="panel panel-default"> <div class="panel-heading"> <h3 class="panel-title"><%= t('admin.page_title.list')%></h3> <%= link_to raw("<i class='fa fa-plus'></i> #{t('admin.users.add_user_role')}"), {action: :new}, class: "btn btn-primary pull-right" %> </div> <div class="panel-body"> <table class="table"> <thead> <tr> <th><%= t('admin.table.id') %></th> <th><%= t('admin.table.name') %></th> <th><%= t('admin.table.description') %></th> <th><%= t('admin.table.actions') %></th> </tr> </thead> <tbody> <% @user_roles.each do |f| %> <tr> <td><%= f.id %></td> <td><%= f.name %></td> <td><%= f.description %></td> <td> <%= link_to raw('<i class="fa fa-pencil"></i>'), {action: :edit, id: f.id }, class: "btn btn-default btn-xs", title: "#{t('admin.button.edit')}" %> <%= link_to raw('<i class="fa fa-times"></i>'), { action: :destroy, id: f.id }, method: :delete, data: { confirm: t('admin.message.delete_item') }, class: "btn btn-danger btn-xs", title: "#{t('admin.button.delete')}" %> </td> </tr> <% end %> </tbody> </table> <%= content_tag("div", raw(t('admin.message.data_found_list')), class: "alert alert-warning") if @user_roles.empty? %> <%= will_paginate @user_roles, renderer: BootstrapPagination::Rails if @user_roles.present? %> </div> </div> <!-- END BASIC TABLE SAMPLE --> </div> </div> </div>
Version data entries
12 entries across 12 versions & 1 rubygems