Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
janwillemvd committed Aug 7, 2023
1 parent 0b6972c commit 6ba6a4b
Show file tree
Hide file tree
Showing 10 changed files with 79 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,13 @@ defmodule <%= inspect context.web_module %>.<%= inspect Module.concat(schema.web
</.header>
<.simple_form for={@form} id="resend_confirmation_form" phx-submit="send_instructions">
<.input field={@form[:email]} type="email" placeholder="Email" autocomplete="username" required />
<.input
field={@form[:email]}
type="email"
placeholder="Email"
autocomplete="username"
required
/>
<:actions>
<.button phx-disable-with="Sending..." class="w-full">
Resend confirmation instructions
Expand Down
8 changes: 7 additions & 1 deletion priv/templates/phx.gen.auth/forgot_password_live.ex
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,13 @@ defmodule <%= inspect context.web_module %>.<%= inspect Module.concat(schema.web
</.header>
<.simple_form for={@form} id="reset_password_form" phx-submit="send_email">
<.input field={@form[:email]} type="email" placeholder="Email" autocomplete="username" required />
<.input
field={@form[:email]}
type="email"
placeholder="Email"
autocomplete="username"
required
/>
<:actions>
<.button phx-disable-with="Sending..." class="w-full">
Send password reset instructions
Expand Down
8 changes: 7 additions & 1 deletion priv/templates/phx.gen.auth/login_live.ex
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,13 @@ defmodule <%= inspect context.web_module %>.<%= inspect Module.concat(schema.web
<.simple_form for={@form} id="login_form" action={~p"<%= schema.route_prefix %>/log_in"} phx-update="ignore">
<.input field={@form[:email]} type="email" label="Email" autocomplete="username" required />
<.input field={@form[:password]} type="password" label="Password" autocomplete="current-password" required />
<.input
field={@form[:password]}
type="password"
label="Password"
autocomplete="current-password"
required
/>
<:actions>
<.input field={@form[:remember_me]} type="checkbox" label="Keep me logged in" />
Expand Down
8 changes: 7 additions & 1 deletion priv/templates/phx.gen.auth/registration_live.ex
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,13 @@ defmodule <%= inspect context.web_module %>.<%= inspect Module.concat(schema.web
</.error>
<.input field={@form[:email]} type="email" label="Email" autocomplete="username" required />
<.input field={@form[:password]} type="password" label="Password" autocomplete="new-password" required />
<.input
field={@form[:password]}
type="password"
label="Password"
autocomplete="new-password"
required
/>
<:actions>
<.button phx-disable-with="Creating account..." class="w-full">Create an account</.button>
Expand Down
8 changes: 7 additions & 1 deletion priv/templates/phx.gen.auth/registration_new.html.heex
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,13 @@
</.error>

<.input field={f[:email]} type="email" label="Email" autocomplete="username" required />
<.input field={f[:password]} type="password" label="Password" autocomplete="new-password" required />
<.input
field={f[:password]}
type="password"
label="Password"
autocomplete="new-password"
required
/>

<:actions>
<.button phx-disable-with="Creating account..." class="w-full">Create an account</.button>
Expand Down
8 changes: 7 additions & 1 deletion priv/templates/phx.gen.auth/reset_password_edit.html.heex
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,13 @@
Oops, something went wrong! Please check the errors below.
</.error>

<.input field={f[:password]} type="password" label="New Password" autocomplete="new-password" required />
<.input
field={f[:password]}
type="password"
label="New Password"
autocomplete="new-password"
required
/>
<.input
field={f[:password_confirmation]}
type="password"
Expand Down
8 changes: 7 additions & 1 deletion priv/templates/phx.gen.auth/reset_password_live.ex
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,13 @@ defmodule <%= inspect context.web_module %>.<%= inspect Module.concat(schema.web
Oops, something went wrong! Please check the errors below.
</.error>
<.input field={@form[:password]} type="password" label="New password" autocomplete="new-password" required />
<.input
field={@form[:password]}
type="password"
label="New password"
autocomplete="new-password"
required
/>
<.input
field={@form[:password_confirmation]}
type="password"
Expand Down
8 changes: 7 additions & 1 deletion priv/templates/phx.gen.auth/session_new.html.heex
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,13 @@
<.error :if={@error_message}><%%= @error_message %></.error>

<.input field={f[:email]} type="email" label="Email" autocomplete="username" required />
<.input field={f[:password]} type="password" label="Password" autocomplete="current-password" required />
<.input
field={f[:password]}
type="password"
label="Password"
autocomplete="current-password"
required
/>

<:actions :let={f}>
<.input field={f[:remember_me]} type="checkbox" label="Keep me logged in" />
Expand Down
12 changes: 9 additions & 3 deletions priv/templates/phx.gen.auth/settings_edit.html.heex
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,18 @@

<.input field={f[:action]} type="hidden" name="action" value="update_password" />

<.input field={f[:password]} type="password" label="New password" autocomplete="new-password" required />
<.input
field={f[:password]}
type="password"
label="New password"
autocomplete="new-password"
required
/>
<.input
field={f[:password_confirmation]}
type="password"
label="Confirm new password"
autocomplete="new-password"
autocomplete="new-password"
required
/>

Expand All @@ -55,7 +61,7 @@
type="password"
label="Current password"
id="current_password_for_password"
autocomplete="current-password"
autocomplete="current-password"
required
/>
<:actions>
Expand Down
16 changes: 14 additions & 2 deletions priv/templates/phx.gen.auth/settings_live.ex
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,13 @@ defmodule <%= inspect context.web_module %>.<%= inspect Module.concat(schema.web
phx-submit="update_email"
phx-change="validate_email"
>
<.input field={@email_form[:email]} type="email" label="Email" autocomplete="username" required />
<.input
field={@email_form[:email]}
type="email"
label="Email"
autocomplete="username"
required
/>
<.input
field={@email_form[:current_password]}
name="current_password"
Expand Down Expand Up @@ -51,7 +57,13 @@ defmodule <%= inspect context.web_module %>.<%= inspect Module.concat(schema.web
autocomplete="username"
value={@current_email}
/>
<.input field={@password_form[:password]} type="password" label="New password" autocomplete="new-password" required />
<.input
field={@password_form[:password]}
type="password"
label="New password"
autocomplete="new-password"
required
/>
<.input
field={@password_form[:password_confirmation]}
type="password"
Expand Down

0 comments on commit 6ba6a4b

Please sign in to comment.