mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-08-04 04:55:20 +02:00
Fix display for compound conditions
This commit is contained in:
parent
bcfbc4b324
commit
21623eeb2d
1 changed files with 5 additions and 1 deletions
|
@ -5,7 +5,11 @@
|
||||||
<% if rule.conditions.any? %>
|
<% if rule.conditions.any? %>
|
||||||
<p class="flex items-center flex-wrap gap-1.5">
|
<p class="flex items-center flex-wrap gap-1.5">
|
||||||
<span class="px-2 py-1 border border-alpha-black-200 rounded-full">
|
<span class="px-2 py-1 border border-alpha-black-200 rounded-full">
|
||||||
If <%= rule.conditions.first.filter.label %> <%= rule.conditions.first.operator %> <%= rule.conditions.first.value_display %>
|
<% if rule.conditions.first.compound? %>
|
||||||
|
If <%= rule.conditions.first.sub_conditions.first.filter.label %> <%= rule.conditions.first.sub_conditions.first.operator %> <%= rule.conditions.first.sub_conditions.first.value_display %>
|
||||||
|
<% else %>
|
||||||
|
If <%= rule.conditions.first.filter.label %> <%= rule.conditions.first.operator %> <%= rule.conditions.first.value_display %>
|
||||||
|
<% end %>
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
<% if rule.conditions.count > 1 %>
|
<% if rule.conditions.count > 1 %>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue