From b5263d5a0513c206d6357b139ea208fb8e49759a Mon Sep 17 00:00:00 2001 From: hardythe1 Date: Tue, 31 Dec 2013 12:51:55 +0530 Subject: making changes to give alerts for various events --- tbc/templates/base.html | 48 ++++++++++++++++++++++------------------- tbc/templates/tbc/profile.html | 22 ++++++++++++++----- tbc/templates/tbc/register.html | 2 +- 3 files changed, 44 insertions(+), 28 deletions(-) (limited to 'tbc/templates') 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 @@
{% block content %} {% if up %} -

Book has been uploaded successfully. Please be patient while the reviewer reviews the book

- {% endif %} - {% if profile %} -

Congratulations on your first log in. Please update your profile below.

+
+
+ × +

Book has been uploaded successfully.

+
+
+
{% endif %} {% if login %} -

Login Successful

+
+
+ × +

Login Successful

+
+
+
{% endif %} {% if logout %} -

You have logged out successfully

+
+
+ × +

You have logged out successfully !

+
+
+
{% endif %} {% if update_book %} -

Book has been updated successfully

+
+

Book has been updated successfully

+ × +
{% endif %} -

Recent Submissions

{% for item in items %} @@ -149,9 +166,7 @@
{% endfor %}
-
-
Browse All Books
@@ -170,18 +185,7 @@ - - - - - - - - - - - - + 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 %} -
-{% csrf_token %} -{{ form.as_p }} - -
+{% if profile %} +
+
+ × +

Congratulations on your first log in. Please update your profile.

+
+
+
+{% endif %} +
+
+ {% csrf_token %} + {{ form.as_p }} +
+ +
+
{% 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 @@
{% csrf_token %} {{ form.as_p }} - +
{% endblock %} -- cgit