Progress bar on payment form page.
[wolnelektury.git] / src / club / templates / club / membership_form.html
index f9fe931..fe85c1c 100644 (file)
 
         {% chunk 'club_form_top' %}
 
+        {% club_monthly_since '2020-12-01' as cc %}
+        {% club_monthly_missing_since '2020-12-01' 100 as cm %}
+        <p>Pomóż nam zdobyć 100 nowych Przyjaciół do końca roku. W grudniu stałą wpłatą wsparło nas już <b style="color: #0d7e85">{{ cc }}</b> czytelników i czytelniczek, brakuje  <b style="color: #0d7e85">{{ cm }}</b>.</p>
+        <div class="funding" style="background: none;"><div class="description"><div class="progress" style="text-align: center; background-size: {{ cc }}% 1px;"><span class="piece progress-collected">&nbsp;{{ cc }}</span><span class="piece progress-target">{{ cm }}&nbsp;</span><div style="clear: both"></div></div></div></div>
+
         {% include "club/payment_form.html" %}
 
         {% chunk 'club_form_bottom' %}