2021-02-07 16:47:06 +01:00
|
|
|
<% content_for :main_title do %>
|
|
|
|
Filter #<%= @filter.id %>
|
|
|
|
<% end %>
|
|
|
|
|
2021-02-01 14:02:54 +01:00
|
|
|
<p id="notice"><%= notice %></p>
|
|
|
|
|
2021-02-07 16:47:06 +01:00
|
|
|
<%= link_to 'Back to filters list', filters_path %>
|
|
|
|
|
2021-02-01 14:02:54 +01:00
|
|
|
<%= turbo_frame_tag "filter" do %>
|
|
|
|
<%= render @filter %>
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<div id="conditions">
|
|
|
|
<h2>Conditions</h2>
|
|
|
|
<%= render(@filter.conditions) || "No conditions yet" %>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<%= turbo_frame_tag "new_condition", src: new_filter_condition_path(@filter), target: "_top" %>
|
|
|
|
|
|
|
|
<div id="operations">
|
|
|
|
<h2>Operations</h2>
|
|
|
|
<%= render(@filter.operations) || "No operations yet" %>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<%= turbo_frame_tag "new_operation", src: new_filter_operation_path(@filter), target: "_top" %>
|