summaryrefslogtreecommitdiff
path: root/tbc/templates
diff options
context:
space:
mode:
authorhardythe12014-06-17 12:33:40 +0530
committerhardythe12014-06-17 12:33:40 +0530
commit7294076a0b0b47a29d5148b56e0be02c6f17e986 (patch)
tree3fbb3f100998342548d7ad3b197024f16615a183 /tbc/templates
parent5d9783ad90d0bc3dd3c09b1931fc6cc630573ce4 (diff)
downloadPython-TBC-Interface-7294076a0b0b47a29d5148b56e0be02c6f17e986.tar.gz
Python-TBC-Interface-7294076a0b0b47a29d5148b56e0be02c6f17e986.tar.bz2
Python-TBC-Interface-7294076a0b0b47a29d5148b56e0be02c6f17e986.zip
fixing a minor issue in book approval view & in uploading the content page
Diffstat (limited to 'tbc/templates')
-rw-r--r--tbc/templates/tbc/book-review.html14
-rw-r--r--tbc/templates/tbc/upload-content.html4
2 files changed, 14 insertions, 4 deletions
diff --git a/tbc/templates/tbc/book-review.html b/tbc/templates/tbc/book-review.html
index 774998c..d7270b4 100644
--- a/tbc/templates/tbc/book-review.html
+++ b/tbc/templates/tbc/book-review.html
@@ -2,10 +2,20 @@
{% load static %}
{% block content %}
{% if book_review %}
-<p>Book has been approved !</p>
+<center>
+ <div class="alert" style="width:230px;height:23px;">
+ <a class="close" data-dismiss="alert" href="#">&times;</a>
+ <p>Book has been approved !</p>
+ </div>
+ </center>
{% endif %}
{% if mail_notify %}
-<p>Successfully notified the required changes !</p>
+<center>
+ <div class="alert" style="width:230px;height:23px;">
+ <a class="close" data-dismiss="alert" href="#">&times;</a>
+ <p>Successfully notified the required changes !</p>
+ </div>
+ </center>
{% endif %}
<center><h3>Books to be reviewed</h3></center>
<ol>
diff --git a/tbc/templates/tbc/upload-content.html b/tbc/templates/tbc/upload-content.html
index 01bb584..5f6025c 100644
--- a/tbc/templates/tbc/upload-content.html
+++ b/tbc/templates/tbc/upload-content.html
@@ -47,7 +47,7 @@ function validate_content()
<div id="content-wrap" style="max-width:600px;">
<p>Upload chapters as individual IPython notebooks. Please do not use spaces to name your Ipython Notebook files. For ex.
use "chapter1.ipynb instead of chapter 1.ipynb"</p>
- <form action="/upload-content/{{ curr_book.id }}" method=POST enctype="multipart/form-data">
+ <form action="/upload-content/{{ curr_book.id }}" method=POST enctype="multipart/form-data" onSubmit="return validate_content();">
{% csrf_token %}
{% for i in no_notebooks %}
<input type=text id=chapter{{i}} name=chapter{{i}} placeholder="Chapter {{ forloop.counter }} name">
@@ -60,7 +60,7 @@ function validate_content()
<input type=text id=caption{{i}} name=caption{{i}} placeholder="Caption {{ forloop.counter }}">
<input type=file id=image{{i}} name=image{{i}}>
{% endfor %}
- <center><input class="btn btn-primary" type=submit value=submit onClick="return validate_content();"></center>
+ <center><input class="btn btn-primary" type=submit value=submit></center>
</form>
</div>
{% endblock %}