2015-04-28 03:24:02 +00:00
{% extends 'basedocumentation.html' %}
{% load url from future %}
2012-08-07 18:12:50 +00:00
{% load humanize %}
2013-12-13 20:15:35 +00:00
{% block title %}Gifts{% endblock %}
2012-08-07 18:12:50 +00:00
{% block extra_extra_head %}
2014-04-10 17:15:08 +00:00
{{ block.super }}
2012-08-14 01:00:28 +00:00
< link rel = "stylesheet" href = "https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.13/themes/ui-lightness/jquery-ui.css" type = "text/css" media = "screen" >
{{ transfer_form.media.css }}
< script type = "text/javascript" src = "{{ jquery_ui_home }}" > < / script >
{{ transfer_form.media.js }}
2012-08-07 18:12:50 +00:00
{% endblock %}
{% block doccontent %}
2013-12-13 20:15:35 +00:00
< h2 > gift Credits< / h2 >
2012-08-07 18:12:50 +00:00
< p >
2013-12-13 20:15:35 +00:00
You have a balance of {{ user.credit.balance }} gift credits. < br / >
You have pledged {{ user.credit.pledged }} gift credits to ungluing campaigns.< br / >
You have {{ user.credit.available }} gift credits available to pledge or transfer.< br / >
2012-08-07 18:12:50 +00:00
< / p >
2012-09-21 21:15:30 +00:00
< div class = "clearfix" >
2013-12-13 20:15:35 +00:00
< h2 > Gift Credit Transfers< / h2 >
2012-08-14 01:00:28 +00:00
{% if transfer_message %}
< p > {{ transfer_message }}
{% if transfer_amount %}
2015-04-28 03:24:02 +00:00
< br / > Recipient: < a href = "{% url 'supporter' recipient %}" > {{ recipient }}< / a >
2013-12-13 20:15:35 +00:00
< br / > Amount: {{ transfer_amount }} gift credits
2012-08-14 01:00:28 +00:00
{% endif %}
< / p >
{% endif %}
< p >
2013-12-13 20:15:35 +00:00
You may transfer up to {{ user.credit.available }} gift credits to another Unglue.it user.< br / >
2012-08-14 01:00:28 +00:00
< / p >
< form action = "#" method = "POST" >
{% csrf_token %}
{{ transfer_form.as_p }}
< input id = "transfer_submit" type = "submit" name = "transfer" value = "Transfer Credits" / >
< / form >
2012-09-21 21:15:30 +00:00
< / div >
< div class = "clearfix" >
2013-12-13 20:15:35 +00:00
< h2 > About Gift Credits< / h2 >
2012-09-21 21:15:30 +00:00
{% if nonprofit.is_on %}
< p > Unglue.it uses donation credits to cooperate with a non-profit charity, {{ nonprofit.name }} in the ungluing of books. When you make a donation to {{ nonprofit.name }}, you can get credits for your donation. Then you can direct how {{ nonprofit.name }} uses your donation in support of ungluing campaigns. You can also transfer your credits to other ungluers. To make a donation, and receive credits, click the button!
< / p >
< div id = "donate_charity" >
< form method = "GET" action = "{{nonprofit.link}}" >
{{ donate_form.non_field_errors }}
{{donate_form}}
< input name = "donate_submit" type = "submit" value = "Go Donate!" id = "donate_submit" / >
< / form >
< / div >
< / div >
{% else %}
2013-12-13 20:15:35 +00:00
< p > Gift credits are not turned on yet.< / p >
2012-09-21 21:15:30 +00:00
{% endif %}
2012-08-07 18:12:50 +00:00
{% endblock %}