diff options
author | prashantsinalkar | 2018-08-23 16:59:35 +0530 |
---|---|---|
committer | prashantsinalkar | 2018-08-23 16:59:35 +0530 |
commit | 756d9e437cc0e573558046d7ad2b1e629487865d (patch) | |
tree | e9fd275a3fd808f9c25a1f343210c6e997e22a38 | |
parent | 38d3b98ef3695add04945151a558d954ebf02140 (diff) | |
download | SciPy2018-756d9e437cc0e573558046d7ad2b1e629487865d.tar.gz SciPy2018-756d9e437cc0e573558046d7ad2b1e629487865d.tar.bz2 SciPy2018-756d9e437cc0e573558046d7ad2b1e629487865d.zip |
added new html files
10 files changed, 515 insertions, 0 deletions
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> {{ proposal.title }}</p> + <p><b>About Me: </b> {{ proposal.about_me | linebreaks }}</p> + <p><b>Abstract: </b> {{ proposal.abstract |linebreaks }}</p> + {% if proposal.prerequisite %} + <p><b>Prerequisite: </b> {{ proposal.prerequisite |linebreaks }}</p> + {% endif%} + <p><b>Duration: </b> {{ proposal.duration }} {% if proposal.proposal_type == "ABSTRACT"%} Mins {% else %}Hours {%endif%}</p> + {% if proposal.proposal_type == "ABSTRACT"%} + <p><b>Tags: </b> {{ proposal.tags }}</p> + {% else %} + <p><b>Level: </b> {{ proposal.tags }}</p> + {% endif %} + <p><b>Date Created: </b> {{ proposal.date_created }}</p> + {% if url %} + <p><b>Attachment: </b> + <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/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> {{ proposal.title }}</p> + <p align="justify"><b>About Me: </b> {{ proposal.about_me |linebreaks }}</p> + {% if proposal.proposal_type == "ABSTRACT"%} + <p align="justify"><b>Abstract:</b> + {% else %} + <p align="justify"><b>Description:</b> + {% endif %} + {{ proposal.abstract | linebreaks }} + </p> + {% if proposal.prerequisite %} + <p align="justify"><b>Prerequisite: </b> {{ proposal.prerequisite| linebreaks }}</p> + {% endif%} + <p><b>Duration: </b> {{ proposal.duration }} {% if proposal.proposal_type == "ABSTRACT"%} Mins {% else %}Hours {%endif%}</p> + {% if proposal.proposal_type == "ABSTRACT"%} + <p><b>Tags: </b> {{ proposal.tags }}</p> + {% else %} + <p><b>Level: </b> {{ proposal.tags }}</p> + {% endif %} + {% if url %} + <b>Attachment: </b> <a href="{{ url }}" class="btn btn-info" target="_blank">{{ filename }}</a> + {% endif %} + <p><b>Date Created: </b> {{ 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 + <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/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/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="#">×</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 %} |