2021-02-07 16:47:06 +01:00
|
|
|
<div id="<%= dom_id filter %>" class="filter-<%= filter.enabled? ? 'enabled' : 'disabled' %> flex bg-orange-500 px-4">
|
2021-02-01 14:02:54 +01:00
|
|
|
|
2021-02-07 16:47:06 +01:00
|
|
|
<div class="col-span-2 bg-yellow-500 px-4">
|
2021-02-01 14:02:54 +01:00
|
|
|
<strong>Description:</strong>
|
2021-02-07 16:47:06 +01:00
|
|
|
<%= filter.description || "<i>No description</i>" %>
|
|
|
|
</div>
|
2021-02-01 14:02:54 +01:00
|
|
|
|
2021-02-07 16:47:06 +01:00
|
|
|
<div class="bg-yellow-500 px-4">
|
2021-02-01 14:02:54 +01:00
|
|
|
<strong>Operator:</strong>
|
|
|
|
<%= filter.operator %>
|
2021-02-07 16:47:06 +01:00
|
|
|
</div>
|
2021-02-01 14:02:54 +01:00
|
|
|
|
2021-02-07 16:47:06 +01:00
|
|
|
<div class="bg-yellow-500 px-4">
|
2021-02-01 14:02:54 +01:00
|
|
|
<strong>Inverted:</strong>
|
2021-02-07 16:47:06 +01:00
|
|
|
<%= filter.inverted? ? 'Yes' : 'No' %>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="grid grid-cols-1 divide-y flex-none bg-gray-500">
|
|
|
|
<%= link_to 'Edit', edit_filter_path(@filter) %>
|
|
|
|
<%= button_to 'Delete', @filter, method: :delete, data: { confirm: 'Are you sure?' } %>
|
|
|
|
<% if filter.enabled? %>
|
|
|
|
<%= button_to 'Disable', filter_disable_path(@filter), data: { method: :patch } %>
|
|
|
|
<% else %>
|
|
|
|
<%= button_to 'Enable', filter_enable_path(@filter), data: { method: :patch } %>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
2021-02-01 14:02:54 +01:00
|
|
|
</div>
|