2015-04-28 03:24:02 +00:00
|
|
|
{% extends 'basedocumentation.html' %}
|
2016-05-11 14:41:50 +00:00
|
|
|
|
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 }}
|
2015-12-14 16:52:41 +00:00
|
|
|
<link rel="stylesheet" href="/static/css/ui-lightness/jquery-ui-1.8.16.custom.css" type="text/css" media="screen">
|
2012-08-14 01:00:28 +00:00
|
|
|
{{ 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">
|
2012-08-07 18:12:50 +00:00
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
|