scheduled_reminders/app/views/reminders/index.html.erb

32 lines
693 B
Plaintext
Raw Normal View History

2020-02-12 13:57:03 +01:00
<p id="notice"><%= notice %></p>
<h1>Reminders</h1>
<table>
<thead>
<tr>
<th>Title</th>
<th>Body</th>
<th>Date</th>
<th colspan="3"></th>
</tr>
</thead>
<tbody>
<% @reminders.each do |reminder| %>
<tr>
<td><%= reminder.title %></td>
<td><%= reminder.body %></td>
<td><%= reminder.date %></td>
<td><%= link_to 'Show', reminder %></td>
<td><%= link_to 'Edit', edit_reminder_path(reminder) %></td>
<td><%= link_to 'Destroy', reminder, method: :delete, data: { confirm: 'Are you sure?' } %></td>
</tr>
<% end %>
</tbody>
</table>
<br>
<%= link_to 'New Reminder', new_reminder_path %>