mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-09-06 13:04:53 +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 -->
|
||||
<div :if={@selected_option} class="flex flex-col space-y-4">
|
||||
<.form
|
||||
:let={f}
|
||||
for={@form}
|
||||
id={"#{@selected_option}-form"}
|
||||
class="flex flex-col space-y-4"
|
||||
for={@form}
|
||||
phx-submit="save"
|
||||
phx-change="validate"
|
||||
>
|
||||
<div class="grid grid-cols-1 md:grid-cols-2 gap-3">
|
||||
<.text_field field={@form[:name]} label="Organization name" />
|
||||
<.emoji_field field={@form[:emoji]} label="Emoji" />
|
||||
<.text_field field={f[:name]} label="Organization name" autofocus />
|
||||
<.emoji_field field={f[:emoji]} label="Emoji" />
|
||||
</div>
|
||||
|
||||
<.password_field
|
||||
:if={@selected_option == "join-org"}
|
||||
field={@form[:teams_key]}
|
||||
field={f[:teams_key]}
|
||||
label="Livebook Teams key"
|
||||
/>
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue