summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xwebsite/forms.py4
-rwxr-xr-xwebsite/templates/base.html25
2 files changed, 21 insertions, 8 deletions
diff --git a/website/forms.py b/website/forms.py
index e052ddf..b6bbc20 100755
--- a/website/forms.py
+++ b/website/forms.py
@@ -11,6 +11,7 @@ from captcha.fields import ReCaptchaField # Only import different from yesterda
from crispy_forms.helper import FormHelper
from crispy_forms.layout import Submit
import floppyforms as forms
+from captcha.fields import ReCaptchaField
MY_CHOICES = (
@@ -40,12 +41,11 @@ class ContactForm(forms.Form):
required = True,
error_messages = {'required':'Email field required.'},
)
- # subject = forms.CharField(required=True)
message = forms.CharField(widget=forms.TextInput(attrs={'class': 'form-control', 'placeholder': 'Title'}),
required = True,
error_messages = {'required':'Message field required.'},
)
- # rate = forms.ChoiceField(choices=rating)
+ captcha = ReCaptchaField()
class ProposalForm(forms.ModelForm):
diff --git a/website/templates/base.html b/website/templates/base.html
index 033745c..3e46e81 100755
--- a/website/templates/base.html
+++ b/website/templates/base.html
@@ -21,8 +21,8 @@
<h1 >SciPy India 2016</h1>
<p style="color:#484848; font-weight:700; font-size:28px;" >DECEMBER 10 & 11</p><br><br>
- <a href="#" class="button special" style="width : 220px;" >Attend</a></center>
- <a href="{% url 'website:cfp' %}" class="button special" style="width : 220px;">Call for Proposal</a></center>
+ <a href="#attend" class="button special" style="width : 220px;" >Attend</a></center>
+ <a href="#" class="button special" id="cfp" style="width : 220px;">Call for Proposal</a></center>
</header>
{% endblock %}
@@ -40,7 +40,7 @@
<li> <a href="#about" class="smoothScroll">About</a></li>
<li> <a href="#speakers" class="smoothScroll">Speakers</a></li>
<li> <a href="#attend" class="smoothScroll">Attend</a></li>
- <li> <a href="{% url 'website:cfp' %}">Call for Proposal</a></li>
+ <li> <a href="#" id = "cfp1" >Call for Proposal</a></li>
<li> <a href="#schedule" class="smoothScroll">Schedule</a></li>
<li> <a href="#venue" class="smoothScroll">Venue</a></li>
<li> <a href="#sponsors" class="smoothScroll">Sponsors</a></li>
@@ -138,7 +138,7 @@
<tr>
<td bgcolor="#efa8b0">
<h9 style="color:white;">Early Bird</h9>
- <h2 style="color:white;" style ="font-size: 25px;">&#8377;1000</h2>
+ <h2 style="color:white;" style ="font-size: 25px;">&#8377;1200</h2>
<h9 style="color:white;">(Till 10 Nov 2016)</h9>
</td>
<td>
@@ -160,7 +160,7 @@
<tr>
<td bgcolor="#a89cc8">
<h9 style="color:white;">Regular</h9>
- <h2 style="color:white;" style ="font-size: 25px;">&#8377;1200</h2>
+ <h2 style="color:white;" style ="font-size: 25px;">&#8377;1400</h2>
<h9 style="color:white;">(10 Nov - 30 Nov 2016)</h9>
</td>
<td>
@@ -190,7 +190,7 @@
<p id="demo"></p>
<footer class="major">
<ul class="actions">
- <li><input type= "image" href="#" src="{% static 'img/register.png'%}"></li>
+ <a target="_blank" href="http://scipyindia2016.doattend.com/"><input type= "image" src="{% static 'img/register.png'%}"></a>
</ul>
</footer>
</section>
@@ -464,6 +464,7 @@
<script src="{% static 'js/bootstrap.min.js' %}"></script>
<script src="{% static 'js/smoothscroll.js' %}"></script>
+
<!--
<script>
$(document).ready(function() {
@@ -496,5 +497,17 @@ window.onload = function () {
}
}</script>
+<script type="text/javascript">
+
+window.onload = function () {
+ document.getElementById("cfp").onclick = function () {
+ alert("To Be Announced !");
+ }
+ document.getElementById("cfp1").onclick = function () {
+ alert("To Be Announced !");
+ }
+}</script>
+
+
</body>
</html> \ No newline at end of file