blob: 992ae91f9fa48a55dfac9ee6ae8adbbb78ad791a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
|
{% 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>
{% if proposal.proposal_type == "ABSTRACT"%}
<h2>Abstract Details</h2>
{% else %}
<h2>Workshop Details</h2>
{% 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> {{ proposal.title }}</p>
<p><b>About Me: </b> {{ proposal.about_me }}</p>
{% if proposal.proposal_type == "ABSTRACT"%}
<p><b>Abstract:</b>
{% else %}
<p><b>Description:</b>
{% endif %}
{{ proposal.abstract }}</p>
{% if proposal.prerequisite %}
<p><b>Prerequisite: </b> {{ proposal.prerequisite }}</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|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/>
<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>
<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>
|