summaryrefslogtreecommitdiff
path: root/tbc/templates
diff options
context:
space:
mode:
authorhardythe12013-11-22 17:46:50 +0530
committerhardythe12013-11-22 17:46:50 +0530
commitcc4922f209ac8fdb5930bdcef91b11e606a75af2 (patch)
tree4c44c41b846de110e3007ee61ddb24f3e5fc25b1 /tbc/templates
parentc55a9304cac3dfc0f8ad77e19086136397f783f0 (diff)
downloadPython-TBC-Interface-cc4922f209ac8fdb5930bdcef91b11e606a75af2.tar.gz
Python-TBC-Interface-cc4922f209ac8fdb5930bdcef91b11e606a75af2.tar.bz2
Python-TBC-Interface-cc4922f209ac8fdb5930bdcef91b11e606a75af2.zip
changes to redirect reviewer to resp. interface & notify user about chages required
Diffstat (limited to 'tbc/templates')
-rwxr-xr-xtbc/templates/base.html45
-rw-r--r--tbc/templates/tbc/notify-changes.html16
2 files changed, 45 insertions, 16 deletions
diff --git a/tbc/templates/base.html b/tbc/templates/base.html
index 9a47446..73ccc32 100755
--- a/tbc/templates/base.html
+++ b/tbc/templates/base.html
@@ -51,22 +51,35 @@
</ul>
</li>
</ul>
- {% if not user %}
- <form action="" method="post" class="navbar-form pull-right">
- <button type="button" class="btn" onclick='location.replace("{% url 'tbc:UserLogin' %}");'>Login</button>
- <button type="button" class="btn" onclick='location.replace("{% url 'tbc:UserRegister' %}");'>Sign Up</button>
- </form>
- {% else %}
- <div class="btn-group pull-right">
- <button class="btn">{{ user.first_name }} {{ user.last_name }}</button>
- <button class="btn dropdown-toggle" data-toggle="dropdown">
- <span class="caret"></span>
- </button>
- <ul class="dropdown-menu">
- <li><a href="{% url 'tbc:SubmitBook' %}">Submit Book</a></li>
- <li><a href="{% url 'tbc:UserLogout' %}">Logout</a></li>
- </ul>
- </div>
+ {% if user %}
+ <div class="btn-group pull-right">
+ <button class="btn">{{ user.first_name }} {{ user.last_name }}</button>
+ <button class="btn dropdown-toggle" data-toggle="dropdown">
+ <span class="caret"></span>
+ </button>
+ <ul class="dropdown-menu">
+ <li><a href="{% url 'tbc:SubmitBook' %}">Submit Book</a></li>
+ <li><a href="{% url 'tbc:UserLogout' %}">Logout</a></li>
+ </ul>
+ </div>
+ {% endif %}
+ {% if reviewer %}
+ <div class="btn-group pull-right">
+ <button class="btn">{{ reviewer.first_name }} {{ reviewer.last_name }}</button>
+ <button class="btn dropdown-toggle" data-toggle="dropdown">
+ <span class="caret"></span>
+ </button>
+ <ul class="dropdown-menu">
+ <li><a href="{% url 'tbc:BookReview' %}">Review Books</a></li>
+ <li><a href="{% url 'tbc:UserLogout' %}">Logout</a></li>
+ </ul>
+ </div>
+ {% endif %}
+ {% if anonymous %}
+ <form action="" method="post" class="navbar-form pull-right">
+ <button type="button" class="btn" onclick='location.replace("{% url 'tbc:UserLogin' %}");'>Login</button>
+ <button type="button" class="btn" onclick='location.replace("{% url 'tbc:UserRegister' %}");'>Sign Up</button>
+ </form>
{% endif %}
</div><!--/.nav-collapse -->
diff --git a/tbc/templates/tbc/notify-changes.html b/tbc/templates/tbc/notify-changes.html
new file mode 100644
index 0000000..ffb2199
--- /dev/null
+++ b/tbc/templates/tbc/notify-changes.html
@@ -0,0 +1,16 @@
+{% extends 'base.html' %}
+{% load static %}
+{% block content %}
+<center><h3>Notify Changes</h3></center>
+<p>Notifing Chages for book {{ book.title }} to {{ book.contributor.user.first_name }} {{ book.contributor.user.last_name }}
+<form action="/notify-changes/{{ book_id }}" method=POST enctype="multipart/form-data">
+{% csrf_token %}
+ <table>
+ <tr><td>To</td></tr>
+ <tr><td><input type="text" value="{{ mailto }}" readonly></td></tr>
+ <tr><td>Changes Required</td></tr>
+ <tr><td><textarea rows="5" cols="100" name="changes_required"></textarea></td></tr>
+ <tr><td><input type="submit" value="Send"></td></tr>
+ </table>
+</form>
+{% endblock %}