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,23 +1,23 @@
|
||||
<% content_for :title, "Programma partita — #{@club.name}" %>
|
||||
<% content_for :title, t("matches.club_new.title", name: @club.name) %>
|
||||
<% content_for :robots, "noindex, nofollow" %>
|
||||
|
||||
<div class="wrap" style="padding-top:20px;max-width:560px">
|
||||
<p class="results-hint" style="margin-bottom:8px">
|
||||
<%= link_to "← Dirette e partite", public_live_index_path(club_id: @club.id), class: "back-link" %>
|
||||
<%= link_to t("matches.club_new.back_link"), public_live_index_path(club_id: @club.id), class: "back-link" %>
|
||||
</p>
|
||||
<h1>Programma partita</h1>
|
||||
<h1><%= t("matches.club_new.heading") %></h1>
|
||||
<p style="color:#888">
|
||||
<%= @club.name %>
|
||||
<% if @club_admin %>
|
||||
· Puoi scegliere qualsiasi squadra della società
|
||||
<%= t("matches.club_new.admin_hint") %>
|
||||
<% else %>
|
||||
· Solo le squadre in cui sei responsabile trasmissione
|
||||
<%= t("matches.club_new.staff_hint") %>
|
||||
<% end %>
|
||||
</p>
|
||||
|
||||
<div class="card" style="margin-top:16px">
|
||||
<%= form_with url: public_club_matches_path(@club), method: :post, local: true do %>
|
||||
<%= label_tag :team_id, "Squadra" %>
|
||||
<%= label_tag :team_id, t("matches.club_new.team_label") %>
|
||||
<% if @schedulable_teams.size == 1 %>
|
||||
<%= hidden_field_tag :team_id, @selected_team.id %>
|
||||
<p style="margin:0 0 16px;font-weight:600"><%= @selected_team.name %></p>
|
||||
@@ -29,7 +29,7 @@
|
||||
|
||||
<%= render "public/matches/schedule_fields", match: @match %>
|
||||
|
||||
<%= submit_tag "Salva in programma", class: "btn btn-primary", style: "margin-top:20px" %>
|
||||
<%= submit_tag t("matches.club_new.submit"), class: "btn btn-primary", style: "margin-top:20px" %>
|
||||
<% end %>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user