regluit/frontend/templates/gift_duplicate.html

43 lines
1.5 KiB
HTML
Raw Normal View History

2015-04-28 03:24:02 +00:00
{% extends 'registration/registration_base.html' %}
2016-05-11 14:41:50 +00:00
{% block title %}Duplicate Gift Code{% endblock %}
{% block doccontent %}
2014-12-18 18:37:28 +00:00
<div><h2>Re-Gifting</h2>
<div>
2014-12-18 18:37:28 +00:00
{% if form %}
2014-12-22 23:08:13 +00:00
{% ifequal request.user.id gift.giver.id %}
2015-04-28 03:24:02 +00:00
<p> It looks like you're trying to redeem a gift of "<a href="{% url 'work' work.id %}">{{ work.title }}</a>" that you sent to {{ gift.to }}. You probably clicked the redemption link by mistake. If it's not a mistake, you can redirect the gift by regifting it to someone else.</p>
2014-12-22 23:08:13 +00:00
{% else %}
2015-04-28 03:24:02 +00:00
<p> <a href="{% url 'supporter' gift.giver %}">{{ gift.giver }}</a> has sent you "<a href="{% url 'work' work.id %}">{{ work.title }}</a>" as a gift, however, it seems that you already own this work at unglue.it. Not to worry, you can Re-Gift it!</p>
2014-12-22 23:08:13 +00:00
{% endifequal %}
2014-12-18 18:37:28 +00:00
<div>
<form method="POST" action="#">
{% csrf_token %}
{{ form.as_p }}
<input type="submit" name="regift" value="Re-Gift It" id="submit_regift" />
</form>
</div>
{% else %}
<p>
An email has been sent to <a href="mailto:{{ gift.acq.user.email }}">{{ gift.acq.user.email }}</a> with this message:</p>
<p style="margin:2em">
{{ gift.message|linebreaksbr }}
2014-12-18 18:37:28 +00:00
</p>
<p>along with instructions for obtaining the ebook. Here's the URL that the recipient (and ONLY the recipient) should use to collect the book:
</p>
2014-12-18 23:10:04 +00:00
<textarea cols="68">
2015-04-28 03:24:02 +00:00
https://{{ site.domain }}{% url 'receive_gift' gift.acq.nonce %}
2014-12-18 18:37:28 +00:00
</textarea>
<p>
You can send the url yourself if there's been any problem with the email.
</p>
{% endif %}
</div>
</div>
{% endblock %}