25 lines
771 B
Plaintext
25 lines
771 B
Plaintext
<.focus_box>
|
|
<:title>New shared link</:title>
|
|
<:subtitle>
|
|
Password protection is optional. Please make sure you save it in a secure place. Once the link is created, we cannot reveal the password.
|
|
</:subtitle>
|
|
<.form
|
|
:let={f}
|
|
for={@changeset}
|
|
action={"/sites/#{URI.encode_www_form(@site.domain)}/shared-links"}
|
|
>
|
|
<div class="flex flex-col gap-y-4">
|
|
<.input field={f[:name]} label="Name" required="required" autocomplete="off" mt?={false} />
|
|
<.input
|
|
field={f[:password]}
|
|
label="Password (optional)"
|
|
type="password"
|
|
autocomplete="new-password"
|
|
mt?={false}
|
|
/>
|
|
|
|
<.button class="w-full mt-4" type="submit" mt?={false}>Create shared link</.button>
|
|
</div>
|
|
</.form>
|
|
</.focus_box>
|