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, "Nuova squadra — #{@club.name}" %>
|
||||
<% content_for :title, t("team.new.title", name: @club.name) %>
|
||||
<% content_for :robots, "noindex, nofollow" %>
|
||||
|
||||
<section class="auth-page">
|
||||
<h1>Nuova squadra</h1>
|
||||
<p class="auth-lead">Società: <strong><%= @club.name %></strong></p>
|
||||
<h1><%= t("team.new.heading") %></h1>
|
||||
<p class="auth-lead"><%= t("team.new.club_label") %> <strong><%= @club.name %></strong></p>
|
||||
<div class="card card-wide">
|
||||
<%= form_with url: public_club_teams_path(@club), multipart: true do %>
|
||||
<%= label_tag "team[name]", "Nome squadra" %>
|
||||
<%= text_field_tag "team[name]", nil, required: true, placeholder: "es. Under 13, Serie C" %>
|
||||
<%= label_tag "team[sport]", "Sport" %>
|
||||
<%= label_tag "team[name]", t("team.new.name_label") %>
|
||||
<%= text_field_tag "team[name]", nil, required: true, placeholder: t("team.new.name_placeholder") %>
|
||||
<%= label_tag "team[sport]", t("team.sport_label") %>
|
||||
<%= select_tag "team[sport]", sport_catalog_options(@club.sport) %>
|
||||
<%= render "shared/branding_fields", record: Team.new(club: @club), show_inherit_hint: true, legend: "Override branding (opzionale)" %>
|
||||
<%= submit_tag "Aggiungi squadra", class: "btn btn-primary" %>
|
||||
<%= render "shared/branding_fields", record: Team.new(club: @club), show_inherit_hint: true, legend: t("team.new.branding_legend") %>
|
||||
<%= submit_tag t("team.new.submit"), class: "btn btn-primary" %>
|
||||
<% end %>
|
||||
</div>
|
||||
<p class="auth-footer"><%= link_to "← Società", public_club_path(@club) %></p>
|
||||
<p class="auth-footer"><%= link_to t("club.back_to_club"), public_club_path(@club) %></p>
|
||||
</section>
|
||||
|
||||
Reference in New Issue
Block a user