summaryrefslogtreecommitdiff
path: root/website/templates/comment-abstract.html
diff options
context:
space:
mode:
authorprashantsinalkar2017-09-14 10:58:49 +0530
committerprashantsinalkar2017-09-14 10:58:49 +0530
commit64711bca6d8a0b312446320cbcbcab091dba1b12 (patch)
treed5e995e41821ff7436432bf840336917ad4c0d9c /website/templates/comment-abstract.html
parent1559e495f1f34b28fd7f4d7b15e5780c3577b7e9 (diff)
downloadSciPy2017-64711bca6d8a0b312446320cbcbcab091dba1b12.tar.gz
SciPy2017-64711bca6d8a0b312446320cbcbcab091dba1b12.tar.bz2
SciPy2017-64711bca6d8a0b312446320cbcbcab091dba1b12.zip
fixed html templates
Diffstat (limited to 'website/templates/comment-abstract.html')
-rwxr-xr-xwebsite/templates/comment-abstract.html277
1 files changed, 103 insertions, 174 deletions
diff --git a/website/templates/comment-abstract.html b/website/templates/comment-abstract.html
index e0176d3..1ff3a77 100755
--- a/website/templates/comment-abstract.html
+++ b/website/templates/comment-abstract.html
@@ -1,186 +1,115 @@
-{% extends 'base.html' %}
-{% load static %}
-
-<!DOCTYPE HTML>
-
-<html>
- <head>
- <title>{{ user.get_full_name|default:user.username }}</title>
- </head>
- <body>
-
- {% block header %}
- <header id="header1">
- <h1>Scipy India 2016</h1>
+{% load static %}
+<!DOCTYPE html>
+<html lang="en">
+ <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/favicon.ico'%}" 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 data-spy="scroll" data-target=".navbar" data-offset="50">
+ {% include 'navbar.html' %}
+ {% block content %}
+ <div class="container">
+ <p>
+ <center>
+ {% if proposal.proposal_type == "ABSTRACT"%}
+ <h2>Abstract Details</h2>
+ {% else %}
+ <h2>Workshop Details</h2>
+ {% endif %}
+ </center>
+ </p>
+ <h3>{{ proposal.user.first_name }} {{ proposal.user.last_name }}</h3>
+ <p><b>Title: </b>&nbsp;{{ proposal.title }}</p>
+ <p align="justify"><b>About Me: </b>&nbsp;{{ proposal.about_me |linebreaks }}</p>
+ {% if proposal.proposal_type == "ABSTRACT"%}
+ <p align="justify"><b>Abstract:</b>&nbsp;
+ {% else %}
+ <p align="justify"><b>Description:</b>&nbsp;
+ {% endif %}
+ {{ proposal.abstract | linebreaks }}
+ </p>
+ {% if proposal.prerequisite %}
+ <p align="justify"><b>Prerequisite: </b>&nbsp;{{ proposal.prerequisite| linebreaks }}</p>
+ {% endif%}
+ <p><b>Duration: </b>&nbsp;{{ proposal.duration }} {% if proposal.proposal_type == "ABSTRACT"%} Mins {% else %}Hours {%endif%}</p>
{% if proposal.proposal_type == "ABSTRACT"%}
- <h2>Abstract Details</h2>
+ <p><b>Tags: </b>&nbsp;{{ proposal.tags }}</p>
{% else %}
- <h2>Workshop Details</h2>
+ <p><b>Level: </b>&nbsp;{{ proposal.tags }}</p>
{% endif %}
-</header>
-{% endblock %}
-
-{% block nav %}
-
-<div id="navbar-main">
- <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 %}
- <li><a href="{% url 'website:cfp' %}">{{ user.get_full_name|default:user.username }}</a>
- <li><a href="{% url 'auth:logout' %}?next=/2016/cfp">Logout</a></li>
- {% else %}
- <li><a href="{% url 'website:cfp' %}" >Login</a></li>
- {% endif %}
- </ul>
- </div>
- </div>
-</div>
-{% endblock %}
-
-{% block content %}
-
- <div id="wrapper">
- <div id="main">
- <section id="content" class="main">
- <h3>{{ proposal.user.first_name }} {{ proposal.user.last_name }}</h3>
- <p><b>Title: </b>&nbsp;{{ proposal.title }}</p>
- <p><b>About Me: </b>&nbsp;{{ proposal.about_me |linebreaks }}</p>
-
- {% if proposal.proposal_type == "ABSTRACT"%}
-
- <p><b>Abstract:</b>&nbsp;
- {% else %}
- <p><b>Description:</b>&nbsp;
- {% endif %}
- {{ proposal.abstract | linebreaks }}</p>
- {% if proposal.prerequisite %}
- <p><b>Prerequisite: </b>&nbsp;{{ proposal.prerequisite| linebreaks }}</p>
- {% endif%}
- <p><b>Duration: </b>&nbsp;{{ proposal.duration }} {% if proposal.proposal_type == "ABSTRACT"%} Mins {% else %}Hours {%endif%}</p>
- {% if proposal.proposal_type == "ABSTRACT"%}
- <p><b>Tags: </b>&nbsp;{{ proposal.tags }}</p>
- {% else %}
- <p><b>Level: </b>&nbsp;{{ proposal.tags }}</p>
- {% endif %}
- {% if url %}
- <b>Attachment: </b>&nbsp;<a href="{{ url }}" class="btn btn-info" target="_blank">{{ filename }}</a>
- {% endif %}
- <p><b>Date Created: </b>&nbsp;{{ proposal.date_created }}</p>
-
-
- <form action="{% url 'website:rate_proposal' proposal.id %}" method='POST' enctype="multipart/form-data"> {% csrf_token %}
- <b>Ratings :</b>
- <select name="rating" style="width:70px;" > <!--Call run() function-->
- <option value="0">0</option>
- <option value="1">1</option>
- <option value="2">2</option>
- <option value="3">3</option>
- <option value="4">4</option>
- <option value="5">5</option>
- <option value="6">6</option>
- <option value="7">7</option>
- <option value="8">8</option>
- <option value="9">9</option>
- <option value="10">10</option>
-
- </select> /10 &nbsp;
- <input class="btn btn btn_primary" type="submit" value="Rate">
- </form>
- <h4>Ratings</h4>
-
- {% for rate in rates %}
- <div>
- {{rate.rating}}/10
- by - {{ rate.user }}
- </div>
- {% endfor %}
-
-
- <hr>
- <h4>Comments</h4>
- {% for comment in comments %}
+ {% if url %}
+ <b>Attachment: </b>&nbsp;<a href="{{ url }}" class="btn btn-info" target="_blank">{{ filename }}</a>
+ {% endif %}
+ <p><b>Date Created: </b>&nbsp;{{ proposal.date_created }}</p>
+ <form action="{% url 'website:rate_proposal' proposal.id %}" method='POST' enctype="multipart/form-data">
+ {% csrf_token %}
+ <b>Ratings :</b>
+ <select name="rating" style="width:70px;" >
+ <!--Call run() function-->
+ <option value="0">0</option>
+ <option value="1">1</option>
+ <option value="2">2</option>
+ <option value="3">3</option>
+ <option value="4">4</option>
+ <option value="5">5</option>
+ <option value="6">6</option>
+ <option value="7">7</option>
+ <option value="8">8</option>
+ <option value="9">9</option>
+ <option value="10">10</option>
+ </select>
+ /10 &nbsp;
+ <input class="btn btn btn_primary" type="submit" value="Rate">
+ </form>
+ <h4>Ratings</h4>
+ {% for rate in rates %}
+ <div>
+ {{rate.rating}}/10
+ by - {{ rate.user }}
+ </div>
+ {% endfor %}
+ <hr>
+ <h4>Comments</h4>
+ {% for comment in comments %}
<div>
<strong>Comment By:</strong>
{{ comment.user.first_name }} {{ comment.user.last_name }}
- <p>{{ comment.comment| linebreaks }}</p>
- <!-- {% if user == comment.user %}
- <form action="" method='POST' enctype="multipart/form-data">
- {% csrf_token %}
- {% endif %} -->
+ <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" style="background:#d44727" 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>
- -->
- </section>
- </div>
- </div>
-
-{% endblock %}
-
- <!-- Scripts -->
- <script src="assets/js/jquery.min.js"></script>
- <script src="assets/js/jquery.scrollex.min.js"></script>
- <script src="assets/js/jquery.scrolly.min.js"></script>
- <script src="assets/js/skel.min.js"></script>
- <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>
-isFormHtml5Valid(form) {
- for(var el of form.querySelectorAll('input,textarea,select')){
- if(!el.checkValidity())
- return false;
- }
- return true;
-}
-
-mySubmitButton.onclick = function() {
- if(this.form && isFormHtml5Valid(this.form))
- this.disabled=true;
- this.form.submit();
-}</script>
-
-<script>
- function run() {
- value = document.getElementById("Ultra").value;
- document.getElementById("demo").innerHTML = "Hello JavaScript!";
-
- }
-</script>
+ </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>
+ {% endblock %}
+ {% include 'footer.html' %}
+ </body>
+</html>
-<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>