summaryrefslogtreecommitdiff
path: root/tbc/templates
diff options
context:
space:
mode:
authorhardythe12014-08-28 11:32:56 +0530
committerhardythe12014-08-28 11:32:56 +0530
commit41bc272db70241672f9f7e11f28818c5f0492ee0 (patch)
tree76df75067d928d18682b25a1773eb2f72fc05209 /tbc/templates
parent0ed8309072561cda5087bf894721caa4aa4fcd32 (diff)
downloadPython-TBC-Interface-41bc272db70241672f9f7e11f28818c5f0492ee0.tar.gz
Python-TBC-Interface-41bc272db70241672f9f7e11f28818c5f0492ee0.tar.bz2
Python-TBC-Interface-41bc272db70241672f9f7e11f28818c5f0492ee0.zip
added condition to remove options to approve & notify book if the book is approved
Diffstat (limited to 'tbc/templates')
-rw-r--r--tbc/templates/tbc/book-review-details.html37
1 files changed, 22 insertions, 15 deletions
diff --git a/tbc/templates/tbc/book-review-details.html b/tbc/templates/tbc/book-review-details.html
index f304a66..ec90cd0 100644
--- a/tbc/templates/tbc/book-review-details.html
+++ b/tbc/templates/tbc/book-review-details.html
@@ -11,21 +11,27 @@
{% endfor %}
</div>
<hr>
-<ul>
-{% for chapter in chapters %}
- <li><a href="{% url 'tbc:ConvertNotebook' chapter.notebook %}">{{ chapter.name }}</a></li>
-{% endfor %}
-</ul>
+<table class="table table-bordered table-hover">
+ {% for chapter in chapters %}
+ <tr>
+ <td><a href="{% url 'tbc:ConvertNotebook' chapter.notebook %}">{{ chapter.name }}</a></td>
+ </tr>
+ {% endfor %}
+</table>
<hr>
-<form action="/approve-book/{{ book.id }}" method="POST">
-{% csrf_token %}
-<select name=approve_notify>
- <option value=none>Select an Action</option>
- <option value="approve">Approve</option>
- <option value="notify">Notify Changes</option>
-</select>
-<input type=submit value=GO>
-</form>
+{% if book.approved %}
+<h3>Book has been completed & approved</h3>
+{% else %}
+ <form action="/approve-book/{{ book.id }}" method="POST">
+ {% csrf_token %}
+ <select name=approve_notify>
+ <option value=none>Select an Action</option>
+ <option value="approve">Approve</option>
+ <option value="notify">Notify Changes</option>
+ </select>
+ <input type=submit value=GO>
+ </form>
+{% endif %}
<table>
<tr><td>Author: &nbsp;&nbsp;<td>{{ book.author }}
<tr><td>Publisher: &nbsp;&nbsp;<td>{{ book.publisher_place }}
@@ -33,7 +39,8 @@
<tr><td>Contributor: &nbsp;&nbsp;<td>{{ book.contributor.user.first_name }} {{ book.contributor.user.last_name }}
<tr><td>Email: &nbsp;&nbsp;<td>{{ book.contributor.user.email }}<br>
</table>
-<table class='table'>
+<hr>
+<table class="table table-bordered table-hover">
<tr>
<th>User</th>
<th>Time</th>