add "reserve" to purchase page
parent
53d9f2c8be
commit
0d81e22ff1
|
@ -112,7 +112,7 @@
|
|||
<a href="{% url pledge work_id=workid %}"><span class="read_itbutton pledge button_text"><span>Pledge</span></span></a>
|
||||
{% else %}
|
||||
{% if in_library %}
|
||||
<a href="{% url reserve workid %}"><span class="read_itbutton pledge button_text"><span>Reserve It</span></span></a>
|
||||
<a href="{% url purchase work_id=workid %}"><span class="read_itbutton pledge button_text"><span>Reserve It</span></span></a>
|
||||
{% else %}
|
||||
<a href="{% url purchase work_id=workid %}"><span class="read_itbutton pledge button_text"><span>Purchase</span></span></a>
|
||||
{% endif %}
|
||||
|
@ -273,7 +273,7 @@
|
|||
{% else %}{% if borrowable %}
|
||||
<a href="{% url borrow workid %}?library={{library}}" class="hijax" title="Borrow this work"><div class="read_itbutton"><span>Borrow It</span></div></a>
|
||||
{% else %}{% if in_library %}
|
||||
<a href="{% url reserve workid %}?library={{library}}" title="Reserve or buy this work"><div class="read_itbutton"><span>Reserve It</span></div></a>
|
||||
<a href="{% url purchase work_id=workid %}" title="Reserve or buy this work"><div class="read_itbutton"><span>Reserve It</span></div></a>
|
||||
{% else %}{% if status == 'ACTIVE' or status == 'SUCCESSFUL' %}
|
||||
{% if not library or not in_library %}
|
||||
<div class="booklist-status-img">
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
{% extends "basepledge.html" %}
|
||||
{% load humanize %}
|
||||
{% load lib_acqs %}
|
||||
|
||||
{% block title %}Pledge{% endblock %}
|
||||
|
||||
|
@ -64,15 +65,22 @@
|
|||
</div>
|
||||
</div>
|
||||
{% ifequal work.last_campaign.status "ACTIVE" %}
|
||||
{% lib_acqs %}
|
||||
<div class="jsmodule rounded clearfix">
|
||||
<div class="jsmod-content">
|
||||
|
||||
<form class="pledgeform" method="POST" action="#">
|
||||
{% if next_acq %}
|
||||
<div class="pledge_amount">This ebook can be reserved from your library.</div>
|
||||
<div class="bigger" style="margin:20px">Available starting {{ next_acq.refreshes|date:"M j, Y"}} at {{ next_acq.user }}.</div>
|
||||
<div><a href="{% url reserve work.id%}?library={{ next_acq.user }}" class="fakeinput">Reserve Now</a> </div>
|
||||
<div style="height:30px;"></div>
|
||||
<div class="bigger" style="height:30px;clear:both;margin:20px">If you'd rather not wait, consider one of the purchase options.</div>
|
||||
{% endif %}
|
||||
{% csrf_token %}
|
||||
{{ form.non_field_errors }}
|
||||
|
||||
{% if work.offers.all|length > 1 %}
|
||||
<div class="pledge_amount premium_level">Individual or Library License?</div>
|
||||
<div class="pledge_amount premium_level">Purchase Options: Individual or Library?</div>
|
||||
|
||||
<div style="height:10px;"></div>
|
||||
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
{% load comments %}
|
||||
{% load humanize %}
|
||||
{% load purchased %}
|
||||
{% load lib_acqs %}
|
||||
{% block title %}—
|
||||
{% if work.first_ebook %}
|
||||
{{ work.title }} is a Free eBook
|
||||
|
@ -60,6 +61,7 @@
|
|||
|
||||
{% block content %}
|
||||
{% purchased %}
|
||||
{% lib_acqs %}
|
||||
{% with work.last_campaign_status as status %}
|
||||
{% with work.id as work_id %}
|
||||
<div id="main-container">
|
||||
|
@ -475,7 +477,7 @@
|
|||
{% else %}{% if borrowable %}
|
||||
<div class="btn_support"><form action="{% url borrow work_id %}" method="get"><input type="submit" value="Borrow" /></form></div>
|
||||
{% else %}
|
||||
<div class="btn_support"><form action="{% url purchase work_id %}" method="get"><input type="submit" value="Purchase" /></form></div>
|
||||
<div class="btn_support"><form action="{% url purchase work_id %}" method="get"><input type="submit" value="{% if next_acq %}Reserve{% else %}Purchase{% endif %}" /></form></div>
|
||||
{% endif %}{% endif %}
|
||||
{% endif %}
|
||||
{% else %}
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -5,7 +5,7 @@
|
|||
width: auto;
|
||||
}
|
||||
|
||||
input[type="submit"] {
|
||||
input[type="submit"], a.fakeinput {
|
||||
float: right;
|
||||
font-size: @font-size-header;
|
||||
margin: 10px 0 10px;
|
||||
|
|
Loading…
Reference in New Issue