summaryrefslogtreecommitdiff
path: root/static/website
diff options
context:
space:
mode:
Diffstat (limited to 'static/website')
-rw-r--r--static/website/css/main.css37
-rw-r--r--static/website/js/main.js27
-rwxr-xr-xstatic/website/templates/base.html14
-rw-r--r--static/website/templates/call-for-proposals.html171
-rwxr-xr-xstatic/website/templates/home.html4
5 files changed, 236 insertions, 17 deletions
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 %}
<!DOCTYPE html>
<html lang="en">
@@ -7,6 +8,7 @@
<title>SciPy India 2014</title>
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
<link rel="stylesheet" href="{% static 'website/css/main.css'%}">
+ {% dajaxice_js_import %}
</head>
<body>
<div id="page-wrapper">
@@ -90,18 +92,10 @@
</div> <!-- /#social -->
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>
+<script src="{% static 'dajax/jquery.dajax.core.js' %}"></script>
<script src="{% static 'website/js/holder.js' %}"></script>
+<script src="{% static 'website/js/main.js' %}"></script>
<script type="text/javascript" charset="utf-8">
- $('#sidebar .nav-group').affix({
- offset: {
- top: 200
- }
- });
-
- $("body").scrollspy({
- target: '#sidebar',
- offset: 30
- });
</script>
</body>
</html>
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 %}
-<h3>Call for Papers</h3>
-<p>
-We are yet to open the call for papers for the conference !
-</p>
+<div class="row">
+ <div class="col-md-{% if user.is_authenticated %}6{% else %}8{% endif %}">
+ <p>
+ 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 <a href="http://en.wikipedia.org/wiki/PechaKucha" target="_blank">Pecha Kucha</a> style talk.
+ </p>
+ <p>
+ If you wish to present a talk at the conference, please follow the
+ guidelines below.
+ </p>
+ <h3 class="garmond">Submission Guidelines</h3>
+ <ul>
+ <li>Register to submit a proposal (this registration is NOT the conference registration).</li>
+ <li>Login &amp; Upload your proposal in the form of text file or a pdf file.</li>
+ <li>Submissions whose main purpose is to promote a commercial product or service will be refused.</li>
+ <li>All accepted proposals must be presented at the conference by at least one author.</li>
+ </ul>
+ <h3 class="garmond">Important Dates</h3>
+ <table class="table table-bordered">
+ <tr>
+ <td>Call for proposals ends</td>
+ <td>To be announced.</td>
+ </tr>
+ <tr>
+ <td>List of accepted proposals will be published</td>
+ <td>To be announced.</td>
+ </tr>
+ </table>
+ </div> <!-- /.col -->
+ <div class="col-md-{% if user.is_authenticated %}6{% else %}4{% endif %}">
+ {% if not request.user.is_authenticated %}
+ <!-- Nav tabs -->
+ <ul class="nav nav-tabs" role="tablist">
+ <li class="active"><a href="#login" role="tab" data-toggle="tab">Login</a></li>
+ <li><a href="#register" role="tab" data-toggle="tab">Register</a></li>
+ </ul> <!-- /.nav-tabs -->
+
+ <!-- Tab panes -->
+ <div class="tab-content">
+ <div class="tab-pane active" id="login">
+ <form id="login-form" action="" method="POST" role="form">{% csrf_token %}
+ <div id="non-field-errors">
+ </div>
+ <div id="wrap_id_username" class="form-group">
+ <label for="id_username">Username</label>
+ {% render_field login_form.username class+="form-control" %}
+ </div>
+ <div id="wrap_id_password" class="form-group">
+ <label for="id_username">Password</label>
+ {% render_field login_form.password class+="form-control" %}
+ </div>
+ <input id="login-submit" class="btn btn-default" type="submit" value="Login">
+ </form>
+ </div>
+ <div class="tab-pane" id="register">
+ <form id="register-form" action="" method="POST" role="form">{% csrf_token %}
+ <div id="reg_wrap_id_first_name" class="form-group">
+ <label for="id_first_name">First Name</label>
+ {% render_field register_form.first_name class+="form-control" %}
+ </div>
+ <div id="reg_wrap_id_last_name" class="form-group">
+ <label for="id_last_name">Last Name</label>
+ {% render_field register_form.last_name class+="form-control" %}
+ </div>
+ <div id="reg_wrap_id_email" class="form-group">
+ <label for="id_email">Email</label>
+ {% render_field register_form.email class+="form-control" %}
+ </div>
+ <div id="reg_wrap_id_username" class="form-group">
+ <label for="id_username">Username</label>
+ {% render_field register_form.username class+="form-control" %}
+ </div>
+ <div id="reg_wrap_id_password1" class="form-group">
+ <label for="id_password1">Password</label>
+ {% render_field register_form.password1 class+="form-control" %}
+ </div>
+ <div id="reg_wrap_id_password2" class="form-group">
+ <label for="id_password2">Repeat Password</label>
+ {% render_field register_form.password2 class+="form-control" %}
+ </div>
+ <input id="register-submit" class="btn btn-default" type="submit" value="Register">
+ </form>
+ </div>
+ </div> <!-- /.tab-content -->
+ {% else %}
+ <div class="well">
+ <span class="label label-default" href="#" id="welcome">Hello {{ request.user }}!</span>
+ <a class="label label-primary" href="#" id="logout">Logout</a>
+ {% if proposal_form %}
+ <h3 class="garmond"><u>Proposal Form{% if edit %} &mdash; Edit{% endif %}</u></h3>
+ <form id="proposal-form" action="" method="POST" role="form" enctype="multipart/form-data">{% csrf_token %}
+ <div id="wrap_id_title" class="form-group">
+ <label for="id_title">Title<sup class="red-star">*</sup></label> <small class="help">(Please enter your proposal title)</small>
+ {% render_field proposal_form.title class+="form-control" %}
+ {{ proposal_form.title.errors }}
+ </div>
+ <div id="wrap_id_objective" class="form-group">
+ <label for="id_objective">Objective<sup class="red-star">*</sup></label> <small class="help">(Please enter your proposal objective)</small>
+ {% render_field proposal_form.objective class+="form-control" %}
+ {{ proposal_form.objective.errors }}
+ </div>
+ <div id="wrap_id_abstract" class="form-group">
+ <label for="id_abstract">Abstract<sup class="red-star">*</sup></label> <small class="help">(Proposal abstract)</small>
+ {% render_field proposal_form.abstract class+="form-control" %}
+ {{ proposal_form.abstract.errors }}
+ </div>
+ <div id="wrap_id_bio" class="form-group">
+ <label for="id_bio">Bio<sup class="red-star">*</sup></label> <small class="help">(Your professional bio/designation etc.)</small>
+ {% render_field proposal_form.bio class+="form-control" %}
+ {{ proposal_form.bio.errors }}
+ </div>
+ <div id="wrap_id_link" class="form-group">
+ <label for="id_link">Link</label> <small class="help">(proposal related link, if any)</small>
+ {% render_field proposal_form.link class+="form-control" %}
+ {{ proposal_form.link.errors }}
+ </div>
+ <div id="wrap_id_attachment" class="form-group">
+ <label for="id_attachment">Attachment<sup class="red-star">*</sup></label> <small class="help">(<b>[.pdf]</b> of complete proposal)</small>
+ {% if edit%}<br>{% endif %}
+ {% render_field proposal_form.attachment class+="form-control" %}
+ {{ proposal_form.attachment.errors }}
+ </div>
+ <input id="proposal-submit" class="btn btn-primary" type="submit" value="{% if edit %}Update{% else %}Submit{% endif %} Proposal">
+ {% if edit%}
+ <a class="btn btn-default" href="{% url 'website:call_for_proposals' %}">Cancel</a>
+ {% endif %}
+ </form>
+ {% endif %}
+ {% if proposal %}
+ <div class="panel panel-default">
+ <div class="panel-heading garmond">
+ Your Proposal is
+ <span class="label label-info">Under Review</span>
+ </div>
+ <div class="panel-body">
+ <h6 class="garmond"><u>Title</u></h6>
+ <p><small>{{ proposal.title }}</small></p>
+ <h6 class="garmond"><u>Objective</u></h6>
+ <p><small>{{ proposal.objective }}</small></p>
+ <h6 class="garmond"><u>Abstract</u></h6>
+ <p><small>{{ proposal.objective }}</small></p>
+ <h6 class="garmond"><u>Bio</u></h6>
+ <p><small>{{ proposal.bio }}</small></p>
+ <h6 class="garmond"><u>Attachment</u></h6>
+ <p><small><a href="{{ proposal.attachment.url }}" target="_blank">View Attachment</</small></p>
+ </div>
+ <div class="panel-footer">
+ <a class="btn btn-info" href="{% url 'website:call_for_proposals' 'edit'%}">Edit Proposal</a>
+ </div>
+ </div>
+ {% endif %}
+ </div> <!-- /.well -->
+ {% endif %}
+ </div> <!-- /.col -->
+</div> <!-- /.row -->
{% 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 @@
<div class="caption">
Maciej FijaƂkowski (<span class="garmond">Keynote</span>)
<hr>
- <div class="extras">
+ <div class="extras garmond">
<div class="row">
<div class="col-md-6 bio">
<a href="{% url 'website:invited_speakers' %}">View Bio</a>
@@ -88,7 +88,7 @@
<div class="caption">
Ajith Kumar (<span class="garmond">Invited</span>)
<hr>
- <div class="extras">
+ <div class="extras garmond">
<div class="row">
<div class="col-md-6 bio">
<a href="{% url 'website:invited_speakers' %}">View Bio</a>