29 lines
833 B
Plaintext
29 lines
833 B
Plaintext
<% content_for :main_header do %>
|
|
<h1>Filter #<%= @filter.id %></h1>
|
|
<% end %>
|
|
|
|
<p id="notice"><%= notice %></p>
|
|
|
|
<%= link_to '← Back to filters list', filters_path %>
|
|
|
|
<%= turbo_frame_tag "filter" do %>
|
|
<%= render @filter %>
|
|
<% end %>
|
|
|
|
<div id="conditions">
|
|
<h2 class="text-xl py-1 font-semibold">Conditions</h2>
|
|
<%= render(@filter.conditions) || "<i class='italic'>No conditions yet</i>" %>
|
|
</div>
|
|
|
|
<%= turbo_frame_tag "new_condition" do %>
|
|
<%= link_to "Add a new condition", new_filter_condition_path(@filter) %>
|
|
<% end %>
|
|
|
|
<div id="operations">
|
|
<h2 class="text-xl py-1 font-semibold">Operations</h2>
|
|
<%= render(@filter.operations) || "<i class='italic'>No operations yet</i>" %>
|
|
</div>
|
|
|
|
<%= turbo_frame_tag "new_operation" do %>
|
|
<%= link_to "Add a new operation", new_filter_operation_path(@filter) %>
|
|
<% end %> |