EvoBal/app/views/filters/index.html.erb

36 lines
805 B
Plaintext

<% content_for :main_header do %>
<h1>Filters</h1>
<% end %>
<p id="notice"><%= notice %></p>
<table>
<thead>
<tr>
<th>Description</th>
<th>Enabled</th>
<th>Operator</th>
<th>Inverted</th>
<th colspan="3"></th>
</tr>
</thead>
<tbody>
<% @filters.each do |filter| %>
<tr>
<td><%= filter.description %></td>
<td><%= filter.enabled %></td>
<td><%= filter.operator %></td>
<td><%= filter.inverted %></td>
<td><%= link_to 'Show', filter %></td>
<td><%= link_to 'Edit', edit_filter_path(filter) %></td>
<td><%= link_to 'Destroy', filter, method: :delete, data: { confirm: 'Are you sure?' } %></td>
</tr>
<% end %>
</tbody>
</table>
<br>
<%= link_to 'New Filter', new_filter_path %>