Skip to content

Commit

Permalink
Update registration page with price details
Browse files Browse the repository at this point in the history
  • Loading branch information
odolbeau committed Jul 2, 2024
1 parent 4709aa4 commit d96f902
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions templates/admin/_cards/registration.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,11 @@
</div>

<ul class="list-group">
{% if registration.approvedPayment is not null %}
<li class="list-group-item">
<i class="fa-regular fa-credit-card fa-fw me-1"></i> Réglement de <b>{{ registration.approvedPayment.amount|format_price }}</b> pour <b>{{ registration.payingDaysOfPresence }} jours</b> de présence <i class="text-secondary">(soit {{ (registration.approvedPayment.amount / registration.payingDaysOfPresence)|format_price }}/jour)</i>.
</li>
{% endif %}
{% if arrivalDate is defined %}
<li class="list-group-item">
<i class="fa-solid fa-plane-arrival fa-fw me-1"></i> Arrivée prévue le {{ arrivalDate }} ({{ registration.stageRegistrationStart.stage.name }}) pour le {{ registration.stageRegistrationStart.firstMeal|trans|lower }}
Expand Down

0 comments on commit d96f902

Please sign in to comment.