EvoBal/app/views/filters/show.html.erb

34 lines
1,015 B
Plaintext

<% content_for :main_header do %>
<h1>Filter #<%= @filter.id %></h1>
<% end %>
<%= render(FlashNoticeComponent.new) { notice } if notice.present? %>
<%= turbo_frame_tag "filter" do %>
<%= render @filter %>
<% end %>
<div id="conditions">
<h2 class="text-xl py-1 font-semibold">Conditions</h2>
<div class="ml-6">
<%= render(@filter.conditions) || "<i class='italic'>No conditions yet</i>" %>
<%= turbo_frame_tag "new_condition" do %>
<%= link_to "Add a new condition", new_filter_condition_path(@filter) %>
<% end %>
</div>
</div>
<div id="operations">
<h2 class="text-xl py-1 font-semibold">Operations</h2>
<div class="ml-6">
<%= render(@filter.operations) || "<i class='italic'>No operations yet</i>" %>
<%= turbo_frame_tag "new_operation" do %>
<%= link_to "Add a new operation", new_filter_operation_path(@filter) %>
<% end %>
</div>
</div>
<div class="my-4">
<%= link_to '← Back to filters list', filters_path, class: "hover:text-blue-700" %>
</div>