Current status: ugly first cut integration

pull/1/head
Raymond Yee 2011-10-11 10:02:17 -07:00
parent 63203ae129
commit 39037c3ec6
2 changed files with 26 additions and 0 deletions

View File

@ -0,0 +1,15 @@
{% 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>
<p>Pledge form:</p>
<form method="POST" action="/testpledge?campaign={{campaign.id}}">
{% csrf_token %}
<input type="text" name="pledge_amount" value="20.00"/>
<input type="submit" value="Pledge" />
</form>
{% endblock %}

View File

@ -0,0 +1,11 @@
{% extends "base.html" %}
{% block content %}
<h2>Campaigns</h2>
<ul>
{% for campaign in campaign_list %}
<li><a href="{% url campaign_by_id pk=campaign.id %}">{{ campaign.name }}</a></li>
{% endfor %}
</ul>
{% endblock %}