Ops può correggere dati clienti errati (es. email titolare) dalla scheda società senza interventi manuali sul DB. Co-authored-by: Cursor <cursoragent@cursor.com>
64 lines
2.6 KiB
ERB
64 lines
2.6 KiB
ERB
<p style="margin-bottom:16px"><%= link_to t("admin.clubs.show.back"), admin_clubs_path %></p>
|
|
|
|
<h2><%= @club.name %></h2>
|
|
<p style="color:#888">
|
|
<%= t("admin.clubs.show.sport_label", sport: @club.sport) %>
|
|
· <%= link_to t("admin.clubs.show.recordings_archive"), admin_club_recordings_path(@club) %>
|
|
· <%= link_to t("admin.clubs.show.billing_link"), admin_billing_path(club_id: @club.id) %>
|
|
· <%= link_to t("admin.clubs.show.youtube_platform_link"), admin_youtube_platform_path %>
|
|
· <%= link_to t("admin.clubs.show.edit_link"), edit_admin_club_path(@club) %>
|
|
</p>
|
|
|
|
<%= render "admin/clubs/billing_profile", club: @club %>
|
|
|
|
|
|
<%= render "admin/clubs/comped_form", club: @club, subscription: @subscription, return_to: admin_club_path(@club) %>
|
|
<%= render "admin/clubs/quote_form", club: @club, quote: @quote, return_to: admin_club_path(@club) %>
|
|
|
|
<% cred = @club.youtube_credential %>
|
|
<p style="margin-top:16px">
|
|
<strong><%= t("admin.clubs.show.youtube_club_label") %></strong>
|
|
<% if cred %>
|
|
<%= cred.channel_title.presence || cred.channel_id %> <%= t("admin.clubs.show.youtube_connected") %>
|
|
<% elsif @teams.any? { |t| t.entitlements.premium_full? } %>
|
|
<span class="muted"><%= t("admin.clubs.show.youtube_premium_full_not_connected") %></span>
|
|
<% else %>
|
|
<span class="muted"><%= t("admin.common.dash") %></span>
|
|
<% end %>
|
|
</p>
|
|
|
|
<h3 style="font-size:1rem;margin-top:28px"><%= t("admin.clubs.show.teams_title") %></h3>
|
|
<% if @teams.empty? %>
|
|
<p class="muted"><%= t("admin.clubs.show.no_teams") %></p>
|
|
<% else %>
|
|
<table class="admin-table">
|
|
<thead>
|
|
<tr>
|
|
<th><%= t("admin.clubs.show.table.team") %></th>
|
|
<th><%= t("admin.clubs.show.table.sport") %></th>
|
|
<th></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<% @teams.each do |team| %>
|
|
<tr>
|
|
<td><strong><%= team.name %></strong></td>
|
|
<td><%= team.sport %></td>
|
|
<td><%= link_to t("admin.clubs.show.matches_and_details"), admin_team_path(team) %> · <%= link_to t("admin.clubs.show.replay"), admin_club_recordings_path(@club, team_id: team.id) %></td>
|
|
</tr>
|
|
<% end %>
|
|
</tbody>
|
|
</table>
|
|
<% end %>
|
|
|
|
<h3 style="font-size:1rem;margin-top:28px"><%= t("admin.clubs.show.concurrency_title") %></h3>
|
|
<p class="muted"><%= t("admin.clubs.show.concurrency_lead") %></p>
|
|
<%= render "admin/stream_concurrency_violations/table",
|
|
violations: @concurrency_violations,
|
|
empty_key: "admin.clubs.show.concurrency_none" %>
|
|
<% if @concurrency_violations.any? %>
|
|
<p class="kpi-sub" style="margin-top:0.75rem">
|
|
<%= link_to t("admin.clubs.show.concurrency_all"), admin_stream_concurrency_violations_path(q: @club.name) %>
|
|
</p>
|
|
<% end %>
|