summaryrefslogtreecommitdiff
path: root/app/views/dispositions/index.html.erb
blob: c4f802344c401418837f7a37e921a080d9d5a1b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34

<div class="row">
  <div class="small-12 columns">
    <p id="notice"><%= notice %></p>

    <h1>Listing Dispositions</h1>
    <ul class="button-group">
      <li> <%= link_to 'New Disposition', new_disposition_path, class: 'button' %> </li>
    </ul>

    <table>
      <thead>
        <tr>
          <th>Fingerprint</th>
          <th>State</th>
          <th colspan="3"></th>
        </tr>
      </thead>

      <tbody>
        <% @dispositions.each do |disposition| %>
          <tr>
            <td><%= disposition.fingerprint %></td>
            <td><%= disposition.state %></td>
            <td><%= link_to 'Show', disposition %></td>
            <td><%= link_to 'Edit', edit_disposition_path(disposition) %></td>
            <td><%= link_to 'Destroy', disposition, method: :delete, data: { confirm: 'Are you sure?' } %></td>
          </tr>
        <% end %>
      </tbody>
    </table>

  </div>
</div>