summaryrefslogtreecommitdiff
path: root/tbc/templates
diff options
context:
space:
mode:
authorhardythe12014-07-15 19:12:34 +0530
committerhardythe12014-07-15 19:12:34 +0530
commite6d89dbf9b75a3e0f3edda8896e8ce586773a2b7 (patch)
tree05e56d85a172ed47fcbc77ffebdb907c7cd6dc2c /tbc/templates
parent686b7c2e0805d50729e1e71afdff0796f1273dcc (diff)
downloadPython-TBC-Interface-e6d89dbf9b75a3e0f3edda8896e8ce586773a2b7.tar.gz
Python-TBC-Interface-e6d89dbf9b75a3e0f3edda8896e8ce586773a2b7.tar.bz2
Python-TBC-Interface-e6d89dbf9b75a3e0f3edda8896e8ce586773a2b7.zip
changes on reviewer interface to approve a proposal
Diffstat (limited to 'tbc/templates')
-rwxr-xr-xtbc/templates/base.html1
-rw-r--r--tbc/templates/tbc/review-proposal.html36
2 files changed, 37 insertions, 0 deletions
diff --git a/tbc/templates/base.html b/tbc/templates/base.html
index 09c1c4c..9663c70 100755
--- a/tbc/templates/base.html
+++ b/tbc/templates/base.html
@@ -108,6 +108,7 @@
<a href="#" class="dropdown-toggle" data-toggle="dropdown">{{ reviewer.first_name }} {{ reviewer.last_name }} <b class="caret"></b></a>
<ul class="dropdown-menu">
<li><a href="{% url 'tbc:BookReview' %}">Review Books</a></li>
+ <li><a href="{% url 'tbc:ReviewProposals' %}">Review Proposals</a></li>
<li><a href="{% url 'tbc:UserLogout' %}">Logout</a></li>
</ul>
</li>
diff --git a/tbc/templates/tbc/review-proposal.html b/tbc/templates/tbc/review-proposal.html
new file mode 100644
index 0000000..2a83e37
--- /dev/null
+++ b/tbc/templates/tbc/review-proposal.html
@@ -0,0 +1,36 @@
+{% extends 'base.html' %}
+{% load static %}
+{% block content %}
+ <center><h3>Proposals to be reviewed</h3></center>
+ <ol>
+ {% for proposal in proposals %}
+ <li><h5>Propsal from {{ proposal.user.user.first_name }} {{ proposal.user.user.last_name }}</h5></li>
+ <div class="accordion" id="accordion2">
+ {% for textbook in proposal.textbooks.all %}
+ <div class="accordion-group">
+ <div class="accordion-heading">
+ <a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion2" href="#collapse{{forloop.counter}}">
+ {{ textbook.title }} - Book Preference {{ forloop.counter }}
+ </a>
+ </div>
+ <div id="collapse{{forloop.counter}}" class="accordion-body collapse">
+ <div class="accordion-inner">
+ Author: {{ textbook.author}}<br>
+ Edition: {{ textbook.edition }}<br>
+ Publisher: {{ textbook.publisher_place }}<br>
+ ISBN: {{ textbook.isbn }}<br>
+ Year of Pub.: {{ textbook.year_of_pub }}<br>
+ Category: {{ textbook.category }}<br>
+ <a class="btn btn-primary btn-mini" href="{% url 'tbc:ReviewProposals' proposal.id textbook.id %}">Approve & Alot Book</a>
+ </div>
+ </div>
+ </div>
+ {% endfor %}
+ <h5>Status: {{ proposal.status }}</h5>
+
+ </div>
+ {% endfor %}
+ </ol>
+{% endblock %}
+
+