90ceb4f6fe
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
33 lines
930 B
Elixir
33 lines
930 B
Elixir
<h2>Listing Events</h2>
|
|
|
|
<table class="table">
|
|
<thead>
|
|
<tr>
|
|
<th>Title</th>
|
|
<th>Description</th>
|
|
<th>Begin on</th>
|
|
<th>Ends on</th>
|
|
|
|
<th></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<%= for event <- @events do %>
|
|
<tr>
|
|
<td><%= event.title %></td>
|
|
<td><%= event.description %></td>
|
|
<td><%= event.begin_on %></td>
|
|
<td><%= event.ends_on %></td>
|
|
|
|
<td class="text-right">
|
|
<span><%= link "Show", to: event_path(@conn, :show, event), class: "btn btn-default btn-xs" %></span>
|
|
<span><%= link "Edit", to: event_path(@conn, :edit, event), class: "btn btn-default btn-xs" %></span>
|
|
<span><%= link "Delete", to: event_path(@conn, :delete, event), method: :delete, data: [confirm: "Are you sure?"], class: "btn btn-danger btn-xs" %></span>
|
|
</td>
|
|
</tr>
|
|
<% end %>
|
|
</tbody>
|
|
</table>
|
|
|
|
<span><%= link "New Event", to: event_path(@conn, :new) %></span>
|