Add 1% ad to funding.
[wolnelektury.git] / apps / funding / templates / funding / thanks.html
old mode 100755 (executable)
new mode 100644 (file)
index f3ca19f..676ea48
@@ -1,24 +1,50 @@
 {% extends "base.html" %}
 {% load i18n %}
 {% load fnp_share %}
+{% load polls_tags %}
 
-{% block titleextra %}{% trans "Thank you!" %}{% endblock %}
+{% block titleextra %}{% trans "Thank you for your support!" %}{% endblock %}
 
 {% block body %}
 
 <h1>{% trans "Thank you!" %}</h1>
 <div class="white-box normal-text">
 
-{% trans "Thank you for your support!" %}
+<a href='//nowoczesnapolska.org.pl/pomoz-nam/wesprzyj-nas/' target="_blank" style='float:right;border:1px solid #ddd;padding: 1em;margin:0 0 1em 1em;background:#eee;'><img src='//nowoczesnapolska.org.pl/wp-content/themes/koed/annoy/procent.png' alt='1%' style='float:left;margin-right: 1em;margin-top:.2em;'>Możesz też przekazać<br/>1% podatku na rozwój biblioteki. &rarr;</a>
 
+<p>{% trans "Thank you for your support!" %}</p>
+<p>{% blocktrans %}We will contact you if you qualify for perks.{% endblocktrans %}</p>
 
+{% if offer.is_win %}
+    <p>{% trans "Full amount was successfully raised!" %}</p>
 
-{% url 'funding_current' as current %}
+    <p>{% blocktrans with b=offer.title %}Your donation will be spent on digitizing, compiling and
+    publishing the book {{ b }} in multiple formats.{% endblocktrans %}</p>
+
+{% else %}
+
+    <p>{% blocktrans with b=offer.title %}If the full amount needed is raised,
+    your donation will be spent on digitizing, compiling and
+    publishing the book {{ b }} in multiple formats.{% endblocktrans %}</p>
+
+{% endif %}
+
+
+<p>{% include "funding/snippets/any_remaining.html" %}
+
+<a href="{% url 'infopage' 'wesprzyj' %}">{% trans "Learn more" %}</a>.</p>
+
+{% url 'funding_current' offer.slug as current %}
 <p><a href="{{ current }}">{% trans "Go back to the current fundraiser." %}</a></p>
 
-{% url 'funding_current' as current %}
-<p>{% share current 'y' %}</p>
 
+<h3>{% trans "Tell your friends!" %}</h3>
+<p class="share">{% share current _("I support Wolne Lektury.") "big" %}</p>
+
+{% if offer.poll %}
+    <h3>{% trans "Vote for a book for the next fundraiser" %}</h3>
+    {% poll offer.poll %}
+{% endif %}
 </div>