mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-09-10 23:14:35 +08:00
Autofocus "Organization name" in "Add Organization" form (#2855)
This commit is contained in:
parent
152ee04484
commit
7e6ba48832
1 changed files with 5 additions and 4 deletions
|
@ -87,20 +87,21 @@ defmodule LivebookWeb.Hub.NewLive do
|
||||||
<!-- FORMS -->
|
<!-- FORMS -->
|
||||||
<div :if={@selected_option} class="flex flex-col space-y-4">
|
<div :if={@selected_option} class="flex flex-col space-y-4">
|
||||||
<.form
|
<.form
|
||||||
|
:let={f}
|
||||||
|
for={@form}
|
||||||
id={"#{@selected_option}-form"}
|
id={"#{@selected_option}-form"}
|
||||||
class="flex flex-col space-y-4"
|
class="flex flex-col space-y-4"
|
||||||
for={@form}
|
|
||||||
phx-submit="save"
|
phx-submit="save"
|
||||||
phx-change="validate"
|
phx-change="validate"
|
||||||
>
|
>
|
||||||
<div class="grid grid-cols-1 md:grid-cols-2 gap-3">
|
<div class="grid grid-cols-1 md:grid-cols-2 gap-3">
|
||||||
<.text_field field={@form[:name]} label="Organization name" />
|
<.text_field field={f[:name]} label="Organization name" autofocus />
|
||||||
<.emoji_field field={@form[:emoji]} label="Emoji" />
|
<.emoji_field field={f[:emoji]} label="Emoji" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<.password_field
|
<.password_field
|
||||||
:if={@selected_option == "join-org"}
|
:if={@selected_option == "join-org"}
|
||||||
field={@form[:teams_key]}
|
field={f[:teams_key]}
|
||||||
label="Livebook Teams key"
|
label="Livebook Teams key"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue