summaryrefslogtreecommitdiff
path: root/tbc/templates
diff options
context:
space:
mode:
authorhardythe12013-12-31 12:51:55 +0530
committerhardythe12013-12-31 12:51:55 +0530
commitb5263d5a0513c206d6357b139ea208fb8e49759a (patch)
treed077136d4cfa57dbe81b432ab75451c07ca4c656 /tbc/templates
parentcefbd01ffd5646d87e3656861ae4e5a2826b2493 (diff)
downloadPython-TBC-Interface-b5263d5a0513c206d6357b139ea208fb8e49759a.tar.gz
Python-TBC-Interface-b5263d5a0513c206d6357b139ea208fb8e49759a.tar.bz2
Python-TBC-Interface-b5263d5a0513c206d6357b139ea208fb8e49759a.zip
making changes to give alerts for various events
Diffstat (limited to 'tbc/templates')
-rwxr-xr-xtbc/templates/base.html48
-rw-r--r--tbc/templates/tbc/profile.html22
-rw-r--r--tbc/templates/tbc/register.html2
3 files changed, 44 insertions, 28 deletions
diff --git a/tbc/templates/base.html b/tbc/templates/base.html
index 6e970a3..c8dbe88 100755
--- a/tbc/templates/base.html
+++ b/tbc/templates/base.html
@@ -125,21 +125,38 @@
<div class="container">
{% block content %}
{% if up %}
- <p>Book has been uploaded successfully. Please be patient while the reviewer reviews the book</p>
- {% endif %}
- {% if profile %}
- <p>Congratulations on your first log in. Please update your profile below.</p>
+ <center>
+ <div class="alert" style="width:500px;">
+ <a class="close" data-dismiss="alert" href="#">&times;</a>
+ <p>Book has been uploaded successfully.</p>
+ </div>
+ </center>
+ <div class="clearfix"></div>
{% endif %}
{% if login %}
- <p>Login Successful</p>
+ <center>
+ <div class="alert" style="width:150px;height:23px;">
+ <a class="close" data-dismiss="alert" href="#">&times;</a>
+ <p>Login Successful</p>
+ </div>
+ </center>
+ <div class="clearfix"></div>
{% endif %}
{% if logout %}
- <p>You have logged out successfully</p>
+ <center>
+ <div class="alert" style="width:300px;height:23px;">
+ <a class="close" data-dismiss="alert" href="#">&times;</a>
+ <p>You have logged out successfully !</p>
+ </div>
+ </center>
+ <div class="clearfix"></div>
{% endif %}
{% if update_book %}
- <p>Book has been updated successfully </p>
+ <div data-alert class="alert span8">
+ <p>Book has been updated successfully </p>
+ <a class="close" data-dismiss="alert" href="#">&times;</a>
+ </div>
{% endif %}
-
<div class="row-fluid">
<center><h3>Recent Submissions</h3></center>
{% for item in items %}
@@ -149,9 +166,7 @@
</div>
{% endfor %}
</div>
-
<br>
-
<center>
<a class="btn btn-primary" href="{% url 'tbc:BrowseBooks' %}">Browse All Books</a>
</center>
@@ -170,18 +185,7 @@
</div> <!-- /container -->
<script src="{% static 'js/jquery.js' %}"></script>
- <script src="{% static 'js/bootstrap-transition.js' %}"></script>
- <script src="{% static 'static/js/bootstrap-alert.js' %}"></script>
- <script src="{% static 'js/bootstrap-modal.js' %}"></script>
- <script src="{% static 'js/bootstrap-dropdown.js' %}"></script>
- <script src="{% static 'js/bootstrap-scrollspy.js' %}"></script>
- <script src="{% static 'js/bootstrap-tab.js' %}"></script>
- <script src="{% static 'js/bootstrap-tooltip.js' %}"></script>
- <script src="{% static 'js/bootstrap-popover.js' %}"></script>
- <script src="{% static 'js/bootstrap-button.js' %}"></script>
- <script src="{% static 'js/bootstrap-collapse.js' %}"></script>
- <script src="{% static 'js/bootstrap-carousel.js' %}"></script>
- <script src="{% static 'js/bootstrap-typeahead.js' %}"></script>
+ <script src="{% static 'js/bootstrap.min.js' %}"></script>
</body>
</html>
diff --git a/tbc/templates/tbc/profile.html b/tbc/templates/tbc/profile.html
index 3a1abe3..195ba3f 100644
--- a/tbc/templates/tbc/profile.html
+++ b/tbc/templates/tbc/profile.html
@@ -1,8 +1,20 @@
{% extends 'base.html' %}
{% block content %}
-<form action="/profile/" method=POST>
-{% csrf_token %}
-{{ form.as_p }}
-<input type=submit value=submit>
-</form>
+{% if profile %}
+ <center>
+ <div class="alert" style="width:500px;">
+ <a class="close" data-dismiss="alert" href="#">&times;</a>
+ <p>Congratulations on your first log in. Please update your profile.</p>
+ </div>
+ </center>
+ <div class="clearfix"></div>
+{% endif %}
+<div id="content-wrap" style="max-width:600px;">
+ <form action="/profile/" method=POST>
+ {% csrf_token %}
+ {{ form.as_p }}
+ <br>
+ <input class="btn btn-primary" type=submit value=submit>
+ </form>
+</div>
{% endblock %}
diff --git a/tbc/templates/tbc/register.html b/tbc/templates/tbc/register.html
index 7572515..c3305b8 100644
--- a/tbc/templates/tbc/register.html
+++ b/tbc/templates/tbc/register.html
@@ -4,7 +4,7 @@
<form action="/register/" method=POST enctype="multipart/form-data">
{% csrf_token %}
{{ form.as_p }}
- <input type=submit value=submit>
+ <input class="btn btn-primary" type=submit value=submit>
</form>
</div>
{% endblock %}