Skip to content

Commit

Permalink
Ref #215: show bank name when there is one defined
Browse files Browse the repository at this point in the history
  • Loading branch information
LucileDT committed Dec 13, 2020
1 parent cf8fb45 commit 19f089f
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
8 changes: 7 additions & 1 deletion templates/Donation/show.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,13 @@
</tr>
<tr>
<th>{% trans %}Réglé via...{% endtrans %}</th>
<td>{{ donation.payment.type.label }}</td>
<td>
{{ donation.payment.type.label }}
{% if(donation.payment.bank is not null) %}
({{ donation.payment.bank.name }})
{% endif %}

</td>
</tr>
<tr>
<th>{% trans %}Commentaire{% endtrans %}</th>
Expand Down
10 changes: 9 additions & 1 deletion templates/Membership/show.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,15 @@
<div class="col-6">
<h4>{% trans %}Montant du paiement{% endtrans %}&nbsp;: <small>{{ membership.payment.amount }}&nbsp;€</small></h4>
<br>
<h4>{% trans %}Payée via{% endtrans %}&nbsp;: <small>{{ membership.payment.type.label }}</small></h4>
<h4>
{% trans %}Payée via{% endtrans %}&nbsp;:
<small>
{{ membership.payment.type.label }}
{% if (membership.payment.bank is not null) %}
({{ membership.payment.bank.name }})
{% endif %}
</small>
</h4>
</div>
<br>
<div class="col-6">
Expand Down

0 comments on commit 19f089f

Please sign in to comment.