We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 300d784 commit 5eab628Copy full SHA for 5eab628
lib/live_cal_web/live/organization_user_search_live.ex
@@ -27,7 +27,7 @@ defmodule LiveCalWeb.OrganizationUserSearchLive do
27
28
def render(assigns) do
29
~H"""
30
- <.form for={@form} phx-submit="submit">
+ <.form :let={f} for={@form} phx-submit="submit">
31
<.input field={@form[:organization_id]} phx-change="select-organization"
32
type="select"
33
label="First select an organization to load its users:"
@@ -41,6 +41,7 @@ defmodule LiveCalWeb.OrganizationUserSearchLive do
41
placeholder="user"
42
options={@user_options}
43
prompt="-- select user --"
44
+ :if={f.params["organization_id"]}
45
/>
46
<button>Submit</button>
47
</.form>
0 commit comments