84 lines
5.0 KiB
HTML
84 lines
5.0 KiB
HTML
{% extends 'basepledge.html' %}
|
|
|
|
{% load humanize %}
|
|
{% block title %}Pledge Completed{% endblock %}
|
|
|
|
{% block extra_extra_head %}
|
|
<link type="text/css" rel="stylesheet" href="/static/css/searchandbrowse2.css" />
|
|
<link type="text/css" rel="stylesheet" href="/static/css/book_panel2.css" />
|
|
<link type="text/css" rel="stylesheet" href="/static/css/pledge.css" />
|
|
|
|
<script src="/static/js/slides.min.jquery.js"></script>
|
|
<script src="/static/js/slideshow.js"></script>
|
|
<script src="/static/js/greenpanel.js"></script>
|
|
|
|
<!-- toggle to panelview state instead of listview default -->
|
|
<script type="text/javascript">
|
|
jQuery(document).ready(function($) {
|
|
$('.listview').addClass("panelview").removeClass("listview");
|
|
});
|
|
</script>
|
|
|
|
<script type="text/javascript" src="/static/js/wishlist.js"></script>
|
|
<script type="text/javascript" src="/static/js/greenpanel.js"></script>
|
|
<script type="text/javascript" src="/static/js/embed.js"></script>
|
|
{% endblock %}
|
|
|
|
{% block doccontent %}
|
|
<div class="clearfix">
|
|
|
|
<h2 class="thank-you">Thank you!</h2>
|
|
{% if not campaign %}
|
|
<p class="pledge_complete">You've just donated ${{ transaction.amount|floatformat:2|intcomma }} to the <a href="https://ebookfoundation.org">Free Ebook Foundation</a></p>
|
|
{% endif %}
|
|
{% ifequal campaign.type 1 %}
|
|
<p class="pledge_complete">You've just {% if modified %}modified your pledge for{% else %}pledged{% endif %} ${{ transaction.amount|floatformat:2|intcomma }} to <I><a href="{% url 'work' work.id %}">{{ work.title }}</a></I>. If it reaches its goal of ${{ campaign.target|intcomma }} by {{ campaign.deadline|date:"M d Y"}}, it will be unglued for all to enjoy.</p>
|
|
{% endifequal %}
|
|
{% ifequal campaign.type 2 %}
|
|
{% if transaction.extra.give_to %}
|
|
<p class="pledge_complete">You've just paid ${{ transaction.amount|floatformat:2|intcomma }} to give a copy of <I><a href="{% url 'work' work.id %}">{{ work.title }}</a></I> to {{ transaction.extra.give_to }}. Its ungluing date is now <i>{{ campaign.cc_date }}</i>. Thanks for helping to make that day come sooner!</p>
|
|
|
|
<p class="pledge_complete">An email has been sent to {{ transaction.extra.give_to }} with this message:</p>
|
|
<p style="margin:2em">
|
|
{{ transaction.extra.give_message }}
|
|
</p>
|
|
<p class="pledge_complete">along with instructions for obtaining the ebook. You'll also be sent a url that the recipient can use to get the ebook, in case the email doesn't get through. </p>
|
|
|
|
|
|
{% else %}
|
|
<p class="pledge_complete">You've just paid ${{ transaction.amount|floatformat:2|intcomma }} for a copy of <I><a href="{% url 'work' work.id %}">{{ work.title }}</a></I>. Its ungluing date is now <i>{{ campaign.cc_date }}</i>. Thanks for helping to make that day come sooner!</p>
|
|
<div><a href="{% url 'download' work.id %}" class="fakeinput" style="float:left">Download Now</a> </div>
|
|
{% endif %}
|
|
|
|
<div style="height:75px;"></div>
|
|
{% endifequal %}
|
|
{% ifequal campaign.type 3 %}
|
|
<p class="pledge_complete">You've just contributed ${{ transaction.amount|floatformat:2|intcomma }} to the creators of <I><a href="{% url 'work' work.id %}">{{ work.title }}</a></I> to thank them for making it free to the world.</p>
|
|
<div><a href="{% url 'download' work.id %}" class="fakeinput" style="float:left">Download Now</a> </div>
|
|
<div style="height:75px;"></div>
|
|
|
|
{% endifequal %}
|
|
<div class="modify_notification clearfix">
|
|
{% include "trans_summary.html" %}
|
|
</div>
|
|
|
|
<p class="pledge_complete">You can help even more by sharing this with your friends:</p>
|
|
{% if campaign %}
|
|
<div id="widgetcode">Copy/paste this into your site:<br /><textarea rows="7" cols="22"><iframe src="https://{{request.META.HTTP_HOST}}/api/widget/{{work.first_isbn_13}}/" width="152" height="325" frameborder="0"></iframe></textarea></div>
|
|
<ul class="social menu pledge">
|
|
<a href="https://www.facebook.com/sharer.php?u=https://{{ site.domain }}{% url 'work' work.id|urlencode:"" %}"><li class="facebook first"><span>Facebook</span></li></a>
|
|
<a href="https://twitter.com/intent/tweet?url=https://{{ site.domain }}{% url 'work' work.id|urlencode:"" %}&text=I%20just%20supported%20{{ work.title|urlencode }}%20at%20%40unglue.it.%20Will%20you%20join%20me%3F"><li class="twitter"><span>Twitter</span></li></a>
|
|
{% if request.user.is_authenticated %}<a href="{% url 'emailshare' 'pledged' %}?next={% url 'work' work.id|urlencode:"" %}"><li class="email"><span>Email</span></li></a>{% endif%}
|
|
<a href="#" id="embed"><li class="embed"><span>Embed</span></li></a>
|
|
</ul>
|
|
{% else %}
|
|
|
|
<ul class="social menu pledge">
|
|
<a href="https://www.facebook.com/sharer.php?u=https://ebookfoundation.org"><li class="facebook first"><span>Facebook</span></li></a>
|
|
<a href="https://twitter.com/intent/tweet?url=https://ebookfoundation.org&text=I%20just%20supported%20The%20Free%20Ebook%20Foundation.%20Will%20you%20join%20me%3F"><li class="twitter"><span>Twitter</span></li></a>
|
|
</ul>
|
|
{% endif %}
|
|
</div>
|
|
|
|
|
|
{% endblock %} |