Mostra in admin anagrafica e dati fiscali delle società.
Così Ops può emettere fattura dalla scheda club senza cercare il profilo solo tra i pagamenti pending. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -0,0 +1,45 @@
|
||||
<% owner = club.owner %>
|
||||
<% status = club.billing_profile_admin_status %>
|
||||
<% lines = club.billing_profile_invoice_lines.select { |_label, value| value.present? } %>
|
||||
|
||||
<section class="panel admin-club-profile" style="margin:16px 0 24px">
|
||||
<h3 style="font-size:1rem;margin:0 0 12px"><%= t("admin.clubs.show.profile_title") %></h3>
|
||||
|
||||
<h4 style="font-size:0.9rem;margin:0 0 8px;color:var(--muted)"><%= t("admin.clubs.show.owner_title") %></h4>
|
||||
<% if owner %>
|
||||
<dl class="billing-profile-dl" style="margin-bottom:16px">
|
||||
<dt><%= t("admin.clubs.show.owner_name") %></dt>
|
||||
<dd><%= owner.name %></dd>
|
||||
<dt><%= t("admin.clubs.show.owner_email") %></dt>
|
||||
<dd><%= mail_to owner.email %></dd>
|
||||
</dl>
|
||||
<% else %>
|
||||
<p class="muted" style="margin:0 0 16px"><%= t("admin.clubs.show.owner_none") %></p>
|
||||
<% end %>
|
||||
|
||||
<div style="display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:8px">
|
||||
<h4 style="font-size:0.9rem;margin:0;color:var(--muted)"><%= t("admin.clubs.show.billing_title") %></h4>
|
||||
<span class="admin-billing-status admin-billing-status--<%= status %>">
|
||||
<%= t("admin.clubs.billing_status.#{status}") %>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<% if status == :absent || lines.empty? %>
|
||||
<p class="muted" style="margin:0"><%= t("admin.clubs.show.billing_none") %></p>
|
||||
<% else %>
|
||||
<dl class="billing-profile-dl">
|
||||
<% lines.each do |label, value| %>
|
||||
<dt><%= label %></dt>
|
||||
<dd><%= value %></dd>
|
||||
<% end %>
|
||||
</dl>
|
||||
<% end %>
|
||||
|
||||
<% if status == :incomplete %>
|
||||
<ul class="muted" style="margin:12px 0 0;padding-left:1.2rem;font-size:0.88rem">
|
||||
<% club.billing_profile_errors.each do |message| %>
|
||||
<li><%= message %></li>
|
||||
<% end %>
|
||||
</ul>
|
||||
<% end %>
|
||||
</section>
|
||||
Reference in New Issue
Block a user