blob: 1ff3a771e37a05140133d080db72c653008fefcb (
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
|
{% 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> {{ proposal.title }}</p>
<p align="justify"><b>About Me: </b> {{ proposal.about_me |linebreaks }}</p>
{% if proposal.proposal_type == "ABSTRACT"%}
<p align="justify"><b>Abstract:</b>
{% else %}
<p align="justify"><b>Description:</b>
{% endif %}
{{ proposal.abstract | linebreaks }}
</p>
{% if proposal.prerequisite %}
<p align="justify"><b>Prerequisite: </b> {{ proposal.prerequisite| linebreaks }}</p>
{% endif%}
<p><b>Duration: </b> {{ proposal.duration }} {% if proposal.proposal_type == "ABSTRACT"%} Mins {% else %}Hours {%endif%}</p>
{% if proposal.proposal_type == "ABSTRACT"%}
<p><b>Tags: </b> {{ proposal.tags }}</p>
{% else %}
<p><b>Level: </b> {{ proposal.tags }}</p>
{% endif %}
{% if url %}
<b>Attachment: </b> <a href="{{ url }}" class="btn btn-info" target="_blank">{{ filename }}</a>
{% endif %}
<p><b>Date Created: </b> {{ proposal.date_created }}</p>
<form action="{% url 'website:rate_proposal' proposal.id %}" method='POST' enctype="multipart/form-data">
{% csrf_token %}
<b>Ratings :</b>
<select name="rating" style="width:70px;" >
<!--Call run() function-->
<option value="0">0</option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
<option value="8">8</option>
<option value="9">9</option>
<option value="10">10</option>
</select>
/10
<input class="btn btn btn_primary" type="submit" value="Rate">
</form>
<h4>Ratings</h4>
{% for rate in rates %}
<div>
{{rate.rating}}/10
by - {{ rate.user }}
</div>
{% endfor %}
<hr>
<h4>Comments</h4>
{% for comment in comments %}
<div>
<strong>Comment By:</strong>
{{ comment.user.first_name }} {{ comment.user.last_name }}
<p>{{ comment.comment| linebreaks }}</p>
<!-- {% if user == comment.user %}
<form action="" method='POST' enctype="multipart/form-data">
{% csrf_token %}
{% endif %} -->
</div>
<hr>
</form>
{% endfor %}
<form action="{% url 'website:comment_abstract' proposal.id %}" method='POST' enctype="multipart/form-data">
{% csrf_token %}
<textarea rows="5" cols="100" id="comment" class= "comment" name="comment" placeholder = "Add commnet here..."></textarea><br/>
<input class="button special" type="submit" value="Comment">
</form>
<!-- <form action="{% url 'website:status' proposal.id %}" method='POST'>{% csrf_token %}
<input type="submit" class="button special" style="background:green" value="Accept" name="accept"/>
<input type="submit" class="button special" style="background:red "value="Reject" name="reject"/>
<input type="submit" class="button special" style="background:grey "value="Resubmit" name="resubmit"/>
</form>
-->
</div>
{% endblock %}
{% include 'footer.html' %}
</body>
</html>
|