diff options
author | hardythe1 | 2015-06-20 17:53:17 +0530 |
---|---|---|
committer | hardythe1 | 2015-06-20 17:53:17 +0530 |
commit | ee5db497eea5cf644c906028206e0c83155b29a9 (patch) | |
tree | 7d892623800da2754e1978129938c8b09231bf48 /website | |
parent | 4e3c41d5d78ba89c985ce7a31d3530a691bd8793 (diff) | |
download | SciPy2015-ee5db497eea5cf644c906028206e0c83155b29a9.tar.gz SciPy2015-ee5db497eea5cf644c906028206e0c83155b29a9.tar.bz2 SciPy2015-ee5db497eea5cf644c906028206e0c83155b29a9.zip |
change to fix a minor bug
Diffstat (limited to 'website')
-rw-r--r-- | website/templates/base.html | 24 | ||||
-rw-r--r-- | website/views.py | 1 |
2 files changed, 13 insertions, 12 deletions
diff --git a/website/templates/base.html b/website/templates/base.html index 02a238b..8e8fb7e 100644 --- a/website/templates/base.html +++ b/website/templates/base.html @@ -40,7 +40,8 @@ <div class="container"> <div class="navbar-header"> <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse"> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> - <a class="navbar-brand smoothScroll" href="#home">SciPy India 2015 </a> </div> + <a class="navbar-brand smoothScroll" href="#home">SciPy India 2015 </a> + </div> <div class="navbar-collapse collapse"> <ul class="nav navbar-nav navbar-right"> <li> <a href="#home" class="smoothScroll">Home</a></li> @@ -53,26 +54,27 @@ <!--/.nav-collapse --> </div> </div> -</di> +</div> <!-- ==== HEADERWRAP ==== --> <div id="headerwrap" name="home"> - {% if mailsent %} - <div class="alert alert-success" role="alert"> + {% if mailsent %} + <div class="alert alert-success" role="alert"> <button type="button" class="close" data-dismiss="alert" aria-label="Close"> <span aria-hidden="true">×</span> </button> <p>Thank You for contacting us. We will get back to you soon !</p> - </div> - {% endif %} - {% if mailfailed %} - <div class="alert alert-danger" role="alert"> + </div> + {% endif %} + {% if mailfailed %} + <div class="alert alert-danger" role="alert"> <button type="button" class="close" data-dismiss="alert" aria-label="Close"> <span aria-hidden="true">×</span> </button> <p>Sorry ! There seems to be some problem with our mail server, we could not send your query. While we solve it, you may write to us at scipy[at]fossee[dot]in.</p> - </div> - {% endif %} + </div> + {% endif %} + <header class="clearfix"> <center> <img class="img-responsive" height=300 width=300 src="{% static 'img/scipy.png' %}" alt=""></center> <h1>SciPy India 2015</h1> <hr> @@ -185,7 +187,7 @@ <div class="row"> <div class="col-lg-8 col-lg-offset-2 centered"> <p>Feel free to drop us a mail regarding any of the queries that you might have.</p> - <form id="contact" action="{% url 'website:home' %}" class="form" role="form" method=POST enctype="multipart/form-data"> + <form id="contact" action="" class="form" role="form" method=POST enctype="multipart/form-data"> <div class="row"> <div class="col-xs-6 col-md-6 form-group"> <input class="form-control" id="name" name="name" placeholder="Name" type="text" required /> diff --git a/website/views.py b/website/views.py index 2fcca04..0b6c89f 100644 --- a/website/views.py +++ b/website/views.py @@ -26,5 +26,4 @@ def home(request): context['mailsent'] = True except: context['mailfailed'] = True - return render_to_response('base.html', context) return render_to_response('base.html', context) |