diff options
Diffstat (limited to 'tbc/templates')
-rwxr-xr-x | tbc/templates/base.html | 45 | ||||
-rw-r--r-- | tbc/templates/tbc/notify-changes.html | 16 |
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 %} |