Sha256: c56d5d3125fa7a3034ea2aa23ad0197d5893c069af2dbf0ce33b0a92ee43cac4

Contents?: true

Size: 902 Bytes

Versions: 13

Compression:

Stored size: 902 Bytes

Contents

<%= render 'backend/breadcrumbs' %>

<p class="text-xs-right">
  <%= link_to icon(:plus, t('b.add')), new_backend_admin_path, class: 'btn btn-primary btn-sm' %>
</p>

<% if @admins.any? %>
  <table class="table table-hover table-striped">
    <thead class="thead-inverse">
      <tr>
        <th><%= t 'b.name' %></th>
        <th><%= t 'b.email' %></th>
        <th>&nbsp;</th>
      </tr>
    </thead>

    <tbody>
      <% @admins.each do |a| %>
        <tr>
          <td><%= a.full_name %></td>
          <td><%= mail_to a.email %></td>
          <td class="text-xs-right">
            <%= link_to icon(:pencil_square_o), edit_backend_admin_path(a) %>
            <%= link_to icon(:trash), backend_admin_path(a), method: :delete, data: { confirm: t('b.msg.confirm') }%>
          </td>
        </tr>
      <% end %>
    </tbody>
  </table>

<% else %>
  <p><%= t 'b.msg.no_items' %></p>
<% end %>

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
udongo-4.0.0 app/views/backend/admins/index.html.erb
udongo-3.0.0 app/views/backend/admins/index.html.erb
udongo-2.0.4 app/views/backend/admins/index.html.erb
udongo-2.0.3 app/views/backend/admins/index.html.erb
udongo-2.0.2 app/views/backend/admins/index.html.erb
udongo-2.0.1 app/views/backend/admins/index.html.erb
udongo-2.0.0 app/views/backend/admins/index.html.erb
udongo-1.0.4 app/views/backend/admins/index.html.erb
udongo-1.0.3 app/views/backend/admins/index.html.erb
udongo-1.0.2 app/views/backend/admins/index.html.erb
udongo-1.0.1 app/views/backend/admins/index.html.erb
udongo-1.0.0 app/views/backend/admins/index.html.erb
udongo-0.1.0 app/views/backend/admins/index.html.erb