Sha256: 8f7d44f035dc042e4f66fc83ca8c4f8f0d35f6b4fe239e09ccd91a9eb80d579f

Contents?: true

Size: 1.87 KB

Versions: 11

Compression:

Stored size: 1.87 KB

Contents

<!-- 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">
            <h2 class="pull-left"><span class="fa fa-file-o"></span> <%= t('admin.users.user_roles')%></h2>
          <%= 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? %>
            <%= raw do_pagination(@user_roles) %>

        </div>

      </div>
      <!-- END BASIC TABLE SAMPLE -->
    </div>
  </div>

</div>

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
camaleon_cms-1.1.0 app/views/admin/user_roles/index.html.erb
camaleon_cms-1.0.9 app/views/admin/user_roles/index.html.erb
camaleon_cms-1.0.8 app/views/admin/user_roles/index.html.erb
camaleon_cms-1.0.7 app/views/admin/user_roles/index.html.erb
camaleon_cms-1.0.6 app/views/admin/user_roles/index.html.erb
camaleon_cms-1.0.5 app/views/admin/user_roles/index.html.erb
camaleon_cms-1.0.4 app/views/admin/user_roles/index.html.erb
camaleon_cms-1.0.3 app/views/admin/user_roles/index.html.erb
camaleon_cms-1.0.2 app/views/admin/user_roles/index.html.erb
camaleon_cms-1.0.1 app/views/admin/user_roles/index.html.erb
camaleon_cms-1.0 app/views/admin/user_roles/index.html.erb