Gli header Accept-Language dalle app e i fix di padding/menu sul web chiudono il giro password-policy; il doc guida il lavoro su Mac. Co-authored-by: Cursor <cursoragent@cursor.com>
69 lines
2.6 KiB
ERB
69 lines
2.6 KiB
ERB
<%# locals: (club:, payments:) %>
|
|
<section class="billing-documents" style="margin-top:40px">
|
|
<h2><%= t("billing.documents.heading") %></h2>
|
|
<p style="color:#888;font-size:0.9rem">
|
|
<%= t("billing.documents.lead") %>
|
|
</p>
|
|
|
|
<% unless club.billing_profile_complete? %>
|
|
<div class="flash alert" style="margin:16px 0">
|
|
<strong><%= t("billing.documents.incomplete_title") %></strong>
|
|
<%= t("billing.documents.incomplete_body") %>
|
|
<%= link_to t("billing.documents.complete_now"), public_club_billing_profile_path(club), class: "btn btn-secondary", style: "margin-top:10px;display:inline-block" %>
|
|
</div>
|
|
<% else %>
|
|
<p style="color:#888;font-size:0.88rem">
|
|
<%= t("billing.documents.holder_label", summary: club.billing_profile_summary) %>
|
|
· <%= link_to t("billing.documents.edit_data"), public_club_billing_profile_path(club) %>
|
|
</p>
|
|
<% end %>
|
|
|
|
<h3 style="margin-top:28px;font-size:1.1rem"><%= t("billing.documents.table_heading") %></h3>
|
|
<% if payments.any? %>
|
|
<div class="table-scroll">
|
|
<table class="data billing-table">
|
|
<thead>
|
|
<tr>
|
|
<th><%= t("billing.documents.col_date") %></th>
|
|
<th><%= t("billing.documents.col_description") %></th>
|
|
<th><%= t("billing.documents.col_amount") %></th>
|
|
<th><%= t("billing.documents.col_status") %></th>
|
|
<th><%= t("billing.documents.col_invoice") %></th>
|
|
<th></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<% payments.each do |payment| %>
|
|
<% inv = payment.invoice_for_display %>
|
|
<tr>
|
|
<td><%= payment.paid_at ? l_local(payment.paid_at, format: :short) : "—" %></td>
|
|
<td><%= payment.display_description %></td>
|
|
<td><%= payment.formatted_amount %></td>
|
|
<td><%= payment.display_status %></td>
|
|
<td>
|
|
<% if inv.present? %>
|
|
<%= inv.display_number %>
|
|
· <%= inv.display_status %>
|
|
<% else %>
|
|
—
|
|
<% end %>
|
|
</td>
|
|
<td>
|
|
<% if inv&.downloadable? %>
|
|
<%= link_to t("billing.documents.download_pdf"), public_club_billing_invoice_path(club, inv) %>
|
|
<% elsif inv&.draft? %>
|
|
<span style="color:#888"><%= t("billing.documents.pdf_preparing") %></span>
|
|
<% else %>
|
|
<span style="color:#888">—</span>
|
|
<% end %>
|
|
</td>
|
|
</tr>
|
|
<% end %>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<% else %>
|
|
<p style="color:#888"><%= t("billing.documents.no_payments") %></p>
|
|
<% end %>
|
|
</section>
|