diff options
Diffstat (limited to 'website/templates')
-rwxr-xr-x | website/templates/abstract-details.html | 78 | ||||
-rwxr-xr-x | website/templates/base.html | 187 | ||||
-rwxr-xr-x | website/templates/cfp.html | 159 | ||||
-rwxr-xr-x | website/templates/comment-abstract.html | 76 | ||||
-rwxr-xr-x | website/templates/registration/password_change_done.html | 2 | ||||
-rwxr-xr-x | website/templates/registration/password_change_form.html | 2 | ||||
-rwxr-xr-x | website/templates/registration/password_reset_complete.html | 2 | ||||
-rwxr-xr-x | website/templates/registration/password_reset_confirm.html | 2 | ||||
-rwxr-xr-x | website/templates/registration/password_reset_done.html | 2 | ||||
-rwxr-xr-x | website/templates/registration/password_reset_form.html | 2 | ||||
-rwxr-xr-x | website/templates/submit-cfp.html | 97 | ||||
-rwxr-xr-x | website/templates/submit-cfw.html | 95 | ||||
-rwxr-xr-x | website/templates/user-register.html | 96 | ||||
-rwxr-xr-x | website/templates/view-abstracts.html | 123 |
14 files changed, 669 insertions, 254 deletions
diff --git a/website/templates/abstract-details.html b/website/templates/abstract-details.html index 319feb2..9ee8331 100755 --- a/website/templates/abstract-details.html +++ b/website/templates/abstract-details.html @@ -18,7 +18,7 @@ {% block header %} <header id="header1"> - <h1>Scipy India 2016</h1> + <h1>SciPy India 2016</h1> <h2>Abstract Details</h2> </header> {% endblock %} @@ -33,7 +33,9 @@ <div class="navbar navbar-inverse navbar-fixed-top"> <div class="navbar-collapse collapse"> <ul class="nav navbar-nav"> - <li><a href="{% url 'website:home' %}" class="active">Home</a></li> + <li><a href="{% url 'website:home' %}" class="active">Home</a></li> + <li><a href="{% url 'website:view_abstracts' %}" class="active">View Proposals</a></li> + {% if user and not user.is_anonymous %} <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown">{{ user.get_full_name|default:user.username }}</a> @@ -68,10 +70,9 @@ <p><b>Attachment: </b> <a href="{{ proposal.attachment.url }}" class="btn btn-info" target="_blank">{{proposal.attachment}}</a></p> {% endif %} - - <hr> - <h4>Comments</h4> - <hr> + <b>Rate: </b></b> {{proposal.rate}} /10 + <p><b>Comments: </b> + <hr> {% for comment in comments %} <div> <strong>Comment By:</strong> @@ -84,7 +85,57 @@ </section> </div> - + + <!-- <footer id="footer"> + <section id="contact"> + <h2>Write to Us</h2> + <p>Feel free to send us an email if you have any questions.</p> + <form id="contact" action="" class="form" role="form" method=POST enctype="multipart/form-data">{% csrf_token %} + <div class="col-md-6 form-group"> + <input class="form-control" id="name" name="name" placeholder="Name" type="text" required /> + </div> + <div class="col-md-6 form-group"> + <input class="form-control" id="email" name="email" placeholder="Email" type="email" required /> + </div> + <br><br> + <textarea class="form-control" id="message" name="message" placeholder="Message" rows="5"></textarea> + <br> + <div class = "col-md-3"> + <input class="form-control" style="color:black;" readonly type="text" id="a" /> + </div> + <div class = "col-md-3"> + <input placeholder = "Answer" class="form-control" type="text" id="b"/> + </div> + <div class = "col-md-3"> + <button class="button" id = "c" type="submit">Send Message</button> + </div> + </section> + <section> + <h2>Contact Us</h2> + <dl class="alt"> + <dt>Address</dt> + <dd>1234 Somewhere Road • Nashville, TN 00000 • USA</dd> + <dt>Phone</dt> + <dd>(000) 000-0000 x 0000</dd> + <dt>Email</dt> + <dd><a style="color:white;" href="#">information@untitled.tld</a></dd> + </dl> + <ul class="icons"> + <li><a style="color:white;" href="#" class="icon-twitter alt"><span class="label"></span></a></li> + <li><a style="color:white;" href="#" class="icon-facebook alt"><span class="label"></span></a></li> + <li><a style="color:white;" href="#" class="icon-instagram alt"><span class="label"></span></a></li> + <li><a style="color:white;" href="#" class="icon-github alt"><span class="label"></span></a></li> + <li><a style="color:white;" href="#" class="icon-dribbble alt"><span class="label"></span></a></li> + </ul> + Visit SciPy.in/ <a style="color:white;" href="">2009</a>/ + <a style="color:white;" href="">2010</a>/ + <a style="color:white;" href="">2011</a>/ + <a style="color:white;" href="">2012</a>/ + <a style="color:white;" href="">2013</a>/ + <a style="color:white;" href="">2014</a>/ + <a style="color:white;" href="">2015</a> + </section> + </footer> --> {% endblock %} <!-- Scripts --> @@ -96,5 +147,18 @@ <!--[if lte IE 8]><script src="assets/js/ie/respond.min.js"></script><![endif]--> <script src="assets/js/main.js"></script> +<script> +$(document).ready(function() { + var n1 = Math.round(Math.random() * 10 + 1); + var n2 = Math.round(Math.random() * 10 + 1); + $("#a").val(n1 + " + " + n2 + " = "); + $("#c").click(function() { + if (eval($("#a").val()) == $("#b").val()) { + } else { + alert("Write the correct value "); + } + }); +}); +</script> </body> </html>
\ No newline at end of file diff --git a/website/templates/base.html b/website/templates/base.html index 2197957..1c0360f 100755 --- a/website/templates/base.html +++ b/website/templates/base.html @@ -3,17 +3,17 @@ <!DOCTYPE HTML>
<html>
<head>
- <title>Scipy India 2016</title>
+ <link rel="icon" href="http://fossee.in/data/emails/images/favicon.ico" type="icon">
+ <title>SciPy India 2016</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<script src="{% static 'js/ie/html5shiv.js' %}"></script>
<link rel="stylesheet" href="{% static 'css/main.css'%}" />
<link rel="stylesheet" href="{% static 'css/fileuploader.css'%}" />
- <!-- <link rel="stylesheet" href="{% static 'css/ie9.css' %}" /> -->
- <!-- <link rel="stylesheet" href="{% static 'css/ie8.css' %}" /> -->
<link href="{% static 'css/base.css' %}" rel="stylesheet">
- <link href="{% static 'css/font-awesome.min.css' %}" rel="stylesheet">
- </head>
+ <link href="//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css" rel="stylesheet">
+ <link href="{% static 'css/bootstrap-social.css' %}" rel="stylesheet">
+ </head>
<body>
<!-- Wrapper -->
@@ -22,19 +22,16 @@ <header id="header" class="alt">
<span class="logo"><img src="{% static 'img/logo.png' %}" alt="" /></span>
- <h1 >Scipy India 2016</h1>
- <p style="color:#636363; font-weight:500" >DECEMBER 9, 10 & 11</p><br><br>
+ <h1 >SciPy India 2016</h1>
+ <p style="color:#484848; font-weight:700; font-size:28px;" >DECEMBER 9, 10 & 11</p><br><br>
<a href="{% url 'website:cfp' %}" class="button special" style="width : 220px;" >Attend</a></center>
- <a href="#callforabstract" class="button special" style="width : 220px;">Submit Abstract</a></center>
- <a href="#callforabstract" class="button special" style="width : 220px;" >Propose Workshop</a></center>
+ <a href="{% url 'website:cfp' %}" class="button special" style="width : 220px;">Call for Proposal</a></center>
+ <!-- <a href="#callforabstract" class="button special" style="width : 220px;" >Propose Workshop</a></center> -->
</header>
{% endblock %}
-
-
-
<body data-spy="scroll" data-offset="0" data-target="#navbar-main">
{% block nav %}
@@ -47,7 +44,7 @@ <li> <a href="#about" class="smoothScroll">About</a></li>
<li> <a href="#speakers" class="smoothScroll">Speakers</a></li>
<li> <a href="#attend" class="smoothScroll">Attend</a></li>
- <li> <a href="#callforabstract">Call for Proposal</a></li>
+ <li> <a href="{% url 'website:cfp' %}">Call for Proposal</a></li>
<li> <a href="#schedule" class="smoothScroll">Schedule</a></li>
<li> <a href="#venue" class="smoothScroll">Venue</a></li>
<li> <a href="#sponsors" class="smoothScroll">Sponsors</a></li>
@@ -80,34 +77,11 @@ <header class="major">
<h2>ABOUT</h2>
</header>
- <p style= "font-size: 20px;">We look forward to your proposals. Conference aims to promote Python for Scientific Computing and Education. Topics like pedagogy, exploration, modeling or from both applied and developmental perspectives are welcome. Contributions from academia as well as industry are welcome. If you wish to propose a talk at the conference, kindly follow the guidelines given below.</p>
+ <p align="justify" style= "font-size: 20px;">We look forward to your proposals. Conference aims to promote Python for Scientific Computing and Education. Topics like pedagogy, exploration, modeling or from both applied and developmental perspectives are welcome. Contributions from academia as well as industry are welcome. If you wish to propose a talk at the conference, kindly follow the guidelines given below.</p>
</div>
</div>
- <div><h3>SciPy India Conferences down the lane</h3>
- <ul class="features">
- <li>
- <span><img src="{% static 'img/s15.jpg' %}" width="200" alt="" /></span>
- <h4><a href="http://scipy.in/2015" target="_blank">SciPy India 2015</a></h4>
-
- </li>
- <li>
- <span><img src="{% static 'img/s14.jpg' %}" width="200" alt="" /></span>
- <h4><a href="http://scipy.in/2014" target="_blank">SciPy India 2014</a></h4>
-
- </li>
- <li>
- <span><img src="{% static 'img/s13.jpg' %}" width="200" alt="" /></span>
- <h4><a href="http://scipy.in/2013" target="_blank">SciPy India 2013</a></h4>
-
- </li>
- <li>
- <span><img src="{% static 'img/s12.jpg' %}" width="200" alt="" /></span>
- <h4><a href="http://scipy.in/2012" target="_blank">SciPy India 2012</a></h4>
-
- </li>
- </ul>
- </div>
+
</section>
@@ -121,28 +95,28 @@ <center>
<div class = "col-md-4">
- <img class="img-responsive" src="{% static 'img/pic01.png' %}" alt="">
- <p>Dr. Abc Xyz</p>
- <a href="https://github.com/expeyes" targer"_blank"><i class="icon-github" style="font-size:30px;"></i></a>
+ <img class="img-responsive" src="{% static 'img/ajith.jpg' %}" height="300" width="300" alt="">
+ <p>Dr. Ajit Kumar</p>
+ <a style = "color:#636363;" href="https://github.com/expeyes" target="_blank"><i class="icon-github" style="font-size:30px;"></i></a>
- <a href="http://expeyes.in/" target="_blank"><i class="icon-info" style="font-size:30px;"></i></a>
+ <a style = "color:#636363;" href="http://expeyes.in/" target="_blank"><i class="icon-info" style="font-size:30px;"></i></a>
</div>
<div class = "col-md-4">
- <img class="img-responsive" src="{% static 'img/pic01.png' %}" alt="">
+ <img class="img-responsive" src="{% static 'img/pic01.png' %}" height="300" width="300" alt="">
<p>Dr. Abc Xyz</p>
- <a href="https://github.com/expeyes" targer"_blank"><i class="icon-github" style="font-size:30px;"></i></a>
+ <a style = "color:#636363;" href="https://github.com/expeyes" target="_blank"><i class="icon-github" style="font-size:30px;"></i></a>
- <a href="http://expeyes.in/" target="_blank"><i class="icon-info" style="font-size:30px;"></i></a>
+ <a style = "color:#636363;" href="http://expeyes.in/" target="_blank"><i class="icon-info" style="font-size:30px;"></i></a>
</div>
<div class = "col-md-4">
- <img class="img-responsive" src="{% static 'img/pic01.png' %}" alt="">
+ <img class="img-responsive" src="{% static 'img/pic01.png' %}" height="300" width="300" alt="">
<p>Dr. Abc Xyz</p>
- <a href="https://github.com/expeyes" targer"_blank"><i class="icon-github" style="font-size:30px;"></i></a>
+ <a style = "color:#636363;" href="https://github.com/expeyes" target="_blank"><i class="icon-github" style="font-size:30px;"></i></a>
- <a href="http://expeyes.in/" target="_blank"><i class="icon-info" style="font-size:30px;"></i></a>
+ <a style = "color:#636363;" href="http://expeyes.in/" target="_blank"><i class="icon-info" style="font-size:30px;"></i></a>
</div>
</center>
-
+
</div>
</div>
@@ -155,6 +129,7 @@ <h2>ATTEND</h2>
</header>
+ <!-- <div style="overflow-x:auto;"> -->
<table >
<colgroup>
<col width="20%" />
@@ -163,13 +138,9 @@ </colgroup>
<tr>
<center>
- <!-- <ul class="statistics"> -->
<td bgcolor="#efa8b0">
- <!-- <ul class="statistics"> -->
- <!-- <li class="style1"> -->
<h9 style="color:white;">Early Bird</h9>
<h2 style="color:white;" style ="font-size: 25px;">₹1000</h2>
- <!-- </ul> -->
</td>
<td>
This ticket includes conference (tutorials + talks), lunch and snacks for 3 days. It does not include Accommodation & T-Shirt. This is a non-refundable ticket.
@@ -177,56 +148,40 @@ </tr>
<tr>
<td bgcolor = "#c79cc8">
- <!-- <ul class="statistics"> -->
- <!-- <li class="style2"> -->
<h9 style="color:white;">Light</h9>
<h2 style="color:white;"style ="font-size: 25px;">₹300</h2>
- <!-- </li> -->
- <!-- </ul> -->
</td>
<td>
This Ticket allows you to ONLY attend the conference for 3 Days. Does not include any conference amenities (Accommodation, Kit, Food & T-shirt). This is a non-refundable ticket. </td>
</tr>
<tr>
<td bgcolor="#a89cc8">
- <!-- <ul class="statistics"> -->
- <!-- <li class="style3"> -->
<h9 style="color:white;">Regular</h9>
<h2 style="color:white;" style ="font-size: 25px;">₹1200</h2>
- <!-- </li> -->
- <!-- </ul> -->
</td>
<td>
This ticket includes conference (tutorials + talks), lunch and snacks for 3 days. It does not include Accommodation & T-Shirt. This is a non-refundable ticket.</td>
</tr>
<tr>
<td bgcolor ="#9bb2e1">
- <!-- <ul class="statistics"> -->
- <!-- <li class="style5"> -->
<h9 style="color:white;">Accomodation</h9>
<h2 style="color:white;" style ="font-size: 25px;">₹750</h2>
- <!-- </li> -->
- <!-- </ul> -->
</td>
<td>
Accommodation is provided on a shared basis (twin sharing) inside IIT-B campus (Boys/Girls hostel). Accommodation will be provided for 3 days, i.e, 13-14, 14-15 and 15-16 December. Accommodation does not include other amenities like dinner, etc. Extension of period of stay is not available. This is a non-refundable ticket.
</td>
<tr>
<td bgcolor= "#8cc9f0">
- <!-- <ul class="statistics"> -->
- <!-- <li class="style4"> -->
<h9 style="color:white;">T-Shirt</h9>
<h2 style="color:white;" style ="font-size: 25px;">₹250</h2>
- <!-- </li> -->
- <!-- </ul> -->
</td>
<td>
Change of size, exchange at the venue is not available. This is a non-refundable ticket.
</td>
</tr>
</tr>
-
+
</table>
<p id="demo"></p>
@@ -238,32 +193,6 @@ </section>
-<section id="callforabstract" class="main special">
- <div class="spotlight">
- <div class="content">
- <header class="major">
- <h2>CALL FOR PROPOSAL</h2></header>
- <div class="col-md-6">
- <p align="justify">We look forward to your proposals. Conference aims to promote <strong>Python for Scientific Computing and Education</strong>. Topics like pedagogy, exploration, modeling or from both applied and developmental perspectives are welcome. Contributions from academia as well as industry are welcome. If you wish to propose a talk at the conference, kindly follow the guidelines given below.</p><br><br>
- {% if user and not user.is_anonymous and not login_required %}
- <a class="button" href="{% url 'website:submitcfp' %}">Submit Abstract</a>
- {% else %}
- <a class="button" href="{% url 'website:cfp' %}">Submit Abstract</a>
- {% endif %}
- </div>
- <div class="col-md-6">
- <p align="justify">We look forward to your proposals. Conference aims to promote <strong>Python for Scientific Computing and Education</strong>. Topics like pedagogy, exploration, modeling or from both applied and developmental perspectives are welcome. Contributions from academia as well as industry are welcome. If you wish to propose a talk at the conference, kindly follow the guidelines given below.</p><br><br>
- {% if user and not user.is_anonymous and not login_required %}
- <a class="button" href="{% url 'website:submitcfw' %}">Propose Workshop</a>
- {% else %}
- <a class="button" href="{% url 'website:cfp' %}">Propose Workshop</a>
- {% endif %}
-
- </div>
- </section>
-
-
-
<section id="schedule" class="main special">
<div class="spotlight">
<div class="content">
@@ -280,11 +209,9 @@ <li><a style="background: #a89cc8;" data-toggle="tab" href="http://scipy.in/2015#day3">Day 3</a></li>
<li><a style="background: #9bb2e1;"data-toggle="tab" href="http://scipy.in/2015#paper">Workshop Resources</a></li>
<li><a style="background: #8cc9f0;" data-toggle="tab" href="http://scipy.in/2015#workshop">Workshop Instructions</a></li>
-
</ul>
<div class="tab-content">
-
<div id="day1" class="tab-pane fade in active">
<p>
</p><center><h4>14 Dec 2015: Day 1</h4></center>
@@ -425,8 +352,10 @@ <div class="content">
<header class="major">
<h2>VENUE</h2>
- <center><h4>Lecture Hall Complex, IIT Bombay</h4>
- <iframe src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d3769.472585331343!2d72.916895!3d19.130779999999994!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x3be7c7f4215f57bf%3A0xcf0c03ea45a113e1!2sLecture+Hall+Complex+(LHC)!5e0!3m2!1sen!2sin!4v1434726932900" width="550" height="300" frameborder="0" style="border:0"></iframe></center>
+ <center><h4>Lecture Hall Complex, IIT Bombay</h4></center>
+ <!-- <div class='myIframe' > -->
+ <iframe src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d3769.472585331343!2d72.916895!3d19.130779999999994!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x3be7c7f4215f57bf%3A0xcf0c03ea45a113e1!2sLecture+Hall+Complex+(LHC)!5e0!3m2!1sen!2sin!4v1434726932900" width="550" height="300" frameborder="0" style="border:0"></iframe>
+ <!-- </div> -->
</section>
@@ -451,17 +380,15 @@ <p align="justify">The Annual SciPy India conference is organised by the team members of FOSSEE project which is part of the National Mission on Education through ICT with the thrust area being Adaptation and deployment of open source simulation packages equivalent to proprietary software, funded by MHRD, based at the Indian Institute of Technology Bombay (IITB).</p>
</div>
</section>
-<!--
-
-
---><br><br><br>
</div>
+ {% endblock %}
+ {% block footer %}
<footer id="footer">
<section id="contact">
- <h2>Write Us</h2>
+ <h2>Write to Us</h2>
<p>Feel free to send us an email if you have any questions.</p>
- <form id="contact" action="" class="form" role="form" method=POST enctype="multipart/form-data">{% csrf_token %}
+ <form id="contact_us" action='{{ contact_form_url}}' class="form" role="form" method=POST enctype="multipart/form-data">{% csrf_token %}
<div class="col-md-6 form-group">
<input class="form-control" id="name" name="name" placeholder="Name" type="text" required />
</div>
@@ -470,9 +397,20 @@ </div>
<br><br>
<textarea class="form-control" id="message" name="message" placeholder="Message" rows="5"></textarea>
- <br>
- <button class="button" type="submit">Send Message</button>
+ <br>
+ <div class = "col-md-3">
+ <input class="form-control" style="color:black;" readonly type="text" id="a" />
+ </div>
+ <div class = "col-md-3">
+ <input placeholder = "Answer" class="form-control" type="text" id="b"/>
+ </div>
+ <div class = "col-md-3">
+ <button class="button" href="" id = "c" type="submit">Send Message</button>
+ </div>
+ </form>
</section>
+
+
<section>
<h2>Contact Us</h2>
<dl class="alt">
@@ -481,20 +419,26 @@ <dt>Phone</dt>
<dd>(000) 000-0000 x 0000</dd>
<dt>Email</dt>
- <dd><a href="#">information@untitled.tld</a></dd>
+ <dd><a style="color:white;" href="#">information@untitled.tld</a></dd>
</dl>
<ul class="icons">
- <li><a href="#" class="icon fa-twitter alt"><span class="label">Twitter</span></a></li>
- <li><a href="#" class="icon fa-facebook alt"><span class="label">Facebook</span></a></li>
- <li><a href="#" class="icon fa-instagram alt"><span class="label">Instagram</span></a></li>
- <li><a href="#" class="icon fa-github alt"><span class="label">GitHub</span></a></li>
- <li><a href="#" class="icon fa-dribbble alt"><span class="label">Dribbble</span></a></li>
+ <li><a style="color:white;" href="#" class="icon-twitter alt"><span class="label"></span></a></li>
+ <li><a style="color:white;" href="#" class="icon-facebook alt"><span class="label"></span></a></li>
+ <li><a style="color:white;" href="#" class="icon-instagram alt"><span class="label"></span></a></li>
+ <li><a style="color:white;" href="#" class="icon-github alt"><span class="label"></span></a></li>
+ <li><a style="color:white;" href="#" class="icon-dribbble alt"><span class="label"></span></a></li>
</ul>
+ Visit SciPy.in/ <a style="color:white;" href="">2009</a>/
+ <a style="color:white;" target="_blank" href="">2010</a>/
+ <a style="color:white;" target="_blank" href="">2011</a>/
+ <a style="color:white;" target="_blank" href="http://scipy.in/2012">2012</a>/
+ <a style="color:white;" target="_blank" href="http://scipy.in/2013" >2013</a>/
+ <a style="color:white;" target="_blank" href="http://scipy.in/2014">2014</a>/
+ <a style="color:white;" target="_blank" href="http://scipy.in/2015">2015</a>
</section>
</footer>
</div>
-
</div>
<!-- end wrapper -->
{% endblock %}
@@ -511,5 +455,18 @@ <script src="{% static 'js/bootstrap.min.js' %}"></script>
<script src="{% static 'js/smoothscroll.js' %}"></script>
+<script>
+$(document).ready(function() {
+ var n1 = Math.round(Math.random() * 10 + 1);
+ var n2 = Math.round(Math.random() * 10 + 1);
+ $("#a").val(n1 + " + " + n2 + " = ");
+ $("#c").click(function() {
+ if (eval($("#a").val()) == $("#b").val()) {
+ } else {
+ alert("Write the correct value ");
+ }
+ });
+});
+</script>
</body>
</html>
\ No newline at end of file diff --git a/website/templates/cfp.html b/website/templates/cfp.html index 594f86b..e587d47 100755 --- a/website/templates/cfp.html +++ b/website/templates/cfp.html @@ -17,7 +17,7 @@ {% block header %} <header id="header1"> - <h1>Scipy India 2016</h1> + <h1>SciPy India 2016</h1> <h2>Call For Proposal</h2> </header> {% endblock %} @@ -51,66 +51,120 @@ {% block content %} - <div id="wrapper"> -<div id="main" class="col-md-5"> - -<section id="content" class="main"> + <!-- <div id="wrapper"> --> + <div id="main"> + <section id="content" class="main"> + {% if proposal_submit %} + <center> + <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> + </center> + {% endif %} {% if user and not user.is_anonymous and not login_required %} - <h2><u>Main Menu</u></h2> - <a href="{% url 'website:submitcfp' %}" class="btn btn btn-primary">Submit an Abstract</a> - <br><a href="{% url 'website:submitcfw' %}" class="btn btn btn-primary">Submit a Workshop Proposal</a> - <br> - <a href="{% url 'website:view_abstracts' %}" class="btn btn btn-primary">View Proposals</a> - {% else %} - <h2><u>Login</u></h2> + {% if user.is_superuser %} + <center><a href="{% url 'website:view_abstracts' %}" style="background:#D44727" class="button special">View Proposals</a> </center> + {% else %} + <center> + <a href="{% url 'website:submitcfp' %}" style="background:#D44727" class="button special">Submit an Abstract</a> + <a href="{% url 'website:submitcfw' %}" style="background:#D44727" class="button special">Submit a Workshop</a> + <a href="{% url 'website:view_abstracts' %}" style="background:#D44727" class="button special">View Proposals</a> + </center> + {% endif %} + + {% else %} + <ul class="features"> +<li> + <span><h2><u>Login</u></h2></span> <p>Login/Register to Submit a Proposal</p> {% if invalid %} - <center> - <p>Invalid Username/Password</p> - </center> - {% endif %} + <p style="color:red; font-size:15px;">* Invalid Username/Password</p> + {% endif %} - <div id = "my_form"> + <!-- <div id = "my_form"> --> <form action="" method="POST"> {{ form.as_p }} - <br> - <button class="button" type="submit">Login</button><br><br> + <button class="button special" style="background:#D44727" 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> <a href="/forgotpassword/">Forgot Password?</a> {% csrf_token %} </form> - </div> - <br> - {% endif %} - - - </section> - - </div> - <div id="wrapper" > -<div id="main" class="col-md-7" > - -<section id="content" class="main"> - - <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>Abstract should be of 300 to 700 words describing the topic, including its relevance to scientific computing. - <li>Proposals with an aim to promote a commercial product or service will be rejected. - <li>In your abstract mention about various tools/libraries used for development. - <li>Notification for selection/rejection of your proposal will be given through email. - <li>All selected proposals must be presented at the conference by at least one author. - </ul> - <h2><u>Important Dates</u></h2> - <ul> + <!-- </div> --> + <p>Or Sign in with: + <a href="{% url 'social:begin' 'google-oauth2' %}?next={{ request.path }}" class="btn btn-social-icon " style="color:#dd4b39;"><i class="icon-google-plus"></i></a> + <a href="{% url 'social:begin' 'facebook' %}?next={{ request.path }}" class=" btn btn-social-icon" style="color:#3b5998"><i class="icon-facebook"></i></a></p> + </li> + <!-- </div> --> + + <!-- <div class="col-md-6" > --> +<li> + <span><h2><u>Important Dates</u></h2></span> + <ul> <li>CFP Open: July 5, 2015 <li>CFP Close: November 24, 2015 <li>Announcement of selected proposals: December 1, 2015 </ul> - </section> +</li> + <!-- </div> --> + {% endif %} + + </section> + </div> + <!-- </div> --> + + +<!-- + <footer id="footer"> + <section id="contact"> + <h2>Write to Us</h2> + <p>Feel free to send us an email if you have any questions.</p> + <form id="contact" action="" class="form" role="form" method=POST enctype="multipart/form-data">{% csrf_token %} + <div class="col-md-6 form-group"> + <input class="form-control" id="name" name="name" placeholder="Name" type="text" required /> + </div> + <div class="col-md-6 form-group"> + <input class="form-control" id="email" name="email" placeholder="Email" type="email" required /> + </div> + <br><br> + <textarea class="form-control" id="message" name="message" placeholder="Message" rows="5"></textarea> + <br> + <div class = "col-md-3"> + <input class="form-control" style="color:black;" readonly type="text" id="a" /> + </div> + <div class = "col-md-3"> + <input placeholder = "Answer" class="form-control" type="text" id="b"/> + </div> + <div class = "col-md-3"> + <button class="button" id = "c" name="send" type="submit">Send Message</button> + </div> + </section> + <section> + <h2>Contact Us</h2> + <dl class="alt"> + <dt>Address</dt> + <dd>1234 Somewhere Road • Nashville, TN 00000 • USA</dd> + <dt>Phone</dt> + <dd>(000) 000-0000 x 0000</dd> + <dt>Email</dt> + <dd><a style="color:white;" href="#">information@untitled.tld</a></dd> + </dl> + <ul class="icons"> + <li><a style="color:white;" href="#" class="icon-twitter alt"><span class="label"></span></a></li> + <li><a style="color:white;" href="#" class="icon-facebook alt"><span class="label"></span></a></li> + <li><a style="color:white;" href="#" class="icon-instagram alt"><span class="label"></span></a></li> + <li><a style="color:white;" href="#" class="icon-github alt"><span class="label"></span></a></li> + <li><a style="color:white;" href="#" class="icon-dribbble alt"><span class="label"></span></a></li> + </ul> + Visit SciPy.in/ <a style="color:white;" href="">2009</a>/ + <a style="color:white;" href="">2010</a>/ + <a style="color:white;" href="">2011</a>/ + <a style="color:white;" href="">2012</a>/ + <a style="color:white;" href="">2013</a>/ + <a style="color:white;" href="">2014</a>/ + <a style="color:white;" href="">2015</a> + </section> + </footer> --> + - </div> {% endblock %} <!-- Scripts --> @@ -122,5 +176,20 @@ <!--[if lte IE 8]><script src="assets/js/ie/respond.min.js"></script><![endif]--> <script src="assets/js/main.js"></script> +<script> +$(document).ready(function() { + var n1 = Math.round(Math.random() * 10 + 1); + var n2 = Math.round(Math.random() * 10 + 1); + $("#a").val(n1 + " + " + n2 + " = "); + $("#c").click(function() { + if (eval($("#a").val()) == $("#b").val()) { + } else { + alert("Write the correct value "); + } + }); +}); +</script> + + </body> </html>
\ No newline at end of file diff --git a/website/templates/comment-abstract.html b/website/templates/comment-abstract.html index 42b66d2..2ed996a 100755 --- a/website/templates/comment-abstract.html +++ b/website/templates/comment-abstract.html @@ -30,6 +30,7 @@ <div class="navbar-collapse collapse"> <ul class="nav navbar-nav"> <li><a href="{% url 'website:home' %}" class="active">Home</a></li> + <li><a href="{% url 'website:view_abstracts' %}" class="active">View Proposals</a></li> {% if user and not user.is_anonymous %} <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown">{{ user.get_full_name|default:user.username }}</a> @@ -47,7 +48,6 @@ </div> {% endblock %} - {% block content %} <div id="wrapper"> <div id="main"> @@ -60,37 +60,66 @@ <p><b>Prerequisite: </b> {{ proposal.prerequisite }}</p> {% endif%} {% if proposal.attachment.url %} - <a href="{{ proposal.attachment.url }}" class="btn btn-info" target="_blank">Attachment</a> + <b>Attachment: </b> <a href="{{ proposal.attachment.url }}" class="btn btn-info" target="_blank">{{ proposal.attachment}}</a> {% endif %} - <p><b>Date Created: </b> {{ proposal.date_created }}</p> - <hr> - <form action="{% url 'website:status' proposal.id %}" method='POST'>{% csrf_token %} - - <input type="submit" value="Accept" name="accept"/> - <input type="submit" value="Reject" name="reject"/> - - </form> - <hr> + <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>Rate :</b> + <select name="rating" style="width:70px;" onchange="run()"> <!--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> + {% if proposal.rate %} + {{proposal.rate}} /10 + + {% endif %} + + <hr> <h4>Comments</h4> {% for comment in comments %} <div> <strong>Comment By:</strong> {{ comment.user.first_name }} {{ comment.user.last_name }} - <p>{{ comment.comment|safe }}</p> - <!-- <a href="#">Edit</a> - <a href="#">Delete</a> --> + <p>{{ comment.comment|safe }}</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> - <button type="submit" class="button">Comment</button> + <input class="button special" style="background:#d44727" type="submit" class="button" 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> </section> - </div> + </div> + </div> {% endblock %} @@ -122,10 +151,17 @@ mySubmitButton.onclick = function() { <script> -$(function(){ - -} -) +$(document).ready(function() { + var n1 = Math.round(Math.random() * 10 + 1); + var n2 = Math.round(Math.random() * 10 + 1); + $("#a").val(n1 + " + " + n2 + " = "); + $("#c").click(function() { + if (eval($("#a").val()) == $("#b").val()) { + } else { + alert("Write the correct value "); + } + }); +}); </script> </body> diff --git a/website/templates/registration/password_change_done.html b/website/templates/registration/password_change_done.html index 7edddfa..753daa5 100755 --- a/website/templates/registration/password_change_done.html +++ b/website/templates/registration/password_change_done.html @@ -17,7 +17,7 @@ {% block header %} <header id="header"> - <h1>Scipy India 2016</h1> + <h1>SciPy India 2016</h1> <h2>Reset Password</h2> </header> {% endblock %} diff --git a/website/templates/registration/password_change_form.html b/website/templates/registration/password_change_form.html index 4884aca..61b4e6c 100755 --- a/website/templates/registration/password_change_form.html +++ b/website/templates/registration/password_change_form.html @@ -17,7 +17,7 @@ {% block header %} <header id="header"> - <h1>Scipy India 2016</h1> + <h1>SciPy India 2016</h1> <h2>Reset Password</h2> </header> {% endblock %} diff --git a/website/templates/registration/password_reset_complete.html b/website/templates/registration/password_reset_complete.html index c36c1f2..c2a765e 100755 --- a/website/templates/registration/password_reset_complete.html +++ b/website/templates/registration/password_reset_complete.html @@ -17,7 +17,7 @@ {% block header %} <header id="header"> - <h1>Scipy India 2016</h1> + <h1>SciPy India 2016</h1> <h2>Reset Password</h2> </header> {% endblock %} diff --git a/website/templates/registration/password_reset_confirm.html b/website/templates/registration/password_reset_confirm.html index 32c6bbd..86d5cdb 100755 --- a/website/templates/registration/password_reset_confirm.html +++ b/website/templates/registration/password_reset_confirm.html @@ -17,7 +17,7 @@ {% block header %} <header id="header"> - <h1>Scipy India 2016</h1> + <h1>SciPy India 2016</h1> <h2>Reset Password</h2> </header> {% endblock %} diff --git a/website/templates/registration/password_reset_done.html b/website/templates/registration/password_reset_done.html index 1a3dfae..64e28aa 100755 --- a/website/templates/registration/password_reset_done.html +++ b/website/templates/registration/password_reset_done.html @@ -17,7 +17,7 @@ {% block header %} <header id="header"> - <h1>Scipy India 2016</h1> + <h1>SciPy India 2016</h1> <h2>Reset Password</h2> </header> {% endblock %} diff --git a/website/templates/registration/password_reset_form.html b/website/templates/registration/password_reset_form.html index 5b40bbf..7f1d67c 100755 --- a/website/templates/registration/password_reset_form.html +++ b/website/templates/registration/password_reset_form.html @@ -17,7 +17,7 @@ {% block header %} <header id="header"> - <h1>Scipy India 2016</h1> + <h1>SciPy India 2016</h1> <h2>Reset Password</h2> </header> {% endblock %} diff --git a/website/templates/submit-cfp.html b/website/templates/submit-cfp.html index ac77975..e4ea1ae 100755 --- a/website/templates/submit-cfp.html +++ b/website/templates/submit-cfp.html @@ -19,21 +19,24 @@ {% block header %} <header id="header1"> - <h1>Scipy India 2016</h1> - <h2>Submit Abstract</h2> + <h1>SciPy India 2016</h1> + <h2>Submit Workshop Proposal</h2> </header> {% endblock %} <div id="wrapper"> {% block nav %} - <div id="navbar-main"> +<div id="navbar-main"> <!-- Fixed navbar --> <div class="navbar navbar-inverse navbar-fixed-top"> <div class="navbar-collapse collapse"> <ul class="nav navbar-nav"> <li><a href="{% url 'website:home' %}" class="active">Home</a></li> {% if user and not user.is_anonymous %} + {% if proposals_a %} + <li><a href="{% url 'website:view_abstracts' %}" >View Proposals</a></li> + {% endif %} <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown">{{ user.get_full_name|default:user.username }}</a> <ul class="dropdown-menu"> @@ -55,25 +58,91 @@ <div id="wrapper"> <div id="main"> <section id="content" class="main"> - - +{% if proposals_a > 1 %} You have exceeded the abstract submission limit. + You may view your submitted proposals by clicking <a href="{% url 'website:view_abstracts' %}" class="btn "> here</a> + </div> +</div> +</section> + <!-- <footer id="footer"> + <section id="contact"> + <h2>Write to Us</h2> + <p>Feel free to send us an email if you have any questions.</p> + <form id="contact" action="" class="form" role="form" method=POST enctype="multipart/form-data">{% csrf_token %} + <div class="col-md-6 form-group"> + <input class="form-control" id="name" name="name" placeholder="Name" type="text" required /> + </div> + <div class="col-md-6 form-group"> + <input class="form-control" id="email" name="email" placeholder="Email" type="email" required /> + </div> + <br><br> + <textarea class="form-control" id="message" name="message" placeholder="Message" rows="5"></textarea> + <br> + <button class="button" type="submit">Send Message</button> + </section> + <section> + <h2>Contact Us</h2> + <dl class="alt"> + <dt>Address</dt> + <dd>1234 Somewhere Road • Nashville, TN 00000 • USA</dd> + <dt>Phone</dt> + <dd>(000) 000-0000 x 0000</dd> + <dt>Email</dt> + <dd><a style="color:white;" href="#">information@untitled.tld</a></dd> + </dl> + <ul class="icons"> + <li><a style="color:white;" href="#" class="icon-twitter alt"><span class="label"></span></a></li> + <li><a style="color:white;" href="#" class="icon-facebook alt"><span class="label"></span></a></li> + <li><a style="color:white;" href="#" class="icon-instagram alt"><span class="label"></span></a></li> + <li><a style="color:white;" href="#" class="icon-github alt"><span class="label"></span></a></li> + <li><a style="color:white;" href="#" class="icon-dribbble alt"><span class="label"></span></a></li> + </ul> + Visit SciPy.in/ <a style="color:white;" href="">2009</a>/ + <a style="color:white;" href="">2010</a>/ + <a style="color:white;" href="">2011</a>/ + <a style="color:white;" href="">2012</a>/ + <a style="color:white;" href="">2013</a>/ + <a style="color:white;" href="">2014</a>/ + <a style="color:white;" href="">2015</a> + </section> + </footer> + --> + {% else %} +<div id="wrapper"> +<!-- <div id="main"> --> +<section id="content" class="main"> + -<div> - <h2>{{ user.get_full_name|default:user.username }} </h2> + <!-- <h2>{{ user.get_full_name|default:user.username }} </h2> --> + <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>Abstract should be of 300 to 700 words describing the topic, including its relevance to scientific computing. + <li>Proposals with an aim to promote a commercial product or service will be rejected. + <li>In your abstract mention about various tools/libraries used for development. + <li>Notification for selection/rejection of your proposal will be given through email. + <li>All selected proposals must be presented at the conference by at least one author. + </ul> <form action="" method=POST enctype="multipart/form-data"> + <div class="row1"> - {{ proposal_form.as_p }} + {% 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="button" type="submit">Submit</button></center> + <center><button class="button special" style="background:#D44727" type="submit">Submit</button></center> - </div> - </section> - </div> - -{% endblock %} + {% endif %} + +{% endblock %} +{% block footer %} +{% endblock %} <!-- Scripts --> <script src="assets/js/jquery.min.js"></script> diff --git a/website/templates/submit-cfw.html b/website/templates/submit-cfw.html index f43b378..a3207cd 100755 --- a/website/templates/submit-cfw.html +++ b/website/templates/submit-cfw.html @@ -19,7 +19,7 @@ {% block header %} <header id="header1"> - <h1>Scipy India 2016</h1> + <h1>SciPy India 2016</h1> <h2>Submit Workshop Proposal</h2> </header> {% endblock %} @@ -34,6 +34,9 @@ <ul class="nav navbar-nav"> <li><a href="{% url 'website:home' %}" class="active">Home</a></li> {% if user and not user.is_anonymous %} + {% if proposals_w %} + <li><a href="{% url 'website:view_abstracts' %}" >View Proposals</a></li> + {% endif %} <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown">{{ user.get_full_name|default:user.username }}</a> <ul class="dropdown-menu"> @@ -55,25 +58,91 @@ <div id="wrapper"> <div id="main"> <section id="content" class="main"> - - +{% if proposals_w > 1 %} You have exceeded the abstract submission limit. + You may view your submitted proposals by clicking <a href="{% url 'website:view_abstracts' %}" class="btn "> here</a> + </div> +</div> +</section> + <!-- <footer id="footer"> + <section id="contact"> + <h2>Write to Us</h2> + <p>Feel free to send us an email if you have any questions.</p> + <form id="contact" action="" class="form" role="form" method=POST enctype="multipart/form-data">{% csrf_token %} + <div class="col-md-6 form-group"> + <input class="form-control" id="name" name="name" placeholder="Name" type="text" required /> + </div> + <div class="col-md-6 form-group"> + <input class="form-control" id="email" name="email" placeholder="Email" type="email" required /> + </div> + <br><br> + <textarea class="form-control" id="message" name="message" placeholder="Message" rows="5"></textarea> + <br> + <button class="button" type="submit">Send Message</button> + </section> + <section> + <h2>Contact Us</h2> + <dl class="alt"> + <dt>Address</dt> + <dd>1234 Somewhere Road • Nashville, TN 00000 • USA</dd> + <dt>Phone</dt> + <dd>(000) 000-0000 x 0000</dd> + <dt>Email</dt> + <dd><a style="color:white;" href="#">information@untitled.tld</a></dd> + </dl> + <ul class="icons"> + <li><a style="color:white;" href="#" class="icon-twitter alt"><span class="label"></span></a></li> + <li><a style="color:white;" href="#" class="icon-facebook alt"><span class="label"></span></a></li> + <li><a style="color:white;" href="#" class="icon-instagram alt"><span class="label"></span></a></li> + <li><a style="color:white;" href="#" class="icon-github alt"><span class="label"></span></a></li> + <li><a style="color:white;" href="#" class="icon-dribbble alt"><span class="label"></span></a></li> + </ul> + Visit SciPy.in/ <a style="color:white;" href="">2009</a>/ + <a style="color:white;" href="">2010</a>/ + <a style="color:white;" href="">2011</a>/ + <a style="color:white;" href="">2012</a>/ + <a style="color:white;" href="">2013</a>/ + <a style="color:white;" href="">2014</a>/ + <a style="color:white;" href="">2015</a> + </section> + </footer> --> + + {% else %} +<div id="wrapper"> +<!-- <div id="main"> --> +<section id="content" class="main"> + + + <!-- <h2>{{ user.get_full_name|default:user.username }} </h2> --> + <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>Abstract should be of 300 to 700 words describing the topic, including its relevance to scientific computing. + <li>Proposals with an aim to promote a commercial product or service will be rejected. + <li>In your abstract mention about various tools/libraries used for development. + <li>Notification for selection/rejection of your proposal will be given through email. + <li>All selected proposals must be presented at the conference by at least one author. + </ul> + <form action="" method=POST enctype="multipart/form-data"> -<div> - <h2>{{ user.get_full_name|default:user.username }} </h2> - <form id="contact" action="" method=POST enctype="multipart/form-data"> <div class="row1"> - {{ proposal_form.as_p }} + {% 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="button" type="submit">Submit</button></center> + <center><button class="button special" style="background:#D44727" type="submit">Submit</button></center> - </div> - </section> - </div> - -{% endblock %} + {% endif %} + +{% endblock %} +{% block footer %} +{% endblock %} + <!-- Scripts --> <script src="assets/js/jquery.min.js"></script> diff --git a/website/templates/user-register.html b/website/templates/user-register.html index dfeba84..dffce77 100755 --- a/website/templates/user-register.html +++ b/website/templates/user-register.html @@ -19,7 +19,7 @@ {% block header %} <header id="header1"> - <h1>Scipy India 2016</h1> + <h1>SciPy India 2016</h1> <h2>Register</h2> </header> {% endblock %} @@ -45,9 +45,6 @@ <div id="wrapper"> <div id="main"> <section id="content" class="main"> - - - {% if email_registered %} <center> @@ -63,20 +60,77 @@ {% if registration_complete %} <p> Your Account is Created Successfully !</p> {% endif %} - <div> - <form action="" method="POST"> - {{ form.as_p}} - <div class="col-md-8"> - <button class="button" type="submit" >SignUp</button> - <a class="btn btn-primary" href="{% url 'website:cfp' %}">I have an account</a> - </div> - {% csrf_token %} + <!-- <div class = "col-md-7"> --> + <!-- <div id = "my_form"> --> + <form action="" method="POST"> {% csrf_token %} + {% for field in form %} + {{ field.errors }} + <p>{{ field.label}} + {% if field.field.required %} <span style="color:red;">*</span> {% endif %} + {{ field }}</p> + {% endfor %} + <br> + <button class="button special" style="background:#D44727" type="submit" >SignUp</button> + <a class="btn btn-primary" href="{% url 'website:cfp' %}"><u>I have an account</u></a> + <!-- </div> --> + </form> - </div> - + <!-- </div> --> + <!-- </div> --> + </section> </div> + <!-- <footer id="footer"> + <section id="contact"> + <h2>Write to Us</h2> + <p>Feel free to send us an email if you have any questions.</p> + <form id="contact" action="" class="form" role="form" method=POST enctype="multipart/form-data">{% csrf_token %} + <div class="col-md-6 form-group"> + <input class="form-control" id="name" name="name" placeholder="Name" type="text" required /> + </div> + <div class="col-md-6 form-group"> + <input class="form-control" id="email" name="email" placeholder="Email" type="email" required /> + </div> + <br><br> + <textarea class="form-control" id="message" name="message" placeholder="Message" rows="5"></textarea> + <br> + <div class = "col-md-3"> + <input class="form-control" style="color:black;" readonly type="text" id="a" /> + </div> + <div class = "col-md-3"> + <input placeholder = "Answer" class="form-control" type="text" id="b"/> + </div> + <div class = "col-md-3"> + <button class="button" id = "c" type="submit">Send Message</button> + </div> + </section> + <section> + <h2>Contact Us</h2> + <dl class="alt"> + <dt>Address</dt> + <dd>1234 Somewhere Road • Nashville, TN 00000 • USA</dd> + <dt>Phone</dt> + <dd>(000) 000-0000 x 0000</dd> + <dt>Email</dt> + <dd><a style="color:white;" href="#">information@untitled.tld</a></dd> + </dl> + <ul class="icons"> + <li><a style="color:white;" href="#" class="icon-twitter alt"><span class="label"></span></a></li> + <li><a style="color:white;" href="#" class="icon-facebook alt"><span class="label"></span></a></li> + <li><a style="color:white;" href="#" class="icon-instagram alt"><span class="label"></span></a></li> + <li><a style="color:white;" href="#" class="icon-github alt"><span class="label"></span></a></li> + <li><a style="color:white;" href="#" class="icon-dribbble alt"><span class="label"></span></a></li> + </ul> + Visit SciPy.in/ <a style="color:white;" href="">2009</a>/ + <a style="color:white;" href="">2010</a>/ + <a style="color:white;" href="">2011</a>/ + <a style="color:white;" href="">2012</a>/ + <a style="color:white;" href="">2013</a>/ + <a style="color:white;" href="">2014</a>/ + <a style="color:white;" href="">2015</a> + </section> + </footer> --> {% endblock %} @@ -88,6 +142,20 @@ <script src="assets/js/util.js"></script> <!--[if lte IE 8]><script src="assets/js/ie/respond.min.js"></script><![endif]--> <script src="assets/js/main.js"></script> +<script> +$(document).ready(function() { + var n1 = Math.round(Math.random() * 10 + 1); + var n2 = Math.round(Math.random() * 10 + 1); + $("#a").val(n1 + " + " + n2 + " = "); + $("#c").click(function() { + if (eval($("#a").val()) == $("#b").val()) { + } else { + alert("Write the correct value "); + } + }); +}); +</script> + </body> </html> diff --git a/website/templates/view-abstracts.html b/website/templates/view-abstracts.html index 0df72e7..5d64f05 100755 --- a/website/templates/view-abstracts.html +++ b/website/templates/view-abstracts.html @@ -20,7 +20,7 @@ {% block header %} <header id="header1"> - <h1>Scipy India 2016</h1> + <h1>SciPy India 2016</h1> <h2>View Proposals</h2> </header> {% endblock %} @@ -56,57 +56,75 @@ <div id="wrapper"> <div id="main"> <section id="content" class="main"> - - + {% if not proposals %} + <center> +You have not submitted any proposal. To submit proposal click <a href="{% url 'website:cfp' %}">here </a></center> +{% else %} - <form action="{% url 'website:delete' %}" method="post"> {% csrf_token %} + <form action="{% url 'website:delete' %}" method="post" onsubmit="return confirm('Sure?');"> {% csrf_token %} <table class="table"> <colgroup> {% if user.is_superuser %} <col width="10%" /> + <col width="30%" /> <col width="20%" /> <col width="60%" /> + <!-- <col width="10%" /> --> <col width="10%" /> <col width="10%" /> <col width="20%" /> {% else %} - <col width="10%" /> - <col width="60%" /> + <col width="20%" /> + <col width="70%" /> + <col width="10%" /> <col width="10%" /> <col width="10%" /> <col width="20%" /> {% endif %} </colgroup> + {% if user.is_superuser %} <th> <center>Select - {% if user.is_superuser %} + <th>Speaker {% endif %} - <th> <center>Title + <th> Type + <th> Title + {% if not user.is_superuser %} <th> View + {% endif %} <th> Comments - <th> Status</center> + <th> Rate + <th> Status {% for proposal in proposals %} <tr> + {% if user.is_superuser %} <td><center> <input type = "checkbox" name="delete_proposal" value = {{proposal.id}}></input></center></td> - {% if user.is_superuser %} + <td> {{ proposal.user.get_full_name}} </td> {% endif %} - <td style="white-space: nowrap; text-overflow:ellipsis; overflow: hidden; max-width:.5px;"> <center>{{proposal.title}}</td> + <td> {{proposal.proposal_type }} </td> + {% if user.is_superuser %} - <td ><a href="{% url 'website:comment_abstract' proposal.id %}">View</a> </td> + <td ><a 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 ><a href="{% url 'website:abstract_details' proposal.id %}">View</a> </td> {% endif %} - <td><center> 0 </center></td> + <td><center> {{ proposal.comments_set.count }} </center></td> + <td><center> {{ proposal.rate }} </center></td> <td> {% 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 = 'Resubmit' %} + <h5 style="color:grey;">{{proposal.status}}</h5> {% else %} <h5 style="color:blue;">{{proposal.status}}</h5> {% endif %} @@ -115,12 +133,71 @@ </tr> {% endfor %} </table> - <center><input type="submit" value="Delete" name="delete"/></center> + {% if user.is_superuser %} + <center><input type="submit" id="delete" class ="button special" style="background:#D44727;" value="Delete" name="delete"/> + <input type="submit" id="dump" class ="button special" style="background:#D44727;" value="Dump" name="dump"/></center> + + {% endif %} </form> + {% endif %} + + </section> </div> + + <!-- <footer id="footer"> + <section id="contact"> + <h2>Write to Us</h2> + <p>Feel free to send us an email if you have any questions.</p> + <form id="contact" action="" class="form" role="form" method=POST enctype="multipart/form-data">{% csrf_token %} + <div class="col-md-6 form-group"> + <input class="form-control" id="name" name="name" placeholder="Name" type="text" required /> + </div> + <div class="col-md-6 form-group"> + <input class="form-control" id="email" name="email" placeholder="Email" type="email" required /> + </div> + <br><br> + <textarea class="form-control" id="message" name="message" placeholder="Message" rows="5"></textarea> + <br> + <div class = "col-md-3"> + <input class="form-control" style="color:black;" readonly type="text" id="a" /> + </div> + <div class = "col-md-3"> + <input placeholder = "Answer" class="form-control" type="text" id="b"/> + </div> + <div class = "col-md-3"> + <button class="button" id = "c" type="submit">Send Message</button> + </div> + </section> + <section> + <h2>Contact Us</h2> + <dl class="alt"> + <dt>Address</dt> + <dd>1234 Somewhere Road • Nashville, TN 00000 • USA</dd> + <dt>Phone</dt> + <dd>(000) 000-0000 x 0000</dd> + <dt>Email</dt> + <dd><a style="color:white;" href="#">information@untitled.tld</a></dd> + </dl> + <ul class="icons"> + <li><a style="color:white;" href="#" class="icon-twitter alt"><span class="label"></span></a></li> + <li><a style="color:white;" href="#" class="icon-facebook alt"><span class="label"></span></a></li> + <li><a style="color:white;" href="#" class="icon-instagram alt"><span class="label"></span></a></li> + <li><a style="color:white;" href="#" class="icon-github alt"><span class="label"></span></a></li> + <li><a style="color:white;" href="#" class="icon-dribbble alt"><span class="label"></span></a></li> + </ul> + Visit SciPy.in/ <a style="color:white;" href="">2009</a>/ + <a style="color:white;" href="">2010</a>/ + <a style="color:white;" href="">2011</a>/ + <a style="color:white;" href="">2012</a>/ + <a style="color:white;" href="">2013</a>/ + <a style="color:white;" href="">2014</a>/ + <a style="color:white;" href="">2015</a> + </section> + </footer> --> + {% endblock %} <!-- Scripts --> @@ -132,13 +209,19 @@ <!--[if lte IE 8]><script src="assets/js/ie/respond.min.js"></script><![endif]--> <script src="assets/js/main.js"></script> - <script> -function hello(){ - alert('hi'); -} +$(document).ready(function() { + var n1 = Math.round(Math.random() * 10 + 1); + var n2 = Math.round(Math.random() * 10 + 1); + $("#a").val(n1 + " + " + n2 + " = "); + $("#c").click(function() { + if (eval($("#a").val()) == $("#b").val()) { + } else { + alert("Write the correct value "); + } + }); +}); </script> - </body> -</html> +</html>
\ No newline at end of file |