affichage flex pour les caractéristiques d'un filtre
This commit is contained in:
parent
99384001ed
commit
ff244a7e83
|
@ -1,27 +1,27 @@
|
|||
<div id="<%= dom_id filter %>" class="filter-<%= filter.enabled? ? 'enabled' : 'disabled' %> flex bg-orange-500 px-4">
|
||||
<div id="<%= dom_id filter %>" class="filter-<%= filter.enabled? ? 'enabled' : 'disabled' %> flex flex-row bg-green-500">
|
||||
|
||||
<div class="col-span-2 bg-yellow-500 px-4">
|
||||
<strong>Description:</strong>
|
||||
<div class="flex flex-grow bg-yellow-500">
|
||||
<strong class="pr-1">Description:</strong>
|
||||
<%= filter.description || "<i>No description</i>" %>
|
||||
</div>
|
||||
|
||||
<div class="bg-yellow-500 px-4">
|
||||
<strong>Operator:</strong>
|
||||
<div class="flex flex-grow bg-yellow-500">
|
||||
<strong class="pr-1">Operator:</strong>
|
||||
<%= filter.operator %>
|
||||
</div>
|
||||
|
||||
<div class="bg-yellow-500 px-4">
|
||||
<strong>Inverted:</strong>
|
||||
<div class="flex flex-grow bg-yellow-500">
|
||||
<strong class="pr-1">Inverted:</strong>
|
||||
<%= 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?' } %>
|
||||
<div class="flex flex-grow-0 flex-col bg-gray-500">
|
||||
<%= link_to 'Edit', edit_filter_path(@filter), class: "flex items-center" %>
|
||||
<%= button_to 'Delete', @filter, method: :delete, data: { confirm: 'Are you sure?' }, class: "flex items-center" %>
|
||||
<% if filter.enabled? %>
|
||||
<%= button_to 'Disable', filter_disable_path(@filter), data: { method: :patch } %>
|
||||
<%= button_to 'Disable', filter_disable_path(@filter), data: { method: :patch }, class: "flex items-center" %>
|
||||
<% else %>
|
||||
<%= button_to 'Enable', filter_enable_path(@filter), data: { method: :patch } %>
|
||||
<%= button_to 'Enable', filter_enable_path(@filter), data: { method: :patch }, class: "flex items-center" %>
|
||||
<% end %>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue