regluit/frontend/templates/gift_credit.html

41 lines
1.4 KiB
HTML
Raw Normal View History

2015-04-28 03:24:02 +00:00
{% extends 'basepledge.html' %}
{% load url from future %}
{% load humanize %}
{% block title %}You Have Gift Credits{% endblock %}
{% block doccontent %}
<div style="height:15px"></div>
<div class="jsmodule rounded clearfix">
<div class="jsmod-content">
<div>
<h2> Gift Credited </h2>
<p>{% if error %}
2015-04-28 03:24:02 +00:00
Your gift credit of ${{ envelope.amount }}.{{ envelope.cents }} has already been registered! {% if work %} If you want to contribute more to <a href="{% url 'work' work.id %}">{{ work.title }}</a>, you can! {% endif %}
{% else %}
2015-04-28 03:24:02 +00:00
Congratulations, your gift credit of ${{ envelope.amount }}.{{ envelope.cents }} has been registered! {% if transaction.campaign %} ${{transaction.amount}} of that had been pledged to {{ transaction.campaign.name }}. If you want to contribute more to <a href="{% url 'work' work.id %}">{{ work.title }}</a>, you can! {% endif %}
{% endif %}
</p>
<!-- sent log: {{ envelope.sent }} -->
<!-- error: {{ error }} -->
<!-- {{ transaction }} -->
<div>
<h2> Your gift credits </h2>
<p>
You have a balance of {{ request.user.credit.balance }} gift credits. <br />
You have pledged {{ request.user.credit.pledged }} gift credits to ungluing campaigns.<br />
2015-04-28 03:24:02 +00:00
You have {{ request.user.credit.available }} gift credits available to pledge or <a href="{% url 'gift' %}">transfer</a>.<br />
</p>
</div>
</div>
</div>
</div>
{% endblock %}