Completa i18n IT/EN/FR/DE/ES su sito pubblico, area autenticata e admin.
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>
This commit is contained in:
@@ -1,18 +1,18 @@
|
||||
<% content_for :title, "Registra la squadra — Match Live TV" %>
|
||||
<% content_for :meta_description, "Iscrivi la tua società sportiva giovanile su Match Live TV: dirette live da telefono, link per genitori e piani Free o Premium." %>
|
||||
<% content_for :title, t("auth.signup.meta_title") %>
|
||||
<% content_for :meta_description, t("auth.signup.meta_description") %>
|
||||
<% content_for :robots, "noindex, follow" %>
|
||||
|
||||
<section class="auth-page">
|
||||
<h1>Registra la squadra</h1>
|
||||
<p class="auth-lead">Crea l'account del referente (coach o dirigente), poi configurerai la squadra.</p>
|
||||
<h1><%= t("auth.signup.title") %></h1>
|
||||
<p class="auth-lead"><%= t("auth.signup.lead") %></p>
|
||||
<div class="card">
|
||||
<%= form_with model: @user, url: public_signup_path do |f| %>
|
||||
<%= f.label :name, "Nome" %>
|
||||
<%= f.label :name, t("auth.signup.name_label") %>
|
||||
<%= f.text_field :name, required: true %>
|
||||
<%= render "shared/input_toggle",
|
||||
name: "user[email]",
|
||||
id: "user_email",
|
||||
label: "Email",
|
||||
label: t("auth.email"),
|
||||
value: @user.email,
|
||||
input_type: "email",
|
||||
required: true,
|
||||
@@ -20,7 +20,7 @@
|
||||
<%= render "shared/input_toggle",
|
||||
name: "user[password]",
|
||||
id: "user_password",
|
||||
label: "Password",
|
||||
label: t("auth.password"),
|
||||
input_type: "text",
|
||||
required: true,
|
||||
minlength: 8,
|
||||
@@ -28,24 +28,25 @@
|
||||
<%= render "shared/input_toggle",
|
||||
name: "user[password_confirmation]",
|
||||
id: "user_password_confirmation",
|
||||
label: "Conferma password",
|
||||
label: t("auth.password_confirmation"),
|
||||
input_type: "text",
|
||||
required: true,
|
||||
autocomplete: "new-password" %>
|
||||
<label class="legal-accept">
|
||||
<%= check_box_tag :accept_terms, "1", false, required: true %>
|
||||
<span class="legal-accept-text">
|
||||
Ho letto e accetto l’<%= link_to "informativa privacy", public_privacy_path, target: "_blank", rel: "noopener" %>
|
||||
e i <%= link_to "termini di servizio", public_termini_path, target: "_blank", rel: "noopener" %>.
|
||||
<%= raw t(
|
||||
"auth.signup.legal_accept_html",
|
||||
privacy_link: link_to(t("auth.signup.privacy_link"), public_privacy_path, target: "_blank", rel: "noopener"),
|
||||
terms_link: link_to(t("auth.signup.terms_link"), public_termini_path, target: "_blank", rel: "noopener")
|
||||
) %>
|
||||
</span>
|
||||
</label>
|
||||
<p class="legal-accept-hint">
|
||||
Registrandoti dichiari di essere maggiorenne e, se operi per una società sportiva con atleti minorenni,
|
||||
di avere legittima facoltà (es. dirigente, coach autorizzato) e di rispettare le regole su immagini dei minori
|
||||
descritte in privacy.
|
||||
<%= t("auth.signup.legal_hint") %>
|
||||
</p>
|
||||
<%= f.submit "Continua", class: "btn btn-primary" %>
|
||||
<%= f.submit t("auth.signup.submit"), class: "btn btn-primary" %>
|
||||
<% end %>
|
||||
<p class="auth-footer">Hai già un account? <%= link_to "Accedi", public_login_path %></p>
|
||||
<p class="auth-footer"><%= raw t("auth.signup.has_account_html", login_link: link_to(t("auth.signup.login_link"), public_login_path)) %></p>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
Reference in New Issue
Block a user