summaryrefslogtreecommitdiff
path: root/app/views/events/without_node.html.erb
blob: bb27173bc2d4bc3df77a5821d6ce36774d059abb (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>Events without a node</h1>

<%= link_to '← All events', events_path %>
<%= link_to new_event_path, class: 'action_button' do %>
  <%= icon("plus", library: "tabler", "aria-hidden": true) %> Create event
<% end %>

<%= will_paginate @events %>

<table class="events_table">
  <tr class="header">
    <th>Title</th>
    <th>Start time</th>
    <th>End time</th>
    <th>Allday</th>
    <th>Url</th>
    <th></th>
  </tr>

<% @events.each do |event| %>
  <tr>
    <td><%= link_to event.display_title, event %></td>
    <td><%=h event.start_time %></td>
    <td><%=h event.end_time %></td>
    <td><%=h event.allday %></td>
    <td><%=h event.url %></td>
    <td><%= link_to 'edit', edit_event_path(event) %></td>
  </tr>
<% end %>
</table>