2011-11-07 21:01:08 +00:00
|
|
|
{% extends "basedocumentation.html" %}
|
|
|
|
|
|
|
|
{% block title %}Pledge{% endblock %}
|
|
|
|
|
2011-11-21 20:07:10 +00:00
|
|
|
{% block extra_extra_head %}
|
2011-11-07 21:01:08 +00:00
|
|
|
<link type="text/css" rel="stylesheet" href="/static/css/campaign.css" />
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block doccontent %}
|
2011-11-28 23:39:06 +00:00
|
|
|
|
|
|
|
<h2>Campaign: {{campaign.name}}</h2>
|
2011-11-07 21:01:08 +00:00
|
|
|
<p>Wonderful: We're glad that you would like to support this campaign.</p>
|
|
|
|
|
|
|
|
<div class="book-detail">
|
|
|
|
<div class="book-detail-img"><a href="#">
|
|
|
|
<img src="{{ work.cover_image_thumbnail }}" alt="{{ work.title }}" title="{{ work.title }}" width="131" height="192" /></a>
|
|
|
|
</div>
|
|
|
|
<div class="book-detail-info">
|
|
|
|
<h2 class="book-name">{{ work.title }}</h2>
|
|
|
|
<h3 class="book-author">{{ work.author }}</h3>
|
|
|
|
<h3 class="book-year">{{ work.editions.all.0.publication_date }}</h3>
|
|
|
|
<div class="find-book">
|
|
|
|
<label>Find it here</label>
|
|
|
|
<!-- todo: these should be a real thing -->
|
|
|
|
<div class="find-link">
|
|
|
|
<a class="find-google" href="#"><img src="/static/images/icons/google.png" align="" title="" /></a>
|
|
|
|
<a class="find-group" href="#"><img src="/static/images/icons/group.png" align="" title="" /></a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="pledged-info"><div class="pledged-group">{{ work.last_campaign.supporters.count }} Ungluers have pledged ${{ work.last_campaign.current_total }}</div><div class="status"><img src="/static/images/images/icon-book-37by25-{{ work.percent_unglued }}.png" /></div></div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="jsmodule rounded">
|
|
|
|
<div class="jsmod-content">
|
|
|
|
Campaign in Progress: ${{ work.last_campaign.current_total }}/${{ work.last_campaign.target }}
|
|
|
|
</div>
|
|
|
|
|
2011-11-30 02:02:51 +00:00
|
|
|
|
|
|
|
<div class="jsmod-content">
|
2011-11-30 16:58:26 +00:00
|
|
|
|
|
|
|
{% comment %}
|
|
|
|
Even though we have in frontend/forms.py a CampaignPledgeForm, we
|
|
|
|
|
|
|
|
{% endcomment %}
|
|
|
|
|
2011-11-30 02:02:51 +00:00
|
|
|
|
2011-11-28 23:39:06 +00:00
|
|
|
<form method="POST" action="{% url pledge work_id=work.id %}">
|
2011-11-07 21:01:08 +00:00
|
|
|
{% csrf_token %}
|
2011-11-30 02:02:51 +00:00
|
|
|
{{ form.non_field_errors }}
|
|
|
|
{{ form.preapproval_amount.errors }}
|
|
|
|
{{ form.preapproval_amount.label_tag }}: {{ form.preapproval_amount }}
|
|
|
|
{{ form.anonymous.errors }}
|
|
|
|
{{ form.anonymous.label_tag }}: {{ form.anonymous }}
|
2011-11-07 21:01:08 +00:00
|
|
|
<input type="submit" value="Pledge" />
|
|
|
|
|
|
|
|
<ul class="support menu">
|
|
|
|
{% for premium in premiums %}
|
|
|
|
<li class="{% if forloop.first %}first{% else %}{% if forloop.last %}last{% endif %}{% endif %}">
|
2011-11-30 16:58:26 +00:00
|
|
|
<input type="radio" name="premium_id" value="{{premium.id}}" {% ifequal request.REQUEST.premium_id premium.id|stringformat:"s" %}checked="checked"{% endifequal %}" />
|
2011-11-07 21:01:08 +00:00
|
|
|
<span class="menu-item-price">${{ premium.amount }}</span>
|
|
|
|
<span class="menu-item-desc">{{ premium.description }}</span>
|
|
|
|
</a></li>
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
|