From 887cfa6ee0a28cfcd87731047d40001ec51030e9 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?R=C3=A9mi=20Oudin?= <oudin@crans.org>
Date: Fri, 6 Dec 2019 18:37:50 +0100
Subject: [PATCH] =?UTF-8?q?Pr=C3=A9cisions=20sur=20les=20dons?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 app/view/user/perso.html | 15 +++++++++++++--
 1 file changed, 13 insertions(+), 2 deletions(-)

diff --git a/app/view/user/perso.html b/app/view/user/perso.html
index 95c7cb7..2371940 100644
--- a/app/view/user/perso.html
+++ b/app/view/user/perso.html
@@ -145,13 +145,24 @@
                                 <tr>
                                     <td>{{ @don.datec }}</td>
                                     <td>{{ @don.somme }}</td>
-                                    <check if="{{ @don.status>=100 }}">
+                                    <check if="{{ @don.status==100 }}">
+                                        <true><td>{{ _("En attente de validation") }}</td></true>
+                                    </check>
+                                    <check if="{{ @don.status==101 }}">
+                                        <true><td>{{ _("Enregistré")}}</td></true>
+                                    </check>
+                                    <check if="{{ @don.status==102 }}">
                                         <true><td>{{ _("Oui") }}</td></true>
+                                    </check>
+                                    <check if="{{ @don.status==104 }}">
+                                        <true><td>{{ _("Oui (en erreur)"}}</td></true>
                                         <false><td>{{ _("Non") }}</td></false>
                                     </check>
                                     <td>
                                         <check if="{{ @don.pdf == '' }}">
-                                            <a href="/cron/piplome/{{ @don.id }}">{{ _("Générer") }}</a>
+                                            <true>
+                                                <a href="/cron/piplome/{{ @don.id }}">{{ _("Générer") }}</a>
+                                            </true>
                                             <false>
                                                 <a href="{{ PIPLOME_URL }}{{ @don.pdf }}.pdf" target="_blank">{{ @pdfs[@don.pdf].decimale }}.pdf</a>
                                             </false>
-- 
GitLab