Remove current supporters target.
[wolnelektury.git] / src / club / templates / club / membership_form.html
1 {% extends request.session.from_app|yesno:"base/app.html,base/base.html" %}
2 {% load i18n %}
3 {% load chunks %}
4 {% load thumbnail %}
5 {% load club %}
6
7 {% block titleextra %}{% trans "Join us in freeing the books!" %}{% endblock %}
8 {% block metadescription %}{% trans "„Wolne Lektury należy wspierać, bo są” - Filip Springer" %}{% endblock %}
9
10
11 {% block body %}
12   <div class="white-box normal-text">
13
14     <h1>{% trans "Support Wolne Lektury" %}</h1>
15     <h2 style="margin-bottom:2em;">
16       {% if membership %}
17         {# Displays to members. #}
18         {% trans "Thank you for your support! Support us again!" %}
19       {% else %}
20         {# Displays to non-supporters. #}
21         {% trans "Thank you for wanting to free the books with us!" %}
22       {% endif %}</h2>
23
24       {% with schedule=request.user|active_schedule %}
25         {% if schedule %}
26           <p><a href="{{ schedule.get_absolute_url }}">{% trans "See your past support." %}</a></p>
27         {% endif %}
28       {% endwith %}
29
30       <div class='twocol'>
31
32       <form method="POST" action="" id="payment-form" class="wlform">
33         {% csrf_token %}
34
35         {% chunk 'club_form_top' %}
36
37         {% if supporters_target %}
38         {% club_monthly_since supporters_since as supporters %}
39         {% club_monthly_missing_since supporters_since supporters_target as missing_supporters %}
40         <p>
41           {% blocktrans %}Help us get 100 new Friends by the end of the school semester.{% endblocktrans %}
42           {% blocktrans count supporters=supporters %}
43             So far <b style="color: #0d7e85">{{ supporters }}</b> reader has already supported us with a regular donation,
44             {% plural %}
45             So far <b style="color: #0d7e85">{{ supporters }}</b> readers have already supported us with a regular donation,
46           {% endblocktrans %}
47           {% blocktrans count missing_supporters=missing_supporters %}
48             <b style="color: #0d7e85">{{ missing_supporters }}</b> is missing.
49             {% plural %}
50             <b style="color: #0d7e85">{{ missing_supporters }}</b> are missing.
51           {% endblocktrans %}
52         </p>
53         <div class="funding" style="background: none;"><div class="description"><div class="progress" style="text-align: center; background-size: {{ supporters }}% 1px;"><span class="piece progress-collected">&nbsp;{{ supporters }}</span><span class="piece progress-target">{{ missing_supporters }}&nbsp;</span><div style="clear: both"></div></div></div></div>
54         {% endif %}
55
56         {% include "club/payment_form.html" %}
57
58         {% chunk 'club_form_bottom' %}
59
60       </form>
61
62       <div class="club-form-info">
63         {% if ambassador %}
64         <div class="ambassador {% if ambassador.photo %}with-photo{% endif %}">
65             <div>
66               <em>
67                 {{ ambassador.text }}
68               </em>
69               <div style="font-size: 1.2em">{{ ambassador.name }}</div>
70             </div>
71             {% if ambassador.photo %}
72               <img src="{% thumbnail ambassador.photo "100x100" as thumb %}{{ thumb.url }}{% empty %}{{ ambassador.photo.url }}{% endthumbnail %}">
73             {% endif %}
74           </div>
75         {% endif %}
76
77         {% include "club/payment_info.html" %}
78 </div>
79 </div>
80
81 </div>
82
83 {% endblock %}