Current status: ugly first cut integration
parent
63203ae129
commit
39037c3ec6
|
@ -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 %}
|
|
@ -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 %}
|
Loading…
Reference in New Issue