Sha256: da41b0b8139939d141220bd73a71483d9dbba38c5f2ac8cd804b94461eb68781

Contents?: true

Size: 1.19 KB

Versions: 5

Compression:

Stored size: 1.19 KB

Contents

<% content_for :header do %>
  <div class="main-header--buttons">
    <%= link_to 'New User', new_manage_user_path, class: 'main-header--link btn btn-primary' %>    
  </div>
  <h3>Manage Users</h3>
<% end %>

<% content_for :content do %>
  <div class="main-table--row row">
    <div class="col-sm-12">

      <table class="table table-striped">
        <thead>
          <tr>
            <th colspan="3">Email</th>
            <th></th>
          </tr>
        </thead>
        <tbody>

          <% @users.order( :email ).each.with_index(1) do |manage_user, index| %>

            <tr>
              <td colspan="3"><%= manage_user.email %></td>
              <td><span class="glyphicon glyphicon-pencil" aria-hidden="true"></span> <%= link_to 'Edit', edit_manage_user_path( manage_user.id ) %> <span class="glyphicon glyphicon-trash" aria-hidden="true"></span> <%= link_to 'Destroy', manage_user_path( manage_user.id ), method: :delete, data: { confirm: 'Are you sure?' }, class: 'text-danger'  %></td>
            </tr>

          <% end %>

        </tbody>      
      </table>

      <%= link_to 'New User', new_manage_user_path, class: 'main-header--link btn btn-default' %>    

    </div>
  </div>

<% end %>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
binda-0.0.7 app/views/binda/manage/users/index.html.erb
binda-0.0.6 app/views/binda/manage/users/index.html.erb
binda-0.0.5 app/views/binda/manage/users/index.html.erb
binda-0.0.3 app/views/binda/manage/users/index.html.erb
binda-0.0.2 app/views/binda/manage/users/index.html.erb