blob: bcdf74f6b98cf52c3054aba2a39e89df6a8b9a77 (
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
|
{% 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/fevicon.png'%}" 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>
<h2>View Proposals</h2>
</center>
</p>
{% if not proposals %}
<center>
You have not submitted any proposal.<br> <br>
<a href="{% url 'website:submitcfp' %}" class ="btn btn-info" role="button"> Submit paper </a>
<a href="{% url 'website:submitcfw' %}" class ="btn btn-info" role="button">Submit workshop </a>
</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="{% url 'website:edit_proposal' proposal.id %}">{{proposal.status}}</a>
{% endif %}
{% else %}
<h5 style="color:blue;">{{proposal.status}}</h5>
{% endif %}
</td>
</tr>
{% endfor %}
</table>
</div>
</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>
{% endblock %}
{% include 'footer.html' %}
</body>
</html>
|