Sha256: 05f142af39246f5aa3ea3b6cd53b3b6e0cd38cff643866d3a665e6391f06d589

Contents?: true

Size: 1.33 KB

Versions: 12

Compression:

Stored size: 1.33 KB

Contents

<% if people.empty? %>
  <div class="well"><p><%= t('kadmin.nothing_to_show') %></p></div>
<% else %>
  <table class='table table-hover table-striped'>
    <thead>
      <tr>
        <th style='width: 1%'>ID</th>
        <th style='width: 15%'>First name</th>
        <th style='width: 15%'>Last name</th>
        <th style='width: 20%'>Date of birth</th>
        <th style='width: 5%'>Gender</th>
        <th style='width: 9%'>Registered</th>
        <th style='width: 1%'>Actions</th>
      </tr>
    </thead>
    <tbody>
      <% people.each do |person| %>
      <tr>
        <td><%= link_to(person.id, admin_people_path(person.id)) %></td>
        <td><%= link_to(person.first_name, admin_person_path(person.id)) %></td>
        <td><%= link_to(person.last_name, admin_person_path(person.id)) %></td>
        <td><%= person.date_of_birth %></td>
        <td><%= t("person.genders.#{person.gender}") %></td>
        <td><%= person.created_at %></td>
        <td class="text-center">
          <%=
            dropdown('Actions...', [
              link_to('Edit', edit_admin_person_path(person.id)),
              link_to('Delete', admin_person_path(person.id), method: :delete, data: { confirm: "Are you sure you want to delete [#{person.full_name}]" })
            ])
          %>
        </td>
      </tr>
      <% end %>
    </tbody>
  </table>
<% end %>

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
kadmin-0.6.8 test/dummy/app/views/admin/people/_table.html.erb
kadmin-0.6.7 test/dummy/app/views/admin/people/_table.html.erb
kadmin-0.6.6 test/dummy/app/views/admin/people/_table.html.erb
kadmin-0.6.5 test/dummy/app/views/admin/people/_table.html.erb
kadmin-0.6.4 test/dummy/app/views/admin/people/_table.html.erb
kadmin-0.6.3 test/dummy/app/views/admin/people/_table.html.erb
kadmin-0.6.1 test/dummy/app/views/admin/people/_table.html.erb
kadmin-0.5.7 test/dummy/app/views/admin/people/_table.html.erb
kadmin-0.5.6 test/dummy/app/views/admin/people/_table.html.erb
kadmin-0.4.2 test/dummy/app/views/admin/people/_table.html.erb
kadmin-0.4.1 test/dummy/app/views/admin/people/_table.html.erb
kadmin-0.4.0 test/dummy/app/views/admin/people/_table.html.erb