summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tbc/templates/tbc/about-pytbc.html10
-rw-r--r--tbc/templates/tbc/login.html10
-rw-r--r--tbc/views.py4
3 files changed, 18 insertions, 6 deletions
diff --git a/tbc/templates/tbc/about-pytbc.html b/tbc/templates/tbc/about-pytbc.html
index e71dc3d..c73063f 100644
--- a/tbc/templates/tbc/about-pytbc.html
+++ b/tbc/templates/tbc/about-pytbc.html
@@ -21,7 +21,7 @@ function data(showHideDiv)
{% block content %}
<center><h2> Textbook Companion Project </h2></center>
<hr>
-<a href="" onClick="data('contri'); return false;" style="cursor:pointer;" />How do I contribute?</strong></p></a>
+<a href="" onClick="data('contri'); return false;" style="cursor:pointer;" /><h4>How do I contribute?</h4></strong></p></a>
<div id="contentDiv">
<div id="contri" style="padding:5px; display:none;">
<p><h4> Anyone can contribute to the project. </p>
@@ -45,7 +45,7 @@ function data(showHideDiv)
<li>On completion of the entire book, the contributor will be notified for further proceedings
</div>
</div>
-<a href="" onClick="data('goodies'); return false;" style="cursor:pointer;" />Goodies</strong></p></a>
+<a href="" onClick="data('goodies'); return false;" style="cursor:pointer;" /><h4>Goodies</h4></strong></p></a>
<div id="contentDiv">
<div id="goodies" style="padding:5px; display:none;">
<p>
@@ -58,7 +58,7 @@ function data(showHideDiv)
</p>
</div>
</div>
-<a href="" onClick="data('disclaimer'); return false;" style="cursor:pointer;" />Disclaimer</strong></p></a>
+<a href="" onClick="data('disclaimer'); return false;" style="cursor:pointer;" /><h4>Disclaimer</h4></strong></p></a>
<div id="contentDiv">
<div id="disclaimer" style="padding:5px; display:none;">
<p>
@@ -75,7 +75,7 @@ function data(showHideDiv)
</p>
</div>
</div>
-<a href="" onClick="data('faqs'); return false;" style="cursor:pointer;" />FAQs</strong></p></a>
+<a href="" onClick="data('faqs'); return false;" style="cursor:pointer;" /><h4>FAQs</h4></strong></p></a>
<div id="contentDiv">
<div id="faqs" style="padding:5px; display:none;">
<p>
@@ -126,7 +126,7 @@ function data(showHideDiv)
</p>
</div>
</div>
-<a href="" onClick="data('contact'); return false;" style="cursor:pointer;" />Contact</strong></p></a>
+<a href="" onClick="data('contact'); return false;" style="cursor:pointer;" /><h4>Contact</h4></strong></p></a>
<div id="contentDiv">
<div id="contact" style="padding:5px; display:none;">
<p>For any queries or assistance you my require, feel free to contact us through below given mediums.
diff --git a/tbc/templates/tbc/login.html b/tbc/templates/tbc/login.html
index 78d26d5..92ffb2a 100644
--- a/tbc/templates/tbc/login.html
+++ b/tbc/templates/tbc/login.html
@@ -1,5 +1,15 @@
{% extends 'base.html' %}
{% block content %}
+{% if signup %}
+ <center>
+ <div class="alert" style="width:550px;height:23px;">
+ <a class="close" data-dismiss="alert" href="#">&times;</a>
+ <p>You have registered successfully, kindly login with your credentials !!</p>
+ </div>
+ </center>
+ <div class="clearfix"></div>
+{% endif %}
+
<div id="content-wrap" style="max-width: 400px;">
<br><br>
{% if require_login %}
diff --git a/tbc/views.py b/tbc/views.py
index cc855b1..2d8e12f 100644
--- a/tbc/views.py
+++ b/tbc/views.py
@@ -116,6 +116,8 @@ def UserLogin(request):
return HttpResponseRedirect("/profile/?update=profile")
else:
form = UserLoginForm()
+ if 'signup' in request.GET:
+ context['signup'] = True
context.update(csrf(request))
context['form'] = form
return render_to_response('tbc/login.html', context)
@@ -126,7 +128,7 @@ def UserRegister(request):
form = UserRegisterForm(request.POST)
if form.is_valid():
form.save()
- return HttpResponseRedirect('/login')
+ return HttpResponseRedirect('/login/?signup=done')
else:
context = {}
context.update(csrf(request))