Sha256: 622e0669ed185fbd5fafb12f4fa310bed0e00a1ed992a72e9df7d574aecc68b8

Contents?: true

Size: 1.3 KB

Versions: 3

Compression:

Stored size: 1.3 KB

Contents

<% content_for :header do %>
  <div class="main-header--buttons">
    <%= link_to "<i class=\"fa fa-plus\" aria-hidden=\"true\"></i> New User".html_safe, new_manage_user_path, class: 'main-header--link b-btn b-btn-primary' %>
  </div>
  <h3>Manage Users</h3>
<% end %>

<% content_for :content do %>
  <div class="main-table--container">

    <table class="standard-form--container">
      <thead class="standard-form--header">
        <tr>
          <th style="width: 70%;">Email</th>
          <th style="width: 30%;"></th>
        </tr>
      </thead>
      <tbody>

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

          <tr>
            <td><%= manage_user.email %></td>
            <td class="main-table--actions">
              <%= link_to "<i class=\"fas fa-pencil-alt\"></i> Edit".html_safe, edit_manage_user_path( manage_user.id ) %>
              <%= link_to "<i class=\"far fa-trash-alt\"></i> Destroy".html_safe, manage_user_path( manage_user.id ), method: :delete, data: { confirm: 'Are you sure?' }, class: 'text-destroy'  %></td>
          </tr>

        <% end %>

      </tbody>
    </table>

    <%= link_to "<i class=\"fa fa-plus\" aria-hidden=\"true\"></i> New User".html_safe, new_manage_user_path, class: 'main-header--link b-btn b-btn-primary' %>

  </div>

<% end %>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
binda-0.1.3 app/views/binda/manage/users/index.html.erb
binda-0.1.2 app/views/binda/manage/users/index.html.erb
binda-0.1.1 app/views/binda/manage/users/index.html.erb