2011-10-11 17:02:17 +00:00
|
|
|
{% extends "base.html" %}
|
|
|
|
{% url privacy as privacyurl %}
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
<h2>Campaign: {{campaign.name}}</h2>
|
|
|
|
<p>Work: {{campaign.work}}</p>
|
|
|
|
<p>Target: {{campaign.target}}</p>
|
|
|
|
<p>Deadline: {{campaign.deadline}}</p>
|
2011-10-13 21:40:07 +00:00
|
|
|
<p>Status: {{campaign.status}}</p>
|
2011-11-22 01:21:06 +00:00
|
|
|
<p>ISBN: {{campaign.work.editions.all.0.isbn_10}} | {{campaign.work.editions.all.0.isbn_13}} </p>
|
|
|
|
<p><a href="{% url widget isbn=campaign.work.editions.all.0.isbn_10 %}">Widget Link</a></p>
|
2011-11-22 02:06:44 +00:00
|
|
|
<p>Embed a widget:</p>
|
2011-11-22 04:36:14 +00:00
|
|
|
<textarea rows="2" cols="80"><iframe src="{{base_url}}/api/widget/{{campaign.work.editions.all.0.isbn_13}}/" width="140" height="360" frameborder="0"></iframe></textarea>
|
2011-10-18 23:27:20 +00:00
|
|
|
<p>PayPal receiver: {{campaign.paypal_receiver}}</p>
|
2011-10-13 21:40:07 +00:00
|
|
|
<p>Current total (pledged/authorized): {{campaign.current_total}}</p>
|
2011-11-22 02:06:44 +00:00
|
|
|
<p>Base URL: {{base_url}}</p>
|
2011-10-12 17:47:48 +00:00
|
|
|
<form method="POST" action="{% url campaign_by_id pk=campaign.id %}">
|
2011-10-11 17:02:17 +00:00
|
|
|
{% csrf_token %}
|
2011-10-12 17:47:48 +00:00
|
|
|
{{form.as_p}}
|
2011-10-11 17:02:17 +00:00
|
|
|
<input type="submit" value="Pledge" />
|
|
|
|
</form>
|
2011-10-13 17:28:23 +00:00
|
|
|
<!-- All associated transactions -->
|
|
|
|
{% if campaign.transactions %}
|
|
|
|
<p>Associated transactions:</p>
|
|
|
|
<ul>
|
|
|
|
{% for transaction in campaign.transactions %}
|
|
|
|
<li>{{transaction.id}} | {{transaction.name}} | {{transaction.user}} | {{transaction.amount}}</li>
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
{% else %}
|
2011-10-14 02:16:28 +00:00
|
|
|
<p>No associated transactions</p>
|
2011-10-13 17:28:23 +00:00
|
|
|
{% endif %}
|
2011-10-11 17:02:17 +00:00
|
|
|
{% endblock %}
|