Aggiunge fatturazione club, pagina regia condivisibile senza account, roster squadre e rimuove la modalità controller dall'app (v1.1.0). Co-authored-by: Cursor <cursoragent@cursor.com>
20 lines
878 B
Plaintext
20 lines
878 B
Plaintext
<%# locals: (club:, entitlements: nil, subscription: nil) %>
|
|
<% current_plan = entitlements&.plan || subscription&.plan || Plan["free"] %>
|
|
<p style="color:#aaa;margin-bottom:8px">
|
|
Società: <strong><%= club.name %></strong>
|
|
· Piano attuale: <strong><%= current_plan.name %></strong>
|
|
(valido per tutte le squadre)
|
|
· <%= link_to "Gestisci abbonamento", public_club_billing_path(club) %>
|
|
</p>
|
|
<% if subscription&.stripe_subscription_id.present? %>
|
|
<p style="color:#888;font-size:0.9rem;margin-top:0">
|
|
Stato Stripe: <strong><%= subscription.status %></strong>
|
|
<% if subscription.current_period_end.present? %>
|
|
· Rinnovo: <strong><%= l(subscription.current_period_end, format: :long) %></strong>
|
|
<% end %>
|
|
<% if subscription.cancel_at_period_end? %>
|
|
· <span style="color:#e53935">Disdetta alla scadenza</span>
|
|
<% end %>
|
|
</p>
|
|
<% end %>
|