regluit/frontend/templates/gift.html

45 lines
1.3 KiB
HTML
Raw Normal View History

2015-04-28 03:24:02 +00:00
{% extends 'basedocumentation.html' %}
2016-05-11 14:41:50 +00:00
{% load humanize %}
{% block title %}Gifts{% endblock %}
{% block extra_extra_head %}
2014-04-10 17:15:08 +00:00
{{ block.super }}
<link rel="stylesheet" href="/static/css/ui-lightness/jquery-ui-1.8.16.custom.css" type="text/css" media="screen">
{{ transfer_form.media.css }}
<script type="text/javascript" src="{{ jquery_ui_home }}" ></script>
{{ transfer_form.media.js }}
{% endblock %}
{% block doccontent %}
<h2>gift Credits</h2>
<p>
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 />
</p>
2012-09-21 21:15:30 +00:00
<div class="clearfix">
<h2>Gift Credit Transfers</h2>
{% 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>
<br /> Amount: {{ transfer_amount }} gift credits
{% endif %}
</p>
{% endif %}
<p>
You may transfer up to {{ user.credit.available }} gift credits to another Unglue.it user.<br />
</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">
{% endblock %}