Minor fixes.
[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         {% include "club/payment_form.html" %}
38
39         {% chunk 'club_form_bottom' %}
40
41       </form>
42
43       <div class="club-form-info">
44         {% if ambassador %}
45         <div class="ambassador {% if ambassador.photo %}with-photo{% endif %}">
46             <div>
47               <em>
48                 {{ ambassador.text }}
49               </em>
50               <div style="font-size: 1.2em">{{ ambassador.name }}</div>
51             </div>
52             {% if ambassador.photo %}
53               <img src="{% thumbnail ambassador.photo "100x100" as thumb %}{{ thumb.url }}{% empty %}{{ ambassador.photo.url }}{% endthumbnail %}">
54             {% endif %}
55           </div>
56         {% endif %}
57
58         {% include "club/payment_info.html" %}
59 </div>
60 </div>
61
62 </div>
63
64 {% endblock %}