diff options
Diffstat (limited to 'static/website/templates')
-rw-r--r-- | static/website/templates/base.html | 11 | ||||
-rwxr-xr-x | static/website/templates/cfp.html | 159 | ||||
-rw-r--r-- | static/website/templates/home.html | 1 | ||||
-rw-r--r-- | static/website/templates/index.html | 15 | ||||
-rw-r--r-- | static/website/templates/login.html | 46 | ||||
-rw-r--r-- | static/website/templates/navbar.html | 11 | ||||
-rw-r--r-- | static/website/templates/proposal.html | 148 | ||||
-rw-r--r-- | static/website/templates/registration/login.html | 41 | ||||
-rw-r--r-- | static/website/templates/registration/signup.html | 39 | ||||
-rwxr-xr-x | static/website/templates/submit-cfp.html | 41 | ||||
-rwxr-xr-x | static/website/templates/view-proposals.html | 149 |
11 files changed, 602 insertions, 59 deletions
diff --git a/static/website/templates/base.html b/static/website/templates/base.html new file mode 100644 index 0000000..9c76859 --- /dev/null +++ b/static/website/templates/base.html @@ -0,0 +1,11 @@ +{% load static %} +<!DOCTYPE html> +<html lang="en"> + {% include 'header.html' %} + <body data-spy="scroll" data-target="#site-nav"> + {% include 'navbar.html' %} + {% block content %}{% endblock content %} + {% include 'footer.html' %} + </body> +</html> + diff --git a/static/website/templates/cfp.html b/static/website/templates/cfp.html new file mode 100755 index 0000000..704fafb --- /dev/null +++ b/static/website/templates/cfp.html @@ -0,0 +1,159 @@ +{% 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> + {% if user and not user.is_anonymous %} + <h2>Submit Proposal</h2> + {% else %} + <h2>Login</h2> + {% endif %} + </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> + {% 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> + {% 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> + <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/> + {% if user.is_superuser %} + <center> + <a href="{{SITE_URL}}/proposal/view" class="btn btn-info">View Proposals</a> + </center> + {% else %} + <center> + <a href="{{SITE_URL}}/proposal/view" class="btn btn-info">View Proposals</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> + {% if invalid %} + <p style="color:red; font-size:15px;">* Invalid Username/Password</p> + {% endif %} + <!-- <div id = "my_form"> --> + <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: <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> + <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> + </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"> + 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"> + 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> + {% endblock %} + + {% include 'footer.html' %} + </body> + diff --git a/static/website/templates/home.html b/static/website/templates/home.html index dec41fc..ed726e6 100644 --- a/static/website/templates/home.html +++ b/static/website/templates/home.html @@ -1,6 +1,7 @@ {% load static %} <!-- Navigation --> {% block home %} +<div id="home" data="home"></div> <header id="site-header" class="site-header valign-center"> <div class="intro"> diff --git a/static/website/templates/index.html b/static/website/templates/index.html index 55713ee..9d36028 100644 --- a/static/website/templates/index.html +++ b/static/website/templates/index.html @@ -1,11 +1,6 @@ +{% 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' %} - {% include 'home.html' %} - {% include 'footer.html' %} - </body> -</html> + {% block content %} + <div class="se-pre-con"></div> + {% include 'home.html' %} + {% endblock %} diff --git a/static/website/templates/login.html b/static/website/templates/login.html deleted file mode 100644 index 14274f7..0000000 --- a/static/website/templates/login.html +++ /dev/null @@ -1,46 +0,0 @@ -{% 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="login" class="section login"> - <div class="container"> - <div class="row"> - <h2><strong>Login<br/></h2><br/> - <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12"> - <!-- Start form --> - <form> - <div class="form-group"> - <label for="exampleInputEmail1">Email address</label> - <input type="email" class="form-control" id="exampleInputEmail1" aria-describedby="emailHelp" placeholder="Enter email"> - </div> - <div class="form-group"> - <label for="exampleInputPassword1">Password</label> - <input type="password" class="form-control" name="password" id="password" placeholder="Password"> - </div> - <div class="form-check"> - <button class="btn btn-info" type="button" name="showpassword" id="showpassword" value="Show Password">Show password</button> - <button type="submit" class="btn btn-primary">Submit</button> - </div> - - </form> - - - <!-- End form --> - </div> - - - - </div> - </div> -</section> - {% endblock %} - - - {% include 'footer.html' %} - </body> -</html> diff --git a/static/website/templates/navbar.html b/static/website/templates/navbar.html index 140a196..14a8ccd 100644 --- a/static/website/templates/navbar.html +++ b/static/website/templates/navbar.html @@ -30,15 +30,20 @@ <ul class="nav navbar-nav navbar-right"> <!-- navigation menu --> - <li class="active"><a data-scroll href="#about">About</a></li> + <li class="active"><a data-scroll href="{{SITE_URL}}/#about">About</a></li> <li><a data-scroll href="{{SITE_URL}}/#speakers">Speakers</a></li> <li><a data-scroll href="{{SITE_URL}}/#schedule">Schedule</a></li> <li><a data-scroll href="{{SITE_URL}}/#sponsor">Sponsor</a></li> <li><a data-scroll href="{{SITE_URL}}/#faq">FAQ</a></li> <li><a data-scroll href="{{SITE_URL}}/#photos">Photos</a></li> <li><a data-scroll href="{{SITE_URL}}/#team">Team</a></li> - <li><a data-scroll href="#">Login</a></li> - + {% if user.is_authenticated %} + <li><a href="{% url 'login' %}"><i class="fa fa-user" aria-hidden="true"></i> + {{ user.username }}!</a></li> + <li><a href="{% url 'logout' %}">logout</a></li> + {% else %} + <li><a href="{% url 'login' %}">login</a></li> + {% endif %} </ul> </div> </div><!-- /.container --> diff --git a/static/website/templates/proposal.html b/static/website/templates/proposal.html new file mode 100644 index 0000000..c6b51c3 --- /dev/null +++ b/static/website/templates/proposal.html @@ -0,0 +1,148 @@ +{% extends "base.html" %} +{% load static %} + {% block content %} +<section id="proposal" class="section proposal"> + <div class="container"> + + <center> + {% if user and not user.is_anonymous %} + <h2>Submit Proposal</h2> + {% else %} + <h2>Login</h2> + {% endif %} + </center> + + {% 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="">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="">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 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. 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> + <a href="{{ SITE_URL }}/proposal/submitcfp" class="btn btn-info">Submit Proposal</a> + <a href="" class="btn btn-info">Submit Workshop</a> + </center> + {% else %} + <center> + <a href="{{ SITE_URL }}/proposal/view" class="btn btn-info">View Proposals</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> + {% if invalid %} + <p style="color:red; font-size:15px;">* Invalid Username/Password</p> + {% endif %} + <!-- <div id = "my_form"> --> + <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="{% url '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: <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> + <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> + </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. 2018</b> + </li> + <li>Announcement of selected proposals: <br> + <b>15<sup>th</sup> Nov. 2018</b> + </li> + </ul> + + </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"> + 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> +{% endblock %} diff --git a/static/website/templates/registration/login.html b/static/website/templates/registration/login.html new file mode 100644 index 0000000..86a90c6 --- /dev/null +++ b/static/website/templates/registration/login.html @@ -0,0 +1,41 @@ +{% 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="login" class="section login"> + <div class="container"> + <div class="row"> + {% if user.is_authenticated %} + Hi {{ user.username }}! +{% else %} + <p>You are not logged in</p> + <a href="{% url 'login' %}">login</a> +{% endif %} +<h2>Login</h2> +<form method="post"> + {% csrf_token %} + {{ form.as_p }} + <button type="submit">Login</button> +</form> + </form> + + + <!-- End form --> + </div> + + + + </div> + </div> +</section> + {% endblock %} + + + {% include 'footer.html' %} + </body> +</html> diff --git a/static/website/templates/registration/signup.html b/static/website/templates/registration/signup.html new file mode 100644 index 0000000..0094401 --- /dev/null +++ b/static/website/templates/registration/signup.html @@ -0,0 +1,39 @@ +<!-- templates/signup.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="login" class="section login"> + <div class="container"> + <div class="row"> + {% if user.is_authenticated %} + Hi {{ user.username }}! +{% else %} + <p>You are not logged in !!!!!</p> +{% endif %} + <h2>Sign up</h2> + <form method="post"> + {% csrf_token %} + {{ form.as_p }} + <button type="submit">Sign up</button> + </form> + + + </div> + + + + </div> + </div> +</section> + {% endblock %} + + + {% include 'footer.html' %} + </body> +</html> diff --git a/static/website/templates/submit-cfp.html b/static/website/templates/submit-cfp.html new file mode 100755 index 0000000..b3aa2ee --- /dev/null +++ b/static/website/templates/submit-cfp.html @@ -0,0 +1,41 @@ +{% extends "base.html" %} +{% 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> + <!-- <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 %} + <center> + <button class="btn btn-info" type="submit">Submit</button> + <a href="{{ SITE_URL}}/proposal" class="btn btn-info" role="button">Back</a> + </center> + </form> + {% endif %} + </div> +</section> +{% endblock %} diff --git a/static/website/templates/view-proposals.html b/static/website/templates/view-proposals.html new file mode 100755 index 0000000..bdb39f7 --- /dev/null +++ b/static/website/templates/view-proposals.html @@ -0,0 +1,149 @@ +{% 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> + <center> + <h2>View Proposals</h2> + </center> + </p> + {% if not proposals %} + <center> + <h3>Proposals are no longer accepted</h3> + + </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> + {% 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> + {% if user.is_superuser %} + <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%" /> + {% endif %} + </colgroup> + {% if user.is_superuser %} + <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 + {% if not user.is_superuser %} + <th style="text-align: center;"> View + {% endif %} + {% if user.is_superuser %} + <th style="text-align: center;"> + <center> Duration</center> + {% else %} + <th style="text-align: center;"> Comments + {% endif %} + <th style="text-align: center;"> Status + {% for proposal in proposals %} + <tr> + {% if user.is_superuser %} + <td style="text-align: center;"> + {% if proposal.status == 'Rejected' %} + {% else %} + <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> + {% endif %} + <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> + {% 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> + {% endif %} + <td style="text-align: center;"> + {% if user.is_superuser %} + <center>{{ proposal.duration }} + {% if proposal.proposal_type == 'ABSTRACT' %} + Mins{% else %} Hrs {% endif %} + </center> + {% else %} + {{proposal.comments_set.count}} + {% endif %} + </td> + <td style="text-align: center;"> + {% if proposal.status == 'Accepted' %} + <h5 style="color:green;">{{proposal.status}}</h5> + {% elif proposal.status == 'Rejected' %} + <h5 style="color:red;">{{proposal.status}}</h5> + {% elif proposal.status == 'Commented' %} + <h5 style="color:brown;">{{proposal.status}}</h5> + {% elif proposal.status == 'Edit' %} + {% if user.is_superuser %} + <h5 style="color:grey;">{{proposal.status}}</h5> + {% else %} + <a href="">{{proposal.status}}</a> + {% endif %} + {% else %} + <h5 style="color:blue;">{{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> + {% endfor %} + </table> + </div><br> + </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> + {% endif %} + </form> + {% endif %} + </div> + + + </div> + + </div> + </section> + + {% endblock %} + {% include 'footer.html' %} + </body> + |