mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-10-09 21:16:26 +08:00
Fix form :for deprecation
This commit is contained in:
parent
78cda8ced3
commit
08391f511c
4 changed files with 8 additions and 4 deletions
|
@ -16,7 +16,8 @@ defmodule LivebookWeb.HomeLive.ImportContentComponent do
|
||||||
</p>
|
</p>
|
||||||
<.form
|
<.form
|
||||||
:let={f}
|
:let={f}
|
||||||
for={:data}
|
for={%{}}
|
||||||
|
as={:data}
|
||||||
id="import-content"
|
id="import-content"
|
||||||
phx-submit="import"
|
phx-submit="import"
|
||||||
phx-change="validate"
|
phx-change="validate"
|
||||||
|
|
|
@ -31,7 +31,8 @@ defmodule LivebookWeb.HomeLive.ImportUrlComponent do
|
||||||
</p>
|
</p>
|
||||||
<.form
|
<.form
|
||||||
:let={f}
|
:let={f}
|
||||||
for={:data}
|
for={%{}}
|
||||||
|
as={:data}
|
||||||
phx-submit="import"
|
phx-submit="import"
|
||||||
phx-change="validate"
|
phx-change="validate"
|
||||||
phx-target={@myself}
|
phx-target={@myself}
|
||||||
|
|
|
@ -50,7 +50,8 @@ defmodule LivebookWeb.SessionLive.AttachedLive do
|
||||||
</p>
|
</p>
|
||||||
<.form
|
<.form
|
||||||
:let={f}
|
:let={f}
|
||||||
for={:data}
|
for={%{}}
|
||||||
|
as={:data}
|
||||||
phx-submit="init"
|
phx-submit="init"
|
||||||
phx-change="validate"
|
phx-change="validate"
|
||||||
autocomplete="off"
|
autocomplete="off"
|
||||||
|
|
|
@ -27,7 +27,8 @@ defmodule LivebookWeb.SettingsLive.AddFileSystemComponent do
|
||||||
<% end %>
|
<% end %>
|
||||||
<.form
|
<.form
|
||||||
:let={f}
|
:let={f}
|
||||||
for={:data}
|
for={%{}}
|
||||||
|
as={:data}
|
||||||
phx-target={@myself}
|
phx-target={@myself}
|
||||||
phx-submit="add"
|
phx-submit="add"
|
||||||
phx-change="validate"
|
phx-change="validate"
|
||||||
|
|
Loading…
Add table
Reference in a new issue