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,40 +1,38 @@
|
||||
<% content_for :title, "Staff trasmissione — #{@team.name}" %>
|
||||
<% content_for :title, t("team.invite.title", name: @team.name) %>
|
||||
<% content_for :robots, "noindex, nofollow" %>
|
||||
|
||||
<div class="wrap" style="padding-top:20px">
|
||||
<h1>Responsabili trasmissione</h1>
|
||||
<h1><%= t("team.invite.heading") %></h1>
|
||||
<p>
|
||||
Assegnati: <strong><%= @entitlements.staff_count_for("transmission") %> / <%= @entitlements.max_staff_transmission || "∞" %></strong>
|
||||
(per squadra, rinnovo annuale)
|
||||
<%= t("team.invite.assigned_label") %> <strong><%= @entitlements.staff_count_for("transmission") %> / <%= @entitlements.max_staff_transmission || "∞" %></strong>
|
||||
<%= t("team.invite.per_team_note") %>
|
||||
</p>
|
||||
<p class="muted" style="max-width:640px">
|
||||
Il responsabile trasmissione avvia la diretta dall’app (camera sul cavalletto).
|
||||
Per il punteggio da un secondo telefono non serve un account: condivide il <strong>link regia</strong> dalla schermata di trasmissione
|
||||
(WhatsApp, email, SMS, ecc.).
|
||||
<%= raw t("team.invite.info") %>
|
||||
</p>
|
||||
|
||||
<% owner_membership = current_user.user_teams.find_by(team: @team) %>
|
||||
<% if owner_membership&.staff_kind.blank? %>
|
||||
<div class="card" style="max-width:520px;margin-bottom:16px">
|
||||
<p style="margin:0 0 12px;color:#aaa;font-size:0.92rem">
|
||||
<strong><%= current_user.email %></strong> — puoi gestire tu camera e punteggio, oppure invitare altri per la trasmissione.
|
||||
<%= raw t("team.invite.self_assign_hint_html", email: current_user.email) %>
|
||||
</p>
|
||||
<%= button_to "Sono io — responsabile trasmissione", public_team_assign_self_staff_path(@team), method: :post, params: { staff_kind: "transmission" }, class: "btn btn-primary" %>
|
||||
<%= button_to t("team.invite.self_assign_submit"), public_team_assign_self_staff_path(@team), method: :post, params: { staff_kind: "transmission" }, class: "btn btn-primary" %>
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
<div class="card" style="max-width:520px">
|
||||
<h2 style="margin-top:0;font-size:1.05rem">Invita un’altra email</h2>
|
||||
<h2 style="margin-top:0;font-size:1.05rem"><%= t("team.invite.invite_other_heading") %></h2>
|
||||
<%= form_with url: public_team_invite_path(@team), method: :post do %>
|
||||
<%= hidden_field_tag :staff_kind, "transmission" %>
|
||||
<%= label_tag :email, "Email del responsabile trasmissione" %>
|
||||
<%= label_tag :email, t("team.invite.email_label") %>
|
||||
<%= email_field_tag :email, params[:email], required: true %>
|
||||
<%= submit_tag "Genera link di accesso", class: "btn btn-primary" %>
|
||||
<%= submit_tag t("team.invite.submit"), class: "btn btn-primary" %>
|
||||
<% end %>
|
||||
<% if defined?(@invite_url) && @invite_url.present? %>
|
||||
<p style="margin-top:16px">Condividi (valido 7 giorni):</p>
|
||||
<p style="margin-top:16px"><%= t("team.invite.share_hint") %></p>
|
||||
<code style="word-break:break-all;display:block;background:#0a0a0e;padding:12px;border-radius:8px"><%= @invite_url %></code>
|
||||
<% end %>
|
||||
</div>
|
||||
<p><%= link_to "← Dettagli squadra", public_team_details_path(@team) %></p>
|
||||
<p><%= link_to t("team.back_to_details"), public_team_details_path(@team) %></p>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user