change Pledge button to Purchase

pull/1/head
eric 2013-08-13 23:47:55 -04:00
parent 2c06139a6f
commit c415340356
2 changed files with 54 additions and 15 deletions

View File

@ -57,10 +57,15 @@
<div class="unglued_white">
<b>UNGLUE IT!</b>
{% ifequal work.last_campaign.type 1 %}
<p><b>${{ work.last_campaign.current_total|floatformat:0|intcomma }}</b> raised</p>
<p><b>${{ work.last_campaign.target|floatformat:0|intcomma }}</b> needed</p>
<p>by {{ deadline|naturalday:"M d, Y" }}</p>
{% else %}
<p><b>${{ work.last_campaign.left|floatformat:0|intcomma }}</b> needed</p>
<p>now ungluing on </p>
<p>{{ work.last_campaign.cc_date|naturalday:"M d, Y" }}</p>
{% endifequal %}
</div>
</div>
{% if request.user.id in supporters %}
@ -72,7 +77,11 @@
{% include "book_panel_addbutton.html" %}
</div>
<div class="white_text bottom_button" >
{% ifequal work.last_campaign.type 1 %}
<a href="{% url pledge work_id=workid %}"><span class="read_itbutton pledge button_text"><span>Pledge</span></span></a>
{% else %}
<a href="{% url purchase work_id=workid %}"><span class="read_itbutton pledge button_text"><span>Purchase</span></span></a>
{% endifequal %}
</div>
{% endif %}
@ -163,7 +172,11 @@
{% comment %} used only on your own supporter page. {% endcomment %}
{% ifequal status "ACTIVE" %}
<div class="listview panelfront side1 pledge">
{% ifequal work.last_campaign.type 1 %}
<span class="booklist_pledge"><a href="{% url pledge work_id=workid %}" class="fakeinput">Pledge</a></span>
{% else %}
<span class="booklist_pledge"><a href="{% url purchase work_id=workid %}" class="fakeinput">Purchase</a></span>
{% endifequal %}
</div>
{% else %}
<div class="listview panelfront side1 remove-wishlist">
@ -172,7 +185,11 @@
{% endifequal %}
{% else %}{% ifequal status "ACTIVE" %}
<div class="listview panelfront side1 add-wishlist">
{% ifequal work.last_campaign.type 1 %}
<span class="booklist_pledge"><a href="{% url pledge work_id=workid %}" class="fakeinput">Pledge</a></span>
{% else %}
<span class="booklist_pledge"><a href="{% url purchase work_id=workid %}" class="fakeinput">Purchase</a></span>
{% endifequal %}
</div>
{% else %}{% if work in wishlist %}
<div class="listview panelfront side1 on-wishlist">
@ -190,7 +207,11 @@
<div class="listview panelfront side1 booklist-status">
{% ifequal status "ACTIVE" %}
{% ifequal work.last_campaign.type 1 %}
<span class="booklist-status-text"><b>${{ work.last_campaign.current_total|floatformat:0|intcomma }}</b>/<b>${{ work.last_campaign.target|floatformat:0|intcomma }}</b></span>
{% else %}
<span class="booklist-status-text"><b>${{ work.last_campaign.left|floatformat:0|intcomma }}</b> to go</span>
{% endifequal %}
{% else %}{% ifequal status "INITIALIZED" %}
<span class="booklist-status-label">Status:&nbsp;</span><span class="booklist-status-text">Coming soon!</span>
{% else %}{% ifequal status "SUCCESSFUL" %}

View File

@ -103,10 +103,18 @@
</div>
<div class="pledged-info noborder">
<div class="campaign-status-info">
<span>${{ work.last_campaign.current_total|floatformat:0|intcomma }}</span> {% ifequal work.last_campaign.type 1 %}pledged{% else %}raised{% endifequal %}
{% ifequal work.last_campaign.type 1 %}
<span>${{ work.last_campaign.current_total|floatformat:0|intcomma }}</span> pledged
{% else %}
current ungluing date:
{% endifequal %}
</div>
<div class="campaign-status-info">
{% ifequal work.last_campaign.type 1 %}
<span>${{ work.last_campaign.target|floatformat:0|intcomma }}</span> goal
{% else %}
<span>{{ work.last_campaign.cc_date|date:"M j, Y" }}</span>
{% endifequal %}
</div>
<div class="campaign-status-info">
{% if work.last_campaign.supporters_count == 1 %}
@ -278,6 +286,7 @@
<div id="tabs-4" class="tabs {% if activetab == '4' %}active{% endif %}">
<div class="tabs-content">
{% if status == 'ACTIVE' %}
{% ifequal work.last_campaign 1 %}
<h3 class="tabcontent-title">A campaign is running to unglue <i>{{work.title}}</i>!</h3>
<p>The rights holder, {% for claim in work.claim.all %}
{% if claim.status == 'active' %}
@ -286,7 +295,16 @@
{% endfor %}
, has agreed to release <i>{{work.title}}</i> to the world as a Creative Commons licensed ebook (<a href="{{ work.last_campaign.license_url }}">{{ work.last_campaign.license }}</a>) if ungluers can join together to raise ${{ work.last_campaign.target|floatformat:0|intcomma }} by {{ work.last_campaign.deadline }}.
You can help!</p>
{% else %}
<h3 class="tabcontent-title">A sales campaign is running to unglue <i>{{work.title}}</i>!</h3>
<p>The rights holder, {% for claim in work.claim.all %}
{% if claim.status == 'active' %}
{{ claim.rights_holder.rights_holder_name }}
{% endif %}
{% endfor %}
, has agreed to release <i>{{work.title}}</i> to the world as a Creative Commons licensed ebook (<a href="{{ work.last_campaign.license_url }}">{{ work.last_campaign.license }}</a>) on {{ work.last_campaign.cc_date }}. For every copy that ungluers purchase, that date gets sooner. ${{ work.last_campaign.left|floatformat:0|intcomma }} of sales will unglue the book <i>TODAY</i>.
You can help!</p>
{% endifequal %}
<h4>Campaign details: the fine print</h4>
{{ work.last_campaign.details|safe }}
{% endif %}