summaryrefslogtreecommitdiff
path: root/app/views/occurrences/index.html.erb
blob: aa084ed97f53224075436fccf0f12bbe5d03eca7 (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
<h1>Occurrences</h1>

<table>
  <tr>
    <th>Summary</th>
    <th>Start time</th>
    <th>End time</th>
    <th>Node</th>
    <th>Event</th>
  </tr>

<% @occurrences.each do |occurrence| %>
  <tr>
    <td><%=h occurrence.summary %></td>
    <td><%=h occurrence.start_time %></td>
    <td><%=h occurrence.end_time %></td>
    <td><%=h occurrence.node_id %></td>
    <td><%=h occurrence.event_id %></td>
    <td><%= link_to 'Show', occurrence %></td>
    <td><%= link_to 'Edit', edit_occurrence_path(occurrence) %></td>
    <td><%= button_to occurrence, method: :delete, form: { data: { confirm: 'Are you sure?' }, class: 'button_to destructive' } do %>
      <%= icon("trash", library: "tabler", "aria-hidden": true) %> Destroy
    <% end %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New occurrence', new_occurrence_path %>