<% content_for :main_header do %>

Filter #<%= @filter.id %>

<% end %>

<%= notice %>

<%= link_to '← Back to filters list', filters_path %> <%= turbo_frame_tag "filter" do %> <%= render @filter %> <% end %>

Conditions

<%= render(@filter.conditions) || "No conditions yet" %>
<%= turbo_frame_tag "new_condition" do %> <%= link_to "Add a new condition", new_filter_condition_path(@filter) %> <% end %>

Operations

<%= render(@filter.operations) || "No operations yet" %>
<%= turbo_frame_tag "new_operation" do %> <%= link_to "Add a new operation", new_filter_operation_path(@filter) %> <% end %>