2021-03-03 13:58:51 +01:00
|
|
|
<div id="<%= dom_id filter %>" class="<%= filter.enabled? ? 'filter--enabled' : 'filter--disabled' %> flex space-x-2 bg-green-500">
|
2021-02-01 14:02:54 +01:00
|
|
|
|
2021-03-03 13:58:51 +01:00
|
|
|
<div class="flex-auto bg-yellow-500">
|
2021-02-28 10:55:53 +01:00
|
|
|
<strong class="pr-1">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-03-03 13:58:51 +01:00
|
|
|
<div class="flex-auto bg-yellow-500">
|
2021-02-28 10:55:53 +01:00
|
|
|
<strong class="pr-1">Operator:</strong>
|
2021-02-01 14:02:54 +01:00
|
|
|
<%= filter.operator %>
|
2021-02-07 16:47:06 +01:00
|
|
|
</div>
|
2021-02-01 14:02:54 +01:00
|
|
|
|
2021-03-03 13:58:51 +01:00
|
|
|
<div class="flex-auto bg-yellow-500">
|
2021-02-28 10:55:53 +01:00
|
|
|
<strong class="pr-1">Inverted:</strong>
|
2021-02-07 16:47:06 +01:00
|
|
|
<%= filter.inverted? ? 'Yes' : 'No' %>
|
|
|
|
</div>
|
|
|
|
|
2021-03-03 13:58:51 +01:00
|
|
|
<div class="flex-none bg-gray-500 text-center">
|
|
|
|
<div class="">
|
|
|
|
<%= link_to 'Edit', edit_filter_path(@filter) %>
|
|
|
|
</div>
|
|
|
|
<div class="">
|
|
|
|
<%= link_to 'Delete', @filter, method: :delete, data: { confirm: 'Are you sure you want to delete this filter?' } %>
|
|
|
|
</div>
|
|
|
|
<div class="">
|
|
|
|
<% if filter.enabled? %>
|
|
|
|
<%= link_to 'Disable', disable_filter_path(@filter), data: { method: :patch, confirm: 'Are you sure you want to disable this filter?' } %>
|
|
|
|
<% else %>
|
|
|
|
<%= link_to 'Enable', enable_filter_path(@filter), data: { method: :patch, confirm: 'Are you sure you want to enable this filter?' } %>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
2021-02-07 16:47:06 +01:00
|
|
|
</div>
|
2021-02-01 14:02:54 +01:00
|
|
|
</div>
|