Tutte le view marketing, legali, viewer, dashboard e admin usano t(); mailer utente-facing e flash localizzati; admin con LocaleResolver e selettore lingua. Co-authored-by: Cursor <cursoragent@cursor.com>
27 lines
1.1 KiB
ERB
27 lines
1.1 KiB
ERB
<% content_for :title, t("auth.login.meta_title") %>
|
|
<% content_for :meta_description, t("auth.login.meta_description") %>
|
|
<% content_for :robots, "noindex, nofollow" %>
|
|
|
|
<section class="auth-page">
|
|
<h1><%= t("auth.login.title") %></h1>
|
|
<div class="card">
|
|
<%= form_with url: public_login_path do |f| %>
|
|
<%= render "shared/input_toggle",
|
|
name: :email,
|
|
label: t("auth.email"),
|
|
value: params[:email],
|
|
input_type: "email",
|
|
required: true,
|
|
autocomplete: "username" %>
|
|
<%= render "shared/input_toggle",
|
|
name: :password,
|
|
label: t("auth.password"),
|
|
required: true,
|
|
autocomplete: "current-password" %>
|
|
<p class="auth-forgot"><%= link_to t("auth.login.forgot_password"), public_password_forgot_path %></p>
|
|
<%= submit_tag t("auth.login.submit"), class: "btn btn-primary" %>
|
|
<% end %>
|
|
<p class="auth-footer"><%= raw t("auth.login.new_prompt_html", signup_link: link_to(t("auth.login.signup_link"), public_signup_path)) %></p>
|
|
</div>
|
|
</section>
|