Sha256: 7f12cca0ab1f37e14e7e6186d94a74a9c1e24409c128f51af43778739e095497

Contents?: true

Size: 1.31 KB

Versions: 7

Compression:

Stored size: 1.31 KB

Contents

<%- model_class = Role -%>
<div class="page-header">
  <h1><%=t '.title', :default => model_class.model_name.human.pluralize %></h1>
</div>
<table class="table table-striped table-bordered table-condensed">
  <thead>
    <tr>
      <% index_fields do |field| %>
      <th><%= model_class.human_attribute_name(field) %></th>
      <% end %>
      <th><%=t '.actions', :default => t("helpers.actions") %></th>
    </tr>
  </thead>
  <tbody>
    <% @roles.each do |role| %>
      <tr>
        <td><%= link_to role.role_id, admin_role_path(role) %></td>
        <td><%= role.role_name %></td>
        <td><%= role.domain_role %></td>
        <td>
          <%= link_to t('.edit', :default => t("helpers.links.edit")),
                      edit_admin_role_path(role), :class => 'btn btn-mini' %>
          <%= link_to t('.destroy', :default => t("helpers.links.destroy")),
                      admin_role_path(role),
                      :method => :delete,
                      :data => { :confirm => t('.confirm', :default => t("helpers.links.confirm", :default => 'Are you sure?')) },
                      :class => 'btn btn-mini btn-danger' %>
        </td>
      </tr>
    <% end %>
  </tbody>
</table>

<%= link_to t('.new', :default => t("helpers.links.new")),
            new_admin_role_path,
            :class => 'btn btn-primary' %>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
unknown_admin-0.1.5 app/views/admin/admin/index.html.erb
unknown_admin-0.1.4 app/views/admin/admin/index.html.erb
unknown_admin-0.1.3 app/views/admin/admin/index.html.erb
unknown_admin-0.1.2 app/views/admin/admin/index.html.erb
unknown_admin-0.1.1 app/views/admin/admin/index.html.erb
unknown_admin-0.1.0 app/views/admin/admin/index.html.erb
unknown_admin-0.0.1 app/views/admin/admin/index.html.erb