From a254d1aa4d10d0704c9f8981400257b17c52022b Mon Sep 17 00:00:00 2001 From: Jayaram R Pai Date: Sat, 20 Sep 2014 19:42:34 +0530 Subject: completed CFP - basic testing done --- static/uploads/.notempty | 0 static/website/css/main.css | 37 +++++ static/website/js/main.js | 27 ++++ static/website/templates/base.html | 14 +- static/website/templates/call-for-proposals.html | 171 ++++++++++++++++++++++- static/website/templates/home.html | 4 +- 6 files changed, 236 insertions(+), 17 deletions(-) create mode 100644 static/uploads/.notempty create mode 100644 static/website/js/main.js (limited to 'static') diff --git a/static/uploads/.notempty b/static/uploads/.notempty new file mode 100644 index 0000000..e69de29 diff --git a/static/website/css/main.css b/static/website/css/main.css index f3c89d9..05943f7 100644 --- a/static/website/css/main.css +++ b/static/website/css/main.css @@ -216,3 +216,40 @@ body { #twitter-widget-0 { height: 265px; } +/* form section */ +.errorlist { + margin: 0; +} +.red-star { + color: tomato; +} +.tab-content { + padding: 10px; + border: 1px solid #dddddd; + border-top: none; +} +.well { + position: relative; + text-align: left; +} +.well #welcome { + position: absolute; + top: 0; + left: 0; +} +.well #logout { + position: absolute; + top: 0; + right: 0; +} +.well .panel { + margin-top: 15px; + -webkit-box-shadow: 0 0 10px #cccccc; + -moz-box-shadow: 0 0 10px #cccccc; + -o-box-shadow: 0 0 10px #cccccc; + box-shadow: 0 0 10px #cccccc; + +} +#proposal-form textarea { + height: 100px; +} diff --git a/static/website/js/main.js b/static/website/js/main.js new file mode 100644 index 0000000..34f2026 --- /dev/null +++ b/static/website/js/main.js @@ -0,0 +1,27 @@ +$(document).ready(function() { + $(document).on("click", "#login-submit", function(e) { + Dajaxice.website.user_login(Dajax.process, {form: $("#login-form").serialize(true)}); + e.preventDefault(); + }); + + $(document).on("click", "#register-submit", function(e) { + Dajaxice.website.user_register(Dajax.process, {form: $("#register-form").serialize(true)}); + e.preventDefault(); + }); + + $(document).on("click", "#logout", function(e) { + Dajaxice.website.user_logout(Dajax.process); + e.preventDefault(); + }); +}); + +$('#sidebar .nav-group').affix({ + offset: { + top: 200 + } +}); + +$("body").scrollspy({ + target: '#sidebar', + offset: 30 +}); diff --git a/static/website/templates/base.html b/static/website/templates/base.html index 02e685c..051b9e6 100755 --- a/static/website/templates/base.html +++ b/static/website/templates/base.html @@ -1,4 +1,5 @@ {% load static %} +{% load dajaxice_templatetags %} {% load tags %} @@ -7,6 +8,7 @@ SciPy India 2014 + {% dajaxice_js_import %}
@@ -90,18 +92,10 @@
+ + diff --git a/static/website/templates/call-for-proposals.html b/static/website/templates/call-for-proposals.html index b9dc702..69bdfe6 100644 --- a/static/website/templates/call-for-proposals.html +++ b/static/website/templates/call-for-proposals.html @@ -1,15 +1,176 @@ {% extends 'website/templates/base.html' %} +{% load widget_tweaks %} + {% block sidebar %} {% endblock %} {% block current %} -Call for Papers +Call for Proposals {% endblock %} {% block content %} -

Call for Papers

-

-We are yet to open the call for papers for the conference ! -

+
+
+

+ We look forward to submissions for presentations at SciPy India + 2014. Please submit an abstract of 300 to 500 words describing the + topic, including its relevance to Python. Only submissions with an + actual implementation will be considered for presentation (i.e. + proposals to implement the code are not acceptable, partial + implementations are acceptable so long as they demonstrate the + features discussed). Please provide links to your code if this is + an open source implementation. Based on the quality of the + submissions, the conference organizers will select it either as a + full fledged talk (20-30 mins) or Pecha Kucha style talk. +

+

+ If you wish to present a talk at the conference, please follow the + guidelines below. +

+

Submission Guidelines

+ +

Important Dates

+ + + + + + + + + +
Call for proposals endsTo be announced.
List of accepted proposals will be publishedTo be announced.
+
+
+ {% if not request.user.is_authenticated %} + + + + +
+
+
{% csrf_token %} +
+
+
+ + {% render_field login_form.username class+="form-control" %} +
+
+ + {% render_field login_form.password class+="form-control" %} +
+ +
+
+
+
{% csrf_token %} +
+ + {% render_field register_form.first_name class+="form-control" %} +
+
+ + {% render_field register_form.last_name class+="form-control" %} +
+
+ + {% render_field register_form.email class+="form-control" %} +
+
+ + {% render_field register_form.username class+="form-control" %} +
+
+ + {% render_field register_form.password1 class+="form-control" %} +
+
+ + {% render_field register_form.password2 class+="form-control" %} +
+ +
+
+
+ {% else %} +
+ Hello {{ request.user }}! + Logout + {% if proposal_form %} +

Proposal Form{% if edit %} — Edit{% endif %}

+
{% csrf_token %} +
+ (Please enter your proposal title) + {% render_field proposal_form.title class+="form-control" %} + {{ proposal_form.title.errors }} +
+
+ (Please enter your proposal objective) + {% render_field proposal_form.objective class+="form-control" %} + {{ proposal_form.objective.errors }} +
+
+ (Proposal abstract) + {% render_field proposal_form.abstract class+="form-control" %} + {{ proposal_form.abstract.errors }} +
+
+ (Your professional bio/designation etc.) + {% render_field proposal_form.bio class+="form-control" %} + {{ proposal_form.bio.errors }} +
+ +
+ ([.pdf] of complete proposal) + {% if edit%}
{% endif %} + {% render_field proposal_form.attachment class+="form-control" %} + {{ proposal_form.attachment.errors }} +
+ + {% if edit%} + Cancel + {% endif %} +
+ {% endif %} + {% if proposal %} +
+
+ Your Proposal is + Under Review +
+
+
Title
+

{{ proposal.title }}

+
Objective
+

{{ proposal.objective }}

+
Abstract
+

{{ proposal.objective }}

+
Bio
+

{{ proposal.bio }}

+
Attachment
+

View Attachment

+
+ +
+ {% endif %} +
+ {% endif %} +
+
{% endblock %} diff --git a/static/website/templates/home.html b/static/website/templates/home.html index 8285ccb..3fda3ae 100755 --- a/static/website/templates/home.html +++ b/static/website/templates/home.html @@ -69,7 +69,7 @@
Maciej FijaƂkowski (Keynote)
-
+
View Bio @@ -88,7 +88,7 @@
Ajith Kumar (Invited)
-
+
View Bio -- cgit