diff templates/sat_website/finance.html @ 71:a14845624e01

display a banner on top of all pages (but adhesion, adhesion_form and thank_you) to encourage people joining the association
author souliane <souliane@mailoo.org>
date Wed, 27 May 2015 18:56:16 +0200
parents 73c6333fd124
children
line wrap: on
line diff
--- a/templates/sat_website/finance.html	Wed May 27 14:50:51 2015 +0200
+++ b/templates/sat_website/finance.html	Wed May 27 18:56:16 2015 +0200
@@ -20,7 +20,26 @@
 
 {% load i18n %}
 
+{% if obj == "members" %}
+
 <div class="progress">
-    <div class="progress-bar progress-bar-success progress-bar-striped" style="width: {{ asso_members_perc }}%">{% blocktrans with members_actual=asso_members_actual %}{{members_actual}} members{% endblocktrans %}</div>
-    <div class="progress-bar progress-bar-left progress-bar-striped active" style="width: {{ asso_members_perc_left }}%">{% blocktrans with members_left=asso_members_left %}{{members_left}} left{% endblocktrans %}</div>
+    <div class="progress-bar progress-bar-info progress-bar-striped" style="width: {{ asso_members_perc }}%">
+        {% blocktrans with actual=asso_members_actual %}{{ actual }} members{% endblocktrans %}
+    </div>
+    <div class="progress-bar progress-bar-left progress-bar-striped active" style="width: {{ asso_members_perc_left }}%">
+        {% blocktrans with left=asso_members_left %}{{ left }} members left{% endblocktrans %}
+    </div>
 </div>
+
+{% else %}
+
+<div class="progress">
+    <div class="progress-bar progress-bar-success progress-bar-striped" style="width: {{ asso_finance_perc }}%">
+        {% blocktrans with actual=asso_finance_actual %}{{ actual }} €{% endblocktrans %}
+    </div>
+    <div class="progress-bar progress-bar-left progress-bar-striped active" style="width: {{ asso_finance_perc_left }}%">
+        {% blocktrans with left=asso_finance_left %}{{ left }} € left{% endblocktrans %}
+    </div>
+</div>
+
+{% endif %}
\ No newline at end of file