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>
|
|
|
|
<p>Current total (pledged/authorized): {{campaign.current_total}}</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 %}
|
|
|
|
{% endif %}
|
2011-10-12 17:47:48 +00:00
|
|
|
<p class="extra">Message:{{message}}</p>
|
2011-10-11 17:02:17 +00:00
|
|
|
{% endblock %}
|