2021-02-09 14:26:05 +01:00
|
|
|
<% content_for :main_header do %>
|
|
|
|
<h1>Filters</h1>
|
2021-02-07 16:47:06 +01:00
|
|
|
<% end %>
|
2021-02-01 14:02:54 +01:00
|
|
|
|
2021-02-07 16:47:06 +01:00
|
|
|
<p id="notice"><%= notice %></p>
|
2021-02-01 14:02:54 +01:00
|
|
|
|
|
|
|
<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 %>
|