summaryrefslogtreecommitdiff
path: root/static/website
diff options
context:
space:
mode:
Diffstat (limited to 'static/website')
-rw-r--r--static/website/js/custom.js13
-rwxr-xr-xstatic/website/templates/abstract-details.html44
-rwxr-xr-xstatic/website/templates/cfp.html234
-rwxr-xr-xstatic/website/templates/comment-abstract.html98
-rwxr-xr-xstatic/website/templates/edit-proposal.html35
-rw-r--r--static/website/templates/header.html6
-rw-r--r--static/website/templates/navbar.html7
-rw-r--r--static/website/templates/proposal.html16
-rw-r--r--static/website/templates/registration/login.html2
-rwxr-xr-xstatic/website/templates/registration/password_change_done.html47
-rwxr-xr-xstatic/website/templates/registration/password_change_form.html49
-rwxr-xr-xstatic/website/templates/registration/password_reset_complete.html41
-rwxr-xr-xstatic/website/templates/registration/password_reset_confirm.html91
-rwxr-xr-xstatic/website/templates/registration/password_reset_done.html41
-rwxr-xr-xstatic/website/templates/registration/password_reset_form.html26
-rwxr-xr-xstatic/website/templates/submit-cfp.html115
-rwxr-xr-xstatic/website/templates/submit-cfw.html102
-rwxr-xr-xstatic/website/templates/user-register.html43
-rwxr-xr-xstatic/website/templates/view-proposals.html191
19 files changed, 927 insertions, 274 deletions
diff --git a/static/website/js/custom.js b/static/website/js/custom.js
index 2573428..4720549 100644
--- a/static/website/js/custom.js
+++ b/static/website/js/custom.js
@@ -65,6 +65,18 @@ $(document)
updateGallery($(this));
});
}
+
+ var fewSeconds = 5;
+ $('#subbtn').click(function(){
+ // Ajax request
+ alert("I have read all the instructions carefully");
+ var btn = $(this);
+ /*btn.prop('disabled', true);
+ setTimeout(function(){
+ btn.prop('disabled', false);
+ }, fewSeconds*1000);*/
+});
+
});
// build key actions
@@ -91,3 +103,4 @@ $(document)
e.preventDefault(); // prevent the default action (scroll / move caret)
});
+
diff --git a/static/website/templates/abstract-details.html b/static/website/templates/abstract-details.html
new file mode 100755
index 0000000..07dcfc3
--- /dev/null
+++ b/static/website/templates/abstract-details.html
@@ -0,0 +1,44 @@
+{% extends "base.html" %}
+{% load static %}
+ {% block content %}
+ <section id="abstract_details" class="section abstract_details">
+ <div class="container">
+ <p>
+ <center>
+ <h2>Abstract Details</h2>
+ </center>
+ </p>
+ <h3><span class="label label-primary">{{ proposal.user.first_name }} {{ proposal.user.last_name }}</span></h3>
+ <hr>
+ <p><b>Title: </b>&nbsp;{{ proposal.title }}</p>
+ <p><b>About Me: </b>&nbsp;{{ proposal.about_me | linebreaks }}</p>
+ <p><b>Abstract: </b>&nbsp;{{ proposal.abstract |linebreaks }}</p>
+ {% if proposal.prerequisite %}
+ <p><b>Prerequisite: </b>&nbsp;{{ proposal.prerequisite |linebreaks }}</p>
+ {% endif%}
+ <p><b>Duration: </b>&nbsp;{{ proposal.duration }} {% if proposal.proposal_type == "ABSTRACT"%} Mins {% else %}Hours {%endif%}</p>
+ {% if proposal.proposal_type == "ABSTRACT"%}
+ <p><b>Tags: </b>&nbsp;{{ proposal.tags }}</p>
+ {% else %}
+ <p><b>Level: </b>&nbsp;{{ proposal.tags }}</p>
+ {% endif %}
+ <p><b>Date Created: </b>&nbsp;{{ proposal.date_created }}</p>
+ {% if url %}
+ <p><b>Attachment: </b>&nbsp;
+ <a href="{{ url }}" class="btn btn-info" target="_blank">{{filename}}</a>
+ </p>
+ {% endif %}
+ <p><b>Comments: </b>
+ <hr>
+ {% for comment in comments %}
+ <div>
+ <strong>Comment By:</strong>
+ {{ comment.user.first_name }} {{ comment.user.last_name }}
+ <p>{{ comment.comment| linebreaks }}</p>
+ </div>
+ <hr>
+ {% endfor %}
+ </div>
+ </section>
+ {% endblock %}
+
diff --git a/static/website/templates/cfp.html b/static/website/templates/cfp.html
index 704fafb..1ed48f4 100755
--- a/static/website/templates/cfp.html
+++ b/static/website/templates/cfp.html
@@ -1,159 +1,125 @@
+{% extends "base.html" %}
{% load static %}
-<!DOCTYPE html>
-<html lang="en">
-{% include 'header.html' %}
-<body data-spy="scroll" data-target="#site-nav">
-<div class="se-pre-con"></div>
-
- {% include 'navbar.html' %}
- {% block content %}
- <section id="cfp" class="section cfp">
- <div class="container">
- <p>
- <center>
+{% block content %}
+ <section id="cfp" class="section cfp">
+ <div class="container">
+ <p>
+ <center>
{% if user and not user.is_anonymous %}
- <h2>Submit Proposal</h2>
+ <h2>Submit Proposal</h2>
{% else %}
- <h2>Login</h2>
+ <h2>Login</h2>
{% endif %}
- </center>
- </p>
+ </center>
+ </p>
{% if proposal_submit %}
- <center>
- <table>
- <tr>
- <td>
- <p>Thank You for your submission. Your proposal has been saved successfully and is under review. You can check the status of submission <a href="{{SITE_URL}}/proposal/view">here
- </a>!
- </p>
- </td>
- </tr>
- </table>
- </center>
+ <center>
+ <table>
+ <tr>
+ <td>
+ <p>Thank You for your submission. Your proposal has been saved successfully and is under review. You can check the status of submission
+ <a href="{% url 'website:view_abstracts' %}">here!
+ </a>
+ </p>
+ </td>
+ </tr>
+ </table>
+ </center>
{% endif %}
{% if registration_complete %}
- <center>
- <p>Thank You for your registration. You can now log in by clicking <a href="{{SITE_URL}}/proposal/cfp">here
- </a>!
- </p>
- <br/><br/>
- </center>
+ <center>
+ <p>Thank You for your registration. You can now log in by clicking
+ <a href="{% url 'website:cfp' %}">here!</a>
+ </p>
+ <br/>
+ <br/>
+ </center>
{% endif %}
{% if user and not user.is_anonymous and not login_required %}
- <p>We invite you to submit proposals for talks or workshops to be presented at SciPy 2017. The time duration for talks is 15 or 30 minutes and for workshops is 2 to 4 hours. There will be two parallel tracks for the workshops this year. One track is meant for beginners and the other is for advanced users.
+ <p>We invite you to submit proposals for talks or workshops to be presented at SciPy 2018. The time duration for talks is 15 or 30 minutes and for workshops is 2 to 4 hours. There will be two parallel tracks for the workshops this year. One track is meant for beginners and the other is for advanced users.
</p>
- <span>
- <h2>
- <u>Important Dates</u>
- </h2>
- </span>
- <ul>
- <li>Call for proposals opens:
- <b>15<sup>th</sup> Sept. 2017</b>
- </li>
- <li>Last date for submission of proposals:
- <b>10<sup>th</sup> Nov. 2017</b>
- </li>
- <li>Announcement of selected proposals:
- <b>15<sup>th</sup> Nov. 2017</b>
- </li>
- </ul>
- <br/>
+ <span>
+ <h2>
+ <u>Important Dates</u>
+ </h2>
+ </span>
+ <ul>
+ <li>Call for proposals opens: <b> 15<sup>th</sup> Sept. 2018</b>
+ </li>
+ <li>Last date for submission of proposals: <b>10<sup>th</sup> Nov. 2018</b>
+ </li>
+ <li>Announcement of selected proposals: <b>15<sup>th</sup> Nov. 2018</b>
+ </li>
+ </ul>
+ <br/>
{% if user.is_superuser %}
- <center>
- <a href="{{SITE_URL}}/proposal/view" class="btn btn-info">View Proposals</a>
- </center>
+ <center>
+ <a href="{% url 'website:view_abstracts' %}" class="btn btn-info">View Proposals</a>
+ <a href="{% url 'website:submitcfp' %}" class ="btn btn-info" role="button"> Submit paper </a>
+ <a href="{% url 'website:submitcfw' %}" class ="btn btn-info" role="button">Submit workshop </a>
+ </center>
{% else %}
- <center>
- <a href="{{SITE_URL}}/proposal/view" class="btn btn-info">View Proposals</a>
- </center>
+ <center>
+ <a href="{% url 'website:view_abstracts' %}" class="btn btn-info">View Proposals</a>
+ <a href="{% url 'website:submitcfp' %}" class ="btn btn-info" role="button"> Submit paper </a>
+ <a href="{% url 'website:submitcfw' %}" class ="btn btn-info" role="button">Submit workshop </a>
+ </center>
{% endif %}
{% else %}
-
- <hr>
- <div class="row">
- <div class="col-sm-4">
- <span>
- <h2>
- <u>Login</u>
- </h2>
- </span>
- <p>Login/Register to Submit a Proposal</p>
+ <hr>
+ <div class="row">
+ <div class="col-sm-4">
+ <span>
+ <h2>
+ <u>Login</u>
+ </h2>
+ </span>
+ <p>Login/Register to Submit a Proposal</p>
{% if invalid %}
- <p style="color:red; font-size:15px;">* Invalid Username/Password</p>
+ <p style="color:red; font-size:15px;">* Invalid Username/Password</p>
{% endif %}
- <!-- <div id = "my_form"> -->
- <form action="" method="POST">
+ <form action="" method="POST">
{{ form.as_p }}
- <button class="button special" name ="login" type="submit">Login</button>
- <br/><br/>
- <a style="padding-right : 20px;" href="{{SITE_URL}}/accounts/userregister" class="btn btn btn-primary">Create an Account
- </a><br>
- <a href="/2017/forgotpassword/">Forgot Password?</a>
- {% csrf_token %}
- </form>
- <!-- </div> -->
- <p>Or Sign in with:&nbsp;<br>
- <a href="{% url 'social:begin' 'google-oauth2' %}?next={{ request.path }}" class="btn btn-social-icon " style="color:#d34836;">
- <i class="fa fa-google-plus-square" style="font-size:40px;"></i>
- </a>&nbsp;
- <a href="{% url 'social:begin' 'facebook' %}?next={{ request.path }}" class=" btn btn-social-icon" style="color:#3b5998">
- <i class="fa fa-facebook-square" style="font-size:40px;"></i>
+ <button class="button special" name ="login" type="submit">Login</button>
+ <br/>
+ <br/>
+ <a style="padding-right : 20px;" href="{% url 'website:userregister' %}" class="btn btn btn-primary">Create an Account
</a>
- </p>
- <br>
- <p>
- <h4>
- <u>Important Dates</u>
- </h4>
- <ul style="margin-left: -7%;">
- <li>Call for proposals opens: <br>
- <b>15<sup>th</sup> Sept. 2017</b>
- </li>
- <li>Last date for submission of proposals: <br>
- <b>10<sup>th</sup> Nov. 2017</b>
- </li>
- <li>Announcement of selected proposals: <br>
- <b>15<sup>th</sup> Nov. 2017</b>
- </li>
- </ul>
- </p>
- </div>
-
- <div class="col-sm-4" align="justify" style="background-color: #cef3f8;">
- <br>
- <h4 class="panel-title">
+ <br>
+ <a href="/2018/forgotpassword/">Forgot Password?</a>
+ {% csrf_token %}
+ </form>
+ </p>
+ <br>
+ </div>
+ <div class="col-sm-4" align="justify" style="background-color: #cef3f8;">
+ <br>
+ <h4 class="panel-title">
Guidelines for a Proposal
</h4>
- <ul style="margin-left: -6%;">
- <li>The project should be an actual implementation rather than just an idea.</li>
- <li>Besides implementation, the submission can also be about experiences and usage of Python, Python-based tools and libraries for research or teaching.</li>
- <li>Abstract should be of 300 to 700 words describing the topic, including its relevance to scientific computing or the use of Python in education.</li>
- <li>All selected proposals must be presented at the conference by atleast one author.</li>
- </ul>
- </div>
- <div class="col-sm-4" align="justify" style="background-color: #8cc9f0;">
- <br>
- <h4 class="panel-title">
+ <ul style="margin-left: -6%;">
+ <li>The project should be an actual implementation rather than just an idea.</li>
+ <li>Besides implementation, the submission can also be about experiences and usage of Python, Python-based tools and libraries for research or teaching.</li>
+ <li>Abstract should be of 300 to 700 words describing the topic, including its relevance to scientific computing or the use of Python in education.</li>
+ <li>All selected proposals must be presented at the conference by atleast one author.</li>
+ </ul>
+ </div>
+ <div class="col-sm-4" align="justify" style="background-color: #8cc9f0;">
+ <br>
+ <h4 class="panel-title">
Guidelines for a Workshop
</h4>
-
- <ul style="margin-left: -6%;">
- <li>There are two parallel tracks, one for beginners and one for advanced users.</li>
- <li>The workshops should be hands-on with plenty of exercises for the users.</li>
- <li>It is advisable to pick particular problem(s) and orient your workshop around how to solve those using the package you plan to talk about.</li>
- <li>Provide us with links to any resources you have already prepared for the workshop.</li>
- </ul>
- </div>
-
- </div>
-
-
- </div>
- {% endif %}
- </section>
+ <ul style="margin-left: -6%;">
+ <li>There are two parallel tracks, one for beginners and one for advanced users.</li>
+ <li>The workshops should be hands-on with plenty of exercises for the users.</li>
+ <li>It is advisable to pick particular problem(s) and orient your workshop around how to solve those using the package you plan to talk about.</li>
+ <li>Provide us with links to any resources you have already prepared for the workshop.</li>
+ </ul>
+ </div>
+ </div>
+ </div>
+ {% endif %}
+ </section>
{% endblock %}
- {% include 'footer.html' %}
- </body>
diff --git a/static/website/templates/comment-abstract.html b/static/website/templates/comment-abstract.html
new file mode 100755
index 0000000..b6dd3a2
--- /dev/null
+++ b/static/website/templates/comment-abstract.html
@@ -0,0 +1,98 @@
+{% extends "base.html" %}
+{% load static %}
+{% load widget_tweaks %}
+{% block content %}
+
+<section id="comment_abstract" class="section comment_abstract">
+ <div class="container">
+ <p>
+ <center>
+ {% if proposal.proposal_type == "ABSTRACT"%}
+ <h2>Abstract Details</h2>
+ {% else %}
+ <h2>Workshop Details</h2>
+ {% endif %}
+ </center>
+ </p>
+ <h3>{{ proposal.user.first_name }} {{ proposal.user.last_name }}</h3>
+ <p><b>Title: </b>&nbsp;{{ proposal.title }}</p>
+ <p align="justify"><b>About Me: </b>&nbsp;{{ proposal.about_me |linebreaks }}</p>
+ {% if proposal.proposal_type == "ABSTRACT"%}
+ <p align="justify"><b>Abstract:</b>&nbsp;
+ {% else %}
+ <p align="justify"><b>Description:</b>&nbsp;
+ {% endif %}
+ {{ proposal.abstract | linebreaks }}
+ </p>
+ {% if proposal.prerequisite %}
+ <p align="justify"><b>Prerequisite: </b>&nbsp;{{ proposal.prerequisite| linebreaks }}</p>
+ {% endif%}
+ <p><b>Duration: </b>&nbsp;{{ proposal.duration }} {% if proposal.proposal_type == "ABSTRACT"%} Mins {% else %}Hours {%endif%}</p>
+ {% if proposal.proposal_type == "ABSTRACT"%}
+ <p><b>Tags: </b>&nbsp;{{ proposal.tags }}</p>
+ {% else %}
+ <p><b>Level: </b>&nbsp;{{ proposal.tags }}</p>
+ {% endif %}
+ {% if url %}
+ <b>Attachment: </b>&nbsp;<a href="{{ url }}" class="btn btn-info" target="_blank">{{ filename }}</a>
+ {% endif %}
+ <p><b>Date Created: </b>&nbsp;{{ proposal.date_created }}</p>
+ <form action="{% url 'website:rate_proposal' proposal.id %}" method='POST' enctype="multipart/form-data">
+ {% csrf_token %}
+ <b>Ratings :</b>
+ <select name="rating" style="width:70px;" >
+ <!--Call run() function-->
+ <option value="0">0</option>
+ <option value="1">1</option>
+ <option value="2">2</option>
+ <option value="3">3</option>
+ <option value="4">4</option>
+ <option value="5">5</option>
+ <option value="6">6</option>
+ <option value="7">7</option>
+ <option value="8">8</option>
+ <option value="9">9</option>
+ <option value="10">10</option>
+ </select>
+ /10 &nbsp;
+ <input class="btn btn btn-primary" type="submit" value="Rate">
+ </form>
+ <h4>Ratings</h4>
+ {% for rate in rates %}
+ <div>
+ {{rate.rating}}/10
+ by - {{ rate.user }}
+ </div>
+ {% endfor %}
+ <hr>
+ <h4>Comments</h4>
+ {% for comment in comments %}
+ <div>
+ <strong>Comment By:</strong>
+ {{ comment.user.first_name }} {{ comment.user.last_name }}
+ <p>{{ comment.comment| linebreaks }}</p>
+ <!-- {% if user == comment.user %}
+ <form action="" method='POST' enctype="multipart/form-data">
+ {% csrf_token %}
+ {% endif %} -->
+ </div>
+ <hr>
+ </form>
+ {% endfor %}
+ <form action="{% url 'website:comment_abstract' proposal.id %}" method='POST' enctype="multipart/form-data">
+ {% csrf_token %}
+ <textarea rows="5" cols="100" id="comment" class= "comment" name="comment" placeholder = "Add commnet here..."></textarea><br/>
+ <input class="button special" type="submit" value="Comment">
+ </form>
+ <!-- <form action="{% url 'website:status' proposal.id %}" method='POST'>{% csrf_token %}
+ <input type="submit" class="button special" style="background:green" value="Accept" name="accept"/>
+ <input type="submit" class="button special" style="background:red "value="Reject" name="reject"/>
+ <input type="submit" class="button special" style="background:grey "value="Resubmit" name="resubmit"/>
+
+ </form>
+ -->
+ </div>
+ </section>
+ {% endblock %}
+
+
diff --git a/static/website/templates/edit-proposal.html b/static/website/templates/edit-proposal.html
new file mode 100755
index 0000000..fdcc39b
--- /dev/null
+++ b/static/website/templates/edit-proposal.html
@@ -0,0 +1,35 @@
+{% extends "base.html" %}
+{% load static %}
+{% load widget_tweaks %}
+{% block content %}
+
+<section id="edit_proposal" class="section edit_proposal">
+ <div class="container">
+ <p>
+ <center>
+ {% if proposal.proposal_type == "ABSTRACT" %}
+ <h2>Edit Abstract Proposal</h2>
+ {% else %}
+ <h2>Edit Workshop Proposal</h2>
+ {% endif %}
+ </center>
+ </p>
+ <h3><span class="label label-primary">{{ proposal.user.first_name }} {{ proposal.user.last_name }}</span></h3>
+ <form action="" method=POST enctype="multipart/form-data">
+ {% csrf_token %}
+ <div class="row1">
+ {% for field in form %}
+ <p>{{ field.label}}
+ {% if field.field.required %} <span style="color:red;">*</span> {% endif %}
+ {{ field }}
+ </p>
+ <a style="color:red; ">{{ field.errors }}</a>
+ {% endfor %}
+ </div>
+ {% csrf_token %}
+ <center><button class="button special" type="submit">Submit</button></center>
+ </form>
+ <br>
+ </div>
+ </section>
+ {% endblock %}
diff --git a/static/website/templates/header.html b/static/website/templates/header.html
index fe1ffb4..a6b3c50 100644
--- a/static/website/templates/header.html
+++ b/static/website/templates/header.html
@@ -33,6 +33,12 @@ jQuery(document).ready(function($){
});
</script>
+ <script>
+ function countChar(val) {
+ var len = val.value.length;
+ var count = $('#charNum').text(0 + len);
+ };
+ </script>
</head>
{% endblock %}
diff --git a/static/website/templates/navbar.html b/static/website/templates/navbar.html
index 14a8ccd..3eef776 100644
--- a/static/website/templates/navbar.html
+++ b/static/website/templates/navbar.html
@@ -38,13 +38,14 @@
<li><a data-scroll href="{{SITE_URL}}/#photos">Photos</a></li>
<li><a data-scroll href="{{SITE_URL}}/#team">Team</a></li>
{% if user.is_authenticated %}
- <li><a href="{% url 'login' %}"><i class="fa fa-user" aria-hidden="true"></i>
+ <li><a href=""><i class="fa fa-user" aria-hidden="true"></i>
{{ user.username }}!</a></li>
- <li><a href="{% url 'logout' %}">logout</a></li>
+ <li><a href="{% url 'auth:logout' %}?next=/">logout</a></li>
{% else %}
- <li><a href="{% url 'login' %}">login</a></li>
+ <li><a href="{% url 'auth:login' %}">login</a></li>
{% endif %}
</ul>
+
</div>
</div><!-- /.container -->
</nav>
diff --git a/static/website/templates/proposal.html b/static/website/templates/proposal.html
index c6b51c3..2d30137 100644
--- a/static/website/templates/proposal.html
+++ b/static/website/templates/proposal.html
@@ -53,13 +53,15 @@
</ul>
<br/> {% if user.is_superuser %}
<center>
- <a href="{{ SITE_URL }}/proposal/view" class="btn btn-info">View Proposals</a>
- <a href="{{ SITE_URL }}/proposal/submitcfp" class="btn btn-info">Submit Proposal</a>
- <a href="" class="btn btn-info">Submit Workshop</a>
+ <a href="{% url 'website:view_abstracts' %}" class="btn btn-info">View Proposals</a>
+ <a href="{% url 'website:submit-cfp' %}" class="btn btn-info">Submit Proposal</a>
+ <a href="{% url 'website:submit-cfw' %}" class="btn btn-info">Submit Workshop</a>
</center>
{% else %}
<center>
- <a href="{{ SITE_URL }}/proposal/view" class="btn btn-info">View Proposals</a>
+ <a href="{% url 'website:view_abstracts' %}" class="btn btn-info">View Proposals</a>
+ <a href="{% url 'website:submit-cfp' %}" class="btn btn-info">Submit Proposal</a>
+ <a href="{% url 'website:submit-cfw' %}" class="btn btn-info">Submit Workshop</a>
</center>
{% endif %} {% else %}
@@ -80,9 +82,9 @@
{{ form.as_p }}
<button class="button special" name="login" type="submit">Login</button>
<br/><br/>
- <a style="padding-right : 20px;" href="{% url 'userregister' %}" class="btn btn btn-primary">Create an Account
+ <a style="padding-right : 20px;" href="{% url 'website:userregister' %}" class="btn btn btn-primary">Create an Account
</a><br>
- <a href="/2017/forgotpassword/">Forgot Password?</a> {% csrf_token %}
+ <a href="/2018/forgotpassword/">Forgot Password?</a> {% csrf_token %}
</form>
<!-- </div> -->
<p>Or Sign in with:&nbsp;<br>
@@ -143,6 +145,6 @@
</div>
{% endif %}
-
+<div class="row" style="margin-top: 4vh;"></div>
</section>
{% endblock %}
diff --git a/static/website/templates/registration/login.html b/static/website/templates/registration/login.html
index 86a90c6..319897c 100644
--- a/static/website/templates/registration/login.html
+++ b/static/website/templates/registration/login.html
@@ -14,7 +14,7 @@
Hi {{ user.username }}!
{% else %}
<p>You are not logged in</p>
- <a href="{% url 'login' %}">login</a>
+ <a href="{% url 'auth:login' %}">login</a>
{% endif %}
<h2>Login</h2>
<form method="post">
diff --git a/static/website/templates/registration/password_change_done.html b/static/website/templates/registration/password_change_done.html
new file mode 100755
index 0000000..67fd9a6
--- /dev/null
+++ b/static/website/templates/registration/password_change_done.html
@@ -0,0 +1,47 @@
+
+{% load static %}
+
+<!DOCTYPE HTML>
+<html>
+ <head>
+ <meta charset="utf-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
+ <meta name="description" content="">
+ <meta name="author" content="">
+ <link rel="icon" href="{% static 'img/fevicon.png'%}" type="icon">
+ <title>SciPy India 2017</title>
+ <!-- Bootstrap core CSS -->
+ <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
+ <link href="{% static 'vendor/bootstrap/css/bootstrap.min.css' %}" rel="stylesheet">
+ <!-- Custom styles for this template -->
+ <link href="{% static 'css/one-page-wonder.css' %}" rel="stylesheet">
+ </head>
+ <body>
+
+
+ {% block header %}
+ <header id="header1" style="background-color: #01c3d9;">
+ <center>
+ <h1>SciPy India 2017</h1>
+ <h2>Reset Password</h2>
+ </center>
+ </header>
+{% endblock %}
+
+{% block content %}
+<div id="wrapper" style="margin-left: 10%;">
+<div id="main">
+<section id="content" class="main">
+
+<script type="text/javascript">
+ window.setTimeout(function()
+ {
+ location.href="{{ URL_ROOT }}/accounts/"
+ }, 2000);
+</script>
+<h3>Your password has been changed successfully.</h3>
+<h4>Redirecting ...</h4>
+</section>
+</div>
+</div>
+{% endblock %} \ No newline at end of file
diff --git a/static/website/templates/registration/password_change_form.html b/static/website/templates/registration/password_change_form.html
new file mode 100755
index 0000000..a27c585
--- /dev/null
+++ b/static/website/templates/registration/password_change_form.html
@@ -0,0 +1,49 @@
+
+{% load static %}
+
+<!DOCTYPE HTML>
+<html>
+ <head>
+ <meta charset="utf-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
+ <meta name="description" content="">
+ <meta name="author" content="">
+ <link rel="icon" href="{% static 'img/fevicon.png'%}" type="icon">
+ <title>SciPy India 2017</title>
+ <!-- Bootstrap core CSS -->
+ <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
+ <link href="{% static 'vendor/bootstrap/css/bootstrap.min.css' %}" rel="stylesheet">
+ <!-- Custom styles for this template -->
+ <link href="{% static 'css/one-page-wonder.css' %}" rel="stylesheet">
+ </head>
+ <body>
+
+
+ {% block header %}
+ <header id="header1" style="background-color: #01c3d9;">
+ <center>
+ <h1>SciPy India 2017</h1>
+ <h2>Reset Password</h2>
+ </center>
+</header>
+{% endblock %}
+
+{% block content %}
+<div id="wrapper" style="margin-left: 10%;">
+<div id="main">
+<section id="content" class="main">
+<br>
+<form action="" method="post" >
+ {% csrf_token %}
+ <center>
+ <table class=span1>
+ {{ form }}
+ </table>
+ </center>
+ <center><button class="btn" type="submit">Change Password</button>
+ <button class="btn btn-primary gradient" type="button" name="button" onClick='location.replace("{{URL_ROOT}}/accounts/");'>Cancel</button></center>
+</form>
+</section>
+</div>
+</div>
+{% endblock %}
diff --git a/static/website/templates/registration/password_reset_complete.html b/static/website/templates/registration/password_reset_complete.html
new file mode 100755
index 0000000..b8a6131
--- /dev/null
+++ b/static/website/templates/registration/password_reset_complete.html
@@ -0,0 +1,41 @@
+
+{% load static %}
+
+<!DOCTYPE HTML>
+<html>
+ <head>
+ <meta charset="utf-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
+ <meta name="description" content="">
+ <meta name="author" content="">
+ <link rel="icon" href="{% static 'img/fevicon.png'%}" type="icon">
+ <title>SciPy India 2017</title>
+ <!-- Bootstrap core CSS -->
+ <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
+ <link href="{% static 'vendor/bootstrap/css/bootstrap.min.css' %}" rel="stylesheet">
+ <!-- Custom styles for this template -->
+ <link href="{% static 'css/one-page-wonder.css' %}" rel="stylesheet">
+ </head>
+ <body>
+
+
+ {% block header %}
+ <header id="header1" style="background-color: #01c3d9;">
+ <center>
+ <h1>SciPy India 2017</h1>
+ <h2>Reset Password</h2>
+ </center>
+ </header>
+{% endblock %}
+
+{% block content %}
+<div id="wrapper" style="margin-left: 10%;">
+<div id="main">
+<section id="content" class="main">
+<br>
+<p>Your password has been reset. </p>
+<p>Please <a href="{% url 'website:cfp' %}">Log in</a> with your new password.</p>
+</section>
+</div>
+</div>
+{% endblock %}
diff --git a/static/website/templates/registration/password_reset_confirm.html b/static/website/templates/registration/password_reset_confirm.html
new file mode 100755
index 0000000..895e30d
--- /dev/null
+++ b/static/website/templates/registration/password_reset_confirm.html
@@ -0,0 +1,91 @@
+{% load static %}
+
+<!DOCTYPE HTML>
+<html>
+ <head>
+ <meta charset="utf-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
+ <meta name="description" content="">
+ <meta name="author" content="">
+ <link rel="icon" href="{% static 'img/fevicon.png'%}" type="icon">
+ <title>SciPy India 2017</title>
+ <!-- Bootstrap core CSS -->
+ <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
+ <link href="{% static 'vendor/bootstrap/css/bootstrap.min.css' %}" rel="stylesheet">
+ <!-- Custom styles for this template -->
+ <link href="{% static 'css/one-page-wonder.css' %}" rel="stylesheet">
+ </head>
+ <body>
+
+
+ {% block header %}
+ <header id="header1" style="background-color: #01c3d9;">
+ <center>
+ <h1>SciPy India 2017</h1>
+ <h2>Reset Password</h2>
+ </center>
+ </header>
+{% endblock %}
+
+{% block content %}
+<div id="wrapper" style="margin-left: 10%;">
+<div id="main">
+<section id="content" class="main">
+ {% if validlink %}
+ <br>
+ <p>Please enter your new password twice.</p>
+ <br>
+ <form action="" method="post">
+ <div style="display:none">
+ <input type="hidden" value="{{ csrf_token }}" name="csrfmiddlewaretoken">
+ </div>
+ <table>
+ <colgroup>
+ <col width="40%" />
+ <col width="60%" />
+ </colgroup>
+ <tr>
+ <td>{{ form.new_password1.errors }}
+ <label for="id_new_password1" >New password:</label></td>
+ <td>{{ form.new_password1 }}</td>
+ </tr>
+ <tr>
+ <td>{{ form.new_password2.errors }}
+ <label for="id_new_password2" >Confirm password:</label></td>
+ <td>{{ form.new_password2 }}</td>
+ </tr>
+ <tr>
+ <td></td>
+ <td><br> <button class= "btn btn-sm btn-primary gradient" type="submit" onclick="return checkform(this);">Submit</button>
+ </tr>
+ <br>
+ </table>
+ </form>
+ {% else %}
+ <p>The password reset link is invalid,
+ possibly because it has already been used. <br />
+ Please request a new password reset.</p><br/>
+ {% endif %}
+</section>
+</div>
+</div>
+
+<script>
+function checkform(form) {
+ // alert("in");
+ var pwd1 = document.getElementById("id_new_password1");
+ // alert(pwd1.value);
+ var pwd2 = document.getElementById("id_new_password2");
+ //return false;
+ if(pwd1.value.length && pwd2.value.length < 8) {
+
+ alert("Error: Password must contain at least eight characters!");
+ pwd1.focus();
+ pwd1.value = "";
+ pwd2.value = "";
+ return false;
+ }
+}
+
+</script>
+{% endblock %}
diff --git a/static/website/templates/registration/password_reset_done.html b/static/website/templates/registration/password_reset_done.html
new file mode 100755
index 0000000..e161e5e
--- /dev/null
+++ b/static/website/templates/registration/password_reset_done.html
@@ -0,0 +1,41 @@
+{% load static %}
+
+<!DOCTYPE HTML>
+<html>
+ <head>
+ <meta charset="utf-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
+ <meta name="description" content="">
+ <meta name="author" content="">
+ <link rel="icon" href="{% static 'img/fevicon.png'%}" type="icon">
+ <title>SciPy India 2017</title>
+ <!-- Bootstrap core CSS -->
+ <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
+ <link href="{% static 'vendor/bootstrap/css/bootstrap.min.css' %}" rel="stylesheet">
+ <!-- Custom styles for this template -->
+ <link href="{% static 'css/one-page-wonder.css' %}" rel="stylesheet">
+ </head>
+ <body>
+
+<center>
+ {% block header %}
+ <header id="header1" style="background-color: #01c3d9;">
+ <br>
+ <h1>SciPy India 2017</h1>
+ <h2>Reset Password</h2>
+ <br>
+</header>
+</center>
+{% endblock %}
+
+
+{% block content %}
+<div id="wrapper">
+<div id="main">
+<section id="content" class="main" style="margin-left: 10%;">
+<br>
+ If an account exists with this email, you would receive the password reset instructions shortly. Please check your spam folder too.<br/>
+</section>
+</div>
+</div>
+ {% endblock %}
diff --git a/static/website/templates/registration/password_reset_form.html b/static/website/templates/registration/password_reset_form.html
new file mode 100755
index 0000000..b5d900a
--- /dev/null
+++ b/static/website/templates/registration/password_reset_form.html
@@ -0,0 +1,26 @@
+{% extends "base.html" %}
+{% load static %}
+ {% block content %}
+<section id="password_reset" class="section password_reset container-fluid">
+<div class="container">
+
+<div><h4> Recovery Email </h4></div>
+<br>
+ Kindly enter your email ID used for registration. The password reset link will be mailed to the same.
+<br><br>
+<form action="" method="post">
+ {% csrf_token %}
+ {{ form.email.errors }}
+ <p><label for="id_email">E-mail address:</label> {{ form.email }}
+
+ <br/>
+ <br><input type="submit" class ="btn btn-primary gradient" style="border: none;" value="Reset Password" /></p>
+
+ <!-- <button class="btn btn-sm btn-primary" type="submit">Request</button>
+ <a class="btn btn-sm " href="{{URL_ROOT}}/accounts/login/">Cancel</a> -->
+</form>
+</div>
+
+<div class="row" style="margin-top: 4vh;"></div>
+</section>
+{% endblock %}
diff --git a/static/website/templates/submit-cfp.html b/static/website/templates/submit-cfp.html
index b3aa2ee..1b5c15c 100755
--- a/static/website/templates/submit-cfp.html
+++ b/static/website/templates/submit-cfp.html
@@ -1,41 +1,96 @@
{% extends "base.html" %}
+
+{% load widget_tweaks %}
{% load static %}
+
+
<div class="se-pre-con"></div>
{% block content %}
+
<section id="view_proposal" class="section view_proposal">
<div class="container">
- {% if proposals_a >= 1 %} You have exceeded the abstract submission limit. You may view your submitted proposals by clicking <a href="{{ SITE_URL}}/proposal/view" class="btn btn-info" role="button"> here</a>
+ {% if proposals_a >= 1 %} You have exceeded the abstract submission limit. You may view your submitted proposals by clicking
+ <a href="{{ SITE_URL}}/proposal/view" class="btn btn-info" role="button"> here</a>
<!-- <h2>{{ user.get_full_name|default:user.username }} </h2> -->
- {% else %} <br>
- <center>
- <h1>Submit Proposal</h1>
- </center>
- <hr>
- <h2><u>Proposal Guidelines</u></h2>
- <ul>
- <li>The project you are willing to present should be an actual implementation rather than just an idea.</li>
- <li>Submissions need not necessarily be about an implementation, they could also be about experiences and usage of Python and Python-based tools and libraries for research or teaching.</li>
- <li>Abstract should be of 300 to 700 words describing the topic, including its relevance to scientific computing or the use of Python in education.</li>
- <li>Proposals with an aim to promote a commercial product or service will be rejected.</li>
- <li>In your abstract mention the various tools/libraries used for development.</li>
- <li>Notification for selection/rejection of your proposal will be given through email.</li>
- <li>All selected proposals must be presented at the conference by at least one author.</li>
- </ul>
- <form action="" method=POST enctype="multipart/form-data">
- <!-- <a style="color:red; ">{{ proposal_form.errors }} -->
- <div class="row1">
- {% for field in proposal_form %}
- <p>{{ field.label}} {% if field.field.required %} <span style="color:red;">*</span> {% endif %} {{ field }}
- </p>
- <a style="color:red; ">{{ field.errors }}</a> {% endfor %}
- </div>
- {% csrf_token %}
+ {% else %}
+ <br>
<center>
- <button class="btn btn-info" type="submit">Submit</button>
- <a href="{{ SITE_URL}}/proposal" class="btn btn-info" role="button">Back</a>
+ <h1>Submit Proposal</h1>
</center>
- </form>
+ <hr>
+ <h2>
+ <u>Proposal Guidelines</u>
+ </h2>
+ <ul>
+ <li>The project you are willing to present should be an actual implementation rather than just an idea.</li>
+ <li>Submissions need not necessarily be about an implementation, they could also be about experiences and usage of Python and Python-based tools and libraries for research or teaching.</li>
+ <li>Abstract should be of 300 to 700 words describing the topic, including its relevance to scientific computing or the use of Python in education.</li>
+ <li>Proposals with an aim to promote a commercial product or service will be rejected.</li>
+ <li>In your abstract mention the various tools/libraries used for development.</li>
+ <li>Notification for selection/rejection of your proposal will be given through email.</li>
+ <li>All selected proposals must be presented at the conference by at least one author.</li>
+ </ul>
+ <form action="" method=POST>
+ <div class="form-group">
+ <label for="about_me">About me
+ <span style="color:red;">*</span>:
+ </label>
+ {% render_field proposal_form.about_me %}
+ </div>
+ <div class="form-group">
+ <label for="phone">Phone
+ <span style="color:red;">*</span>:
+ </label>
+ {% render_field proposal_form.phone %}
+ </div>
+ <div class="form-group">
+ <label for="title">Title
+ <span style="color:red;">*</span>:
+ </label>
+ {% render_field proposal_form.title %}
+ </div>
+ <div class="form-group">
+ <label for="abstract">Abstract (Min. 300 char.)
+
+ <span style="color:red;">*</span>:
+
+ </label>
+ {% render_field proposal_form.abstract %}
+ <label>Charater count:
+ <div id="charNum"></div>
+ </label>
+ </div>
+ <div class="form-group">
+ <label for="duration">Duration (Mins.)
+ <span style="color:red;">*</span>:
+ </label>
+ {% render_field proposal_form.duration %}
+
+ </div>
+ <div class="form-group">
+ <label for="attachment">Attachments:</label>
+ {% render_field proposal_form.attachment %}
+ </div>
+ <div class="form-group">
+ <label for="tags">Tags:</label>
+ {% render_field proposal_form.tags %}
+ </div>
+ <div class="form-inline">
+ <div class="radio">
+ <label for="open_to_share">I agree to publish my resources of talk/presentation on this website
+ <span style="color:red;">*</span>:
+ </label>
+ {% render_field proposal_form.open_to_share %}
+ </div>
+ </div>
+ {% render_field proposal_form.proposal_type %}
+ {% csrf_token %}
+ <center>
+ <button id="subbtn" class="btn btn-info" type="submit" >Submit</button>
+ <a href="{% url 'website:view_abstracts' %}" class="btn btn-info" role="button">Back</a>
+ </center>
+ </form>
{% endif %}
- </div>
-</section>
+ </div>
+ </section>
{% endblock %}
diff --git a/static/website/templates/submit-cfw.html b/static/website/templates/submit-cfw.html
new file mode 100755
index 0000000..efc746b
--- /dev/null
+++ b/static/website/templates/submit-cfw.html
@@ -0,0 +1,102 @@
+{% extends "base.html" %}
+{% load static %}
+{% load widget_tweaks %}
+{% block content %}
+
+<section id="submitcfw" class="section submitcfw">
+ <div class="container">
+ <p>
+ <center>
+ <h2>Submit Workshop Proposal</h2>
+ </center>
+ </p>
+ <hr>
+ {% if proposals_w >= 1 %} You have exceeded the workshop proposal submission limit.
+ You may view your submitted proposals by clicking
+
+ <a href="{% url 'website:view_abstracts' %}" class="btn "> here</a>
+ {% else %}
+ <h2>
+ <u>Proposal Guidelines</u>
+ </h2>
+ <!-- <li>To be announced</li><br> -->
+ <ul>
+ <li>Please note that there are two parallel tracks, one for beginners and one for advanced users.</li>
+ <li>Please make sure the workshops are hands-on with plenty of exercises for the users.</li>
+ <li>It is usually a good idea to pick a particular problem or set of problems and orient your workshop around how to solve those using the package you plan to talk about.</li>
+ <li>Please provide us with links to any resources you have already prepared for the workshop.</li>
+ <li>The more detail you provide on your workshop, the easier it will be for us to pick it.</li>
+ <li>
+ Provide us with the following sections:
+ <ul>
+ <li>Duration</li>
+ <li>Track: beginner or advanced</li>
+ <li>Intended audience</li>
+ <li>Why should someone attend your workshop? What will they get at the end of it?</li>
+ <li>Outline of workshop with a reasonable breakup in terms of time.</li>
+ <li>Possibly provide any material or similar material you plan to use.</li>
+ <li>A small paragraph about you with an emphasis on your experience in the area and teaching this material. Essentially, why are you well suited to teach this workshop?</li>
+ </ul>
+ </li>
+ </ul>
+ <form action="" method=POST>
+ <div class="form-group">
+ <label for="about_me">About me
+ <span style="color:red;">*</span>:
+ </label>
+ {% render_field proposal_form.about_me %}
+ </div>
+ <div class="form-group">
+ <label for="phone">Phone
+ <span style="color:red;">*</span>:
+ </label>
+ {% render_field proposal_form.phone %}
+ </div>
+ <div class="form-group">
+ <label for="title">Title
+ <span style="color:red;">*</span>:
+ </label>
+ {% render_field proposal_form.title %}
+ </div>
+ <div class="form-group">
+ <label for="dispositiont">Disposition (Min. 300 char.)
+ <span style="color:red;">*</span>:
+ </label>
+ {% render_field proposal_form.abstract %}
+ <label>Charater count:
+ <div id="charNum"></div>
+ </label>
+ </div>
+ <div class="form-group">
+ <label for="duration">Duration (Mins.)
+ <span style="color:red;">*</span>:
+ </label>
+ {% render_field proposal_form.duration %}
+ </div>
+ <div class="form-group">
+ <label for="attachment">Attachments:</label>
+ {% render_field proposal_form.attachment %}
+ <div class="form-group">
+ <label for="tags">Tags:</label>
+ {% render_field proposal_form.tags %}
+ </div>
+ </div>
+ <div class="form-inline">
+ <div class="radio">
+ <label for="open_to_share"> I agree to publish my resources of workshop/presentation on this website
+ <span style="color:red;">*</span>:
+ </label>
+ {% render_field proposal_form.open_to_share %}
+ </div>
+ </div>
+ {% render_field proposal_form.proposal_type %}
+ {% csrf_token %}
+ <center>
+ <button id="subbtn" class="btn btn-info" type="submit" >Submit</button>
+ <a href="{% url 'website:view_abstracts' %}" class="btn btn-info" role="button">Back</a>
+ </center>
+ </form>
+ {% endif %}
+ </div>
+ </section>
+{% endblock %}
diff --git a/static/website/templates/user-register.html b/static/website/templates/user-register.html
new file mode 100755
index 0000000..c5ea301
--- /dev/null
+++ b/static/website/templates/user-register.html
@@ -0,0 +1,43 @@
+{% extends "base.html" %}
+{% load static %}
+<div class="se-pre-con"></div>
+{% block content %}
+ <section id="register" class="section register">
+ <div class="container">
+ <center>
+ <h2>Register</h2>
+ </center>
+ {% if email_registered %}
+ <center>
+ <div class="alert" style="width:300px;height:50px;">
+ <a class="close" data-dismiss="alert" href="#">&times;</a>
+ <p>Email ID is already registered !</p>
+ </div>
+ <p style="line-height:5px;">Have you already logged in using social logins ?</p>
+ <p style="line-height:5px;">or</p>
+ <p style="line-height:5px;"><a href="{% url 'website:forgotpassword' %}">Click Here</a> if you forgot your username or password</p>
+ </center>
+ {% endif %}
+ {% if registration_complete %}
+ <p> Your Account is Created Successfully !</p>
+ {% endif %}
+ <!-- <div class = "col-md-7">
+ <div id = "my_form"> -->
+ <form action="" method="POST">
+
+ {% csrf_token %}
+ {% for field in form %}
+ <p>{{ field.label}}
+ {% if field.field.required %} <span style="color:red;">*</span> {% endif %}
+ {{ field }}
+ </p>
+ <a style="color:red; ">{{ field.errors }}</a>
+ {% endfor %}
+ <br>
+ <button class="btn btn-primary" type="submit" >SignUp</button>
+ <a class="btn btn-primary" href="{% url 'website:cfp' %}" style="text-decoration: none;">I have an account</a>
+ <!-- </div> -->
+ </form>
+ <!--</div>-->
+ </section>
+{% endblock %}
diff --git a/static/website/templates/view-proposals.html b/static/website/templates/view-proposals.html
index bdb39f7..ce15a7e 100755
--- a/static/website/templates/view-proposals.html
+++ b/static/website/templates/view-proposals.html
@@ -1,149 +1,142 @@
+{% extends "base.html" %}
{% load static %}
-<!DOCTYPE html>
-<html lang="en">
-{% include 'header.html' %}
-<body data-spy="scroll" data-target="#site-nav">
-<div class="se-pre-con"></div>
-
- {% include 'navbar.html' %}
- {% block content %}
- <section id="view_proposal" class="section view_proposal">
- <div class="container">
- <p>
+ {% block content %}
+<section id="view_proposal" class="section view_proposal">
+ <div class="container">
+ <p>
<center>
<h2>View Proposals</h2>
</center>
- </p>
+ </p>
{% if not proposals %}
- <center>
- <h3>Proposals are no longer accepted</h3>
-
- </center>
+ <center>
+ <h3>Proposals are no longer accepted</h3>
+ <a href="{% url 'website:submitcfp' %}" class ="btn btn-info" role="button"> Submit paper </a>
+ <a href="{% url 'website:submitcfw' %}" class ="btn btn-info" role="button">Submit workshop </a>
+ </center>
{% else %}
{% if user.is_superuser %}
- <div style="float:right"><input type="submit" id="dump" class ="btn btn-info" value="Export as csv" name="dump"/></div>
- <br>
+ <div style="float:right">
+ <input type="submit" id="dump" class ="btn btn-info" value="Export as csv" name="dump"/>
+ </div>
+ <br>
{% endif %}
<form action="{% url 'website:status_change' %}" method="post" onsubmit="return confirm('Are You Sure?');">
{% csrf_token %}
<p>
- <div class="table-responsive">
- <table id = "myTable" width="100%" cellpadding="10" class="table-bordered table-hover tablesorter">
- <colgroup>
+ <div class="table-responsive">
+ <table id ="myTable" width="100%" cellpadding="10" class="table table-striped table-bordered table-hover tablesorter">
+ <colgroup>
{% if user.is_superuser %}
- <col width="15%" />
- <col width="20%" />
- <col width="10%" />
- <col width="30%" />
- <col width="10%" />
- <col width="10%" />
+
+ <col width="15%" />
+ <col width="20%" />
+ <col width="10%" />
+ <col width="30%" />
+ <col width="10%" />
+ <col width="10%" />
{% else %}
- <col width="15%" />
- <col width="70%" />
- <col width="10%" />
- <col width="10%" />
- <col width="20%" />
+ <col width="15%" />
+ <col width="70%" />
+ <col width="10%" />
+ <col width="10%" />
+ <col width="20%" />
{% endif %}
- </colgroup>
+ </colgroup>
{% if user.is_superuser %}
- <th style="text-align: center;">
- </th>
- <th style="text-align: center;">Speaker
+ <th style="text-align: center;"></th>
+ <th style="text-align: center;">Speaker
{% endif %}
- <th style="text-align: center;"> Type
- <th style="text-align: center;"> Title
+ <th style="text-align: center;"> Type
+ <th style="text-align: center;"> Title
{% if not user.is_superuser %}
- <th style="text-align: center;"> View
+ <th style="text-align: center;"> View
{% endif %}
{% if user.is_superuser %}
- <th style="text-align: center;">
- <center> Duration</center>
+ <th style="text-align: center;">
+ <center> Duration</center>
{% else %}
- <th style="text-align: center;"> Comments
+ <th style="text-align: center;"> Comments
{% endif %}
- <th style="text-align: center;"> Status
+ <th style="text-align: center;"> Status
{% for proposal in proposals %}
- <tr>
+ <tr>
{% if user.is_superuser %}
- <td style="text-align: center;">
+ <td style="text-align: center;">
{% if proposal.status == 'Rejected' %}
{% else %}
- <center> <input type = "checkbox" name="delete_proposal" value = {{proposal.id}}></input></center>
- </td>
+ <center>
+ <input type = "checkbox" name="delete_proposal" value = {{proposal.id}}></input>
+ </center>
+ </td>
{% endif %}
- <td style="text-align: center;">
- {{ proposal.user.get_full_name}}
- </td>
+ <td style="text-align: center;">
+ <h3>
+ <span class="label label-primary">{{ proposal.user.first_name }} {{ proposal.user.last_name }}</span>
+ </h3>
+ </td>
{% endif %}
- <td style="text-align: center;"> {{proposal.proposal_type }} </td>
+ <td style="text-align: center;"> {{proposal.proposal_type }} </td>
{% if user.is_superuser %}
- <td style="white-space: nowrap; text-overflow:ellipsis; overflow: hidden; max-width:.5px;"><a title="Title : {{proposal.title}}, Tags: {{proposal.tags}}" href="{% url 'website:comment_abstract' proposal.id %}">{{proposal.title}}</a> </td>
+ <td style="white-space: nowrap; text-overflow:ellipsis; overflow: hidden; max-width:.5px;">
+ <a title="Title : {{proposal.title}}, Tags: {{proposal.tags}}" href="{% url 'website:comment_abstract' proposal.id %}">{{proposal.title}}</a>
+ </td>
{% else %}
- <td style="white-space: nowrap; text-overflow:ellipsis; overflow: hidden; max-width:.5px;"> {{proposal.title}}</td>
- <td style="text-align: center;"><a href="{% url 'website:abstract_details' proposal.id %}">View</a> </td>
+ <td style="white-space: nowrap; text-overflow:ellipsis; overflow: hidden; max-width:.5px;"> {{proposal.title}}</td>
+ <td style="text-align: center;">
+ <a href="{% url 'website:abstract_details' proposal.id %}" class="btn btn-warning">View</a>
+ </td>
{% endif %}
- <td style="text-align: center;">
+ <td style="text-align: center;">
{% if user.is_superuser %}
- <center>{{ proposal.duration }}
+ <center>{{ proposal.duration }}
{% if proposal.proposal_type == 'ABSTRACT' %}
Mins{% else %} Hrs {% endif %}
</center>
{% else %}
- {{proposal.comments_set.count}}
+ <span class="badge"> {{proposal.comments_set.count}}</span>
{% endif %}
- </td>
- <td style="text-align: center;">
+ </td>
+ <td style="text-align: center;">
{% if proposal.status == 'Accepted' %}
- <h5 style="color:green;">{{proposal.status}}</h5>
+ <h5 style="color:green;">{{proposal.status}}</h5>
{% elif proposal.status == 'Rejected' %}
- <h5 style="color:red;">{{proposal.status}}</h5>
+ <h5 style="color:red;">{{proposal.status}}</h5>
{% elif proposal.status == 'Commented' %}
- <h5 style="color:brown;">{{proposal.status}}</h5>
+ <h5 style="color:brown;">{{proposal.status}}</h5>
{% elif proposal.status == 'Edit' %}
{% if user.is_superuser %}
- <h5 style="color:grey;">{{proposal.status}}</h5>
+ <h5 style="color:grey;">{{proposal.status}}</h5>
{% else %}
- <a href="">{{proposal.status}}</a>
+ <a href="{% url 'website:edit_proposal' proposal.id %}" class ="btn btn-info">{{proposal.status}}</a>
{% endif %}
{% else %}
- <h5 style="color:blue;">{{proposal.status}}</h5>
+ <h5 style="color:#ff6600;">{{proposal.status}}</h5>
{% endif %}
- </td>
- <!--
- <div>
- {% if not user.is_superuser and type == 'ABSTRACT' %}
- <a href="{% url 'website:submitcfw' %}" class ="btn btn-info" role="button">Submit workshop </a>
- {% elif not user.is_superuser and type == 'WORKSHOP' %}
- <a href="{% url 'website:submitcfp' %}" class ="btn btn-info" role="button"> Submit paper </a>
- {% elif not user.is_superuser%}
- {% endif %}
- </div>-->
- </tr>
+ </td>
+ </tr>
{% endfor %}
- </table>
- </div><br>
- </p>
-
-
+ </table>
+ </div>
+ <br>
+ <div>
+ <a href="{% url 'website:submitcfp' %}" class ="btn btn-info" role="button"> Submit paper </a>
+ <a href="{% url 'website:submitcfw' %}" class ="btn btn-info" role="button">Submit workshop </a>
+ </div>
+ </p>
{% if user.is_superuser %}
- <input type="submit" id="delete" class ="btn btn-info" value="Delete" name="delete"/>
- <center>
- <input type="submit" id="accept" class ="btn btn-info" value="Accept" name="accept"/>
- <input type="submit" id="rejected" class ="btn btn-info" value="Reject" name="reject"/>
- <input type="submit" id="resubmit" class ="btn btn-info" value="Resubmit" name="resubmit"/>
- </center>
+ <input type="submit" id="delete" class ="btn btn-info" value="Delete" name="delete"/>
+ <center>
+ <input type="submit" id="accept" class ="btn btn-info" value="Accept" name="accept"/>
+ <input type="submit" id="rejected" class ="btn btn-info" value="Reject" name="reject"/>
+ <input type="submit" id="resubmit" class ="btn btn-info" value="Resubmit" name="resubmit"/>
+ </center>
{% endif %}
- </form>
+ </form>
{% endif %}
- </div>
-
-
- </div>
-
- </div>
- </section>
-
+ </div>
+ </div>
+ </div>
+ <div class="row" style="margin-top: 18vh;"></div>
+ </section>
{% endblock %}
- {% include 'footer.html' %}
- </body>
-