From 6abc1fbad7a8b0b28ad156a2d27e2b4ac6b8492f Mon Sep 17 00:00:00 2001 From: Valentin Samir Date: Sat, 15 Mar 2014 22:42:49 +0100 Subject: [PATCH] [printing/adherent] Affichage de l'adresse si chambre EXT --- printing/templates/adherent | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/printing/templates/adherent b/printing/templates/adherent index 6a8ebe5..5e17f95 100644 --- a/printing/templates/adherent +++ b/printing/templates/adherent @@ -4,7 +4,12 @@ {% endblock%} {% block proprio %} {{"Numéro de téléphone : "|coul('gras')}}{{o.tel|telephone|join(', ')}} +{% if o.chbre.0 == 'EXT' and o.postalAddress %} +{{"Adresse : "|coul('gras')}}{{o.postalAddress.0}} {{o.postalAddress.1}} + {{o.postalAddress.2}} {{o.postalAddress.3}} +{% else %} {{"Chambre : "|coul('gras')}}{{o.chbre.0}} ({{o.chbre.0|string|prise_etat}}) +{% endif %} {{"Études : "|coul('gras')}}{{o.etudes|join(' ')}} {{"Cotisation payée pour les années : "|coul('gras')}}{{o.paiement|join(' ')}} {% if o.get('controle', []) and 'p' in o.controle.0.value %}{{"(OK)"|coul('vert')}}{% endif %} {{"Carte d'étudiant fournie pour les années : "|coul('gras')}}{{o.carteEtudiant|join(' ')}} {% if o.get('controle', []) and 'c' in o.controle.0.value %}{{"(OK)"|coul('vert')}}{% endif %}