Skip to content

Commit

Permalink
docs: update filter form doco (#116)
Browse files Browse the repository at this point in the history
  • Loading branch information
totaltrash authored Nov 13, 2023
1 parent 6f8a53b commit 1df8b7b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/ash_phoenix/filter_form/filter_form.ex
Original file line number Diff line number Diff line change
Expand Up @@ -75,19 +75,19 @@ defmodule AshPhoenix.FilterForm do
<div class="flex flex-row gap-2 items-center">Filter</div>
<div class="flex flex-row gap-2 items-center">
<.input type="select" field={@component[:operator]} options={["and", "or"]} />
<.button phx-click="add_filter_group" phx-value-component-id={@component.id} type="button">
<.button phx-click="add_filter_group" phx-value-component-id={@component.source.id} type="button">
Add Group
</.button>
<.button
phx-click="add_filter_predicate"
phx-value-component-id={@component.id}
phx-value-component-id={@component.source.id}
type="button"
>
Add Predicate
</.button>
<.button
phx-click="remove_filter_component"
phx-value-component-id={@component.id}
phx-value-component-id={@component.source.id}
type="button"
>
Remove Group
Expand Down Expand Up @@ -119,7 +119,7 @@ defmodule AshPhoenix.FilterForm do
<.input field={@component[:value]} />
<.button
phx-click="remove_filter_component"
phx-value-component-id={@component.id}
phx-value-component-id={@component.source.id}
type="button"
>
Remove
Expand Down

0 comments on commit 1df8b7b

Please sign in to comment.