root / snf-astakos-app / astakos / im / templates / im / astakosgroup_list.html @ 59728d4e
History | View | Annotate | Download (15.7 kB)
1 |
{% extends "im/account_base.html" %} |
---|---|
2 |
|
3 |
{% load filters %} |
4 |
|
5 |
{% block page.body %} |
6 |
<div class="maincol {% block innerpage.class %}{% endblock %}"> |
7 |
<div class="projects"> |
8 |
<h2>PROJECTS </h2> |
9 |
{% if form %} |
10 |
<p>Search for existing Projects and join the ones you like. Please search by Project name. </p> |
11 |
<form action="{% url group_search %}" method="post" class="withlabels signup submit-inline">{% csrf_token %} |
12 |
{% include "im/form_render.html" %} |
13 |
<div class="form-row submit"> |
14 |
<input type="submit" class="submit altcol" value="SEARCH" /> |
15 |
{% if q %}<a href="{% url group_all %}">clear</a>{% endif %} |
16 |
</div>
|
17 |
</form>
|
18 |
|
19 |
<!--<form action="{% url group_all %}" method="post" class="link-like alone">{% csrf_token %}
|
20 |
<div class="form-row submit">
|
21 |
<input type="submit" class="submit altcol" value="clear" />
|
22 |
</div>
|
23 |
</form>
|
24 |
<-->
|
25 |
{% else %} |
26 |
|
27 |
<p>~okeanos gives the opportunity to Greek Academic or Research Organizations/Institutions/Faculty to run their own projects remotely on virtual infrastructure. Simple, fast and with minimal to no cost at all.
|
28 |
</p>
|
29 |
|
30 |
<div class="widjets"> |
31 |
<!--<a href="#" class="widjet-x" title="remove boxes">X</a>-->
|
32 |
<ul class="clearfix"> |
33 |
<li class="create"> |
34 |
<div>
|
35 |
<div class="wrap"> |
36 |
<p><a href="{% url group_add 'course' %}"><img alt="THINK ABOUT IT" src="/static/im/images/create.png"></a></p> |
37 |
<p class="txt">Create a new Project in seconds. Specify how many members it will have, which and how many virtual resources it will provide to its members. Describe its purpose. Submit your request and if accepted, you and your colleagues are ready to deploy! </p> |
38 |
<p><a href="{% url group_add 'default' %}">create a project ></a></p> |
39 |
<!--<p class="btn"><a href="{% url group_create_list %}" class="submit">CREATE</a></p>-->
|
40 |
</div>
|
41 |
</div>
|
42 |
</li>
|
43 |
<li class="join"> |
44 |
<div>
|
45 |
<div class="wrap"> |
46 |
<p><a href="{% url group_all %}"><img alt="THINK ABOUT IT" src="/static/im/images/join.png"></a></p> |
47 |
<p class="txt">Become a member of an existing Project and instantly gain access to the resources it has to offer you. Search for open Projects and join for free. Contact the closed Projects administrators, if you think they will accept you. In two words: try to Join now. </p> |
48 |
|
49 |
<p><a href="{% url group_all %}">join a project ></a></p> |
50 |
</div>
|
51 |
</div>
|
52 |
</li>
|
53 |
</ul>
|
54 |
</div>
|
55 |
|
56 |
{% endif %} |
57 |
{% with page_obj.object_list as object_list %} |
58 |
<!-- Search group -->
|
59 |
{% if object_list %} |
60 |
<div class="full-dotted"> |
61 |
<form method="GET" class="minimal" action="#searchResults"> |
62 |
<div class="form-row"> |
63 |
<select name="sorting" onchange="this.form.submit();" class="dropkicked" tabindex="1"> |
64 |
<option value="">Sort by Name</option> |
65 |
<option value="issue_date" {% if == 'issue_date' %}selected{% endif %}>Sort by Issue date</option> |
66 |
<option value="expiration_date" {% if == 'expiration_date' %}selected{% endif %}>Sort by Expiration Date</option> |
67 |
<option value="approved_members_num" {% if == 'approved_members_num' %}selected{% endif %}>Sort by Participants</option> |
68 |
<option value="moderation_enabled" {% if == 'moderation_enabled' %}selected{% endif %}>Sort by Moderation</option> |
69 |
</select>
|
70 |
<input type="hidden" name="q" value="{{q}}"/> |
71 |
</div>
|
72 |
</form>
|
73 |
<table class="alt-style complex" id="searchResults"> |
74 |
<caption>
|
75 |
{% if q %}SEARCH RESULTS{% else %}ALL PROJECTS{% endif %} |
76 |
</caption>
|
77 |
<thead>
|
78 |
<tr>
|
79 |
<th>Name</th> |
80 |
<!--<th>Type</th>-->
|
81 |
<th>Issued</th> |
82 |
<th>Expires</th> |
83 |
|
84 |
<th>Enrolled</th> |
85 |
|
86 |
|
87 |
<th>Status</th> |
88 |
<th> </th> |
89 |
<th>Moderated</th> |
90 |
<!-- <th> </th>-->
|
91 |
|
92 |
</tr>
|
93 |
</thead>
|
94 |
<tbody>
|
95 |
{% for o in object_list %} |
96 |
<tr class="{% cycle 'tr1' 'tr2' %}"> |
97 |
<td style="width:22%"><a href="{% url group_detail o.id %}" title="visit group page">{{o.groupname|rcut:"/"|truncatename}}</a></td> |
98 |
<!--td>{{o.kindname|capfirst}}</td-->
|
99 |
<td style="width:13%">{{o.issue_date|date:"d/m/Y"}}</td> |
100 |
<td style="width:13%">{{o.expiration_date|date:"d/m/Y"}}</td> |
101 |
<td style="width:13%">{{o.approved_members_num}}</td> |
102 |
|
103 |
<td style="width:15%"> |
104 |
<div class="msg-wrap"> |
105 |
|
106 |
{% if o.is_member %} |
107 |
{% if o.membership_approval_date %} |
108 |
|
109 |
|
110 |
{% if not o.is_owner %} |
111 |
Registered |
112 |
|
113 |
{% else %} |
114 |
Owner |
115 |
{% endif %} |
116 |
|
117 |
|
118 |
|
119 |
{% else %} |
120 |
Pending |
121 |
{% endif %} |
122 |
{% else %} |
123 |
Not member |
124 |
|
125 |
|
126 |
{% endif %} |
127 |
</div>
|
128 |
</td>
|
129 |
<td style="width:15%"> |
130 |
<div class="msg-wrap"> |
131 |
|
132 |
{% if o.is_member %} |
133 |
{% if o.membership_approval_date %} |
134 |
|
135 |
|
136 |
{% if not o.is_owner %} |
137 |
|
138 |
<form action="{% url group_leave o.id %}" method="post" class="link-like">{% csrf_token %} |
139 |
<input type="submit" value="x leave group" class="leave"/> |
140 |
</form>
|
141 |
<div class="dialog"> |
142 |
Are you sure you what to leave this group?<br>
|
143 |
Name: <a href="{% url group_detail o.id %}" title="visit group page">{{o.groupname|rcut:"/" }}</a><br> |
144 |
{% if o.desc %}Description:{{o.desc|truncatewords:30}}{% endif %}<br><br> |
145 |
|
146 |
<a href="#" class="yes submit">Yes</a> <a href="#" class="no submit">No</a> |
147 |
</div>
|
148 |
{% else %} |
149 |
|
150 |
{% endif %} |
151 |
|
152 |
|
153 |
|
154 |
{% else %} |
155 |
|
156 |
{% endif %} |
157 |
{% else %} |
158 |
|
159 |
<form action="{% url group_join o.id %}" method="post" class="link-like">{% csrf_token %} |
160 |
<input type="submit" value="+ join group" class="join_group join" /> |
161 |
</form>
|
162 |
<div class="dialog"> |
163 |
Are you sure you what to join this group?<br>
|
164 |
Name: <a href="{% url group_detail o.id %}" title="visit group page">{{o.groupname|rcut:"/" }}</a><br> |
165 |
{% if o.desc %}Description:{{o.desc|truncatewords:30}}{% endif %}<br><br> |
166 |
|
167 |
<a href="#" class="yes submit">Yes</a> <a href="#" class="no submit">No</a> |
168 |
</div>
|
169 |
|
170 |
{% endif %} |
171 |
</div>
|
172 |
</td>
|
173 |
<td class="centered" style="width:9%">{% if o.moderation_enabled%}Yes{% else %}No{% endif %}</td> |
174 |
<!--td><a href="#" class="more-info" title="more info">+ more info</a></td-->
|
175 |
</tr>
|
176 |
<tr class="{% cycle 'tmore1' 'tmore2' %}" style="display:none"> |
177 |
<td colspan="7" class="info-td"> |
178 |
<div>
|
179 |
<p>{{o.desc}}</p> |
180 |
<p>{% if o.homepage%}
|
181 |
Group's home page: <a target="_blank" href="{{ o.homepage }}">{{ o.homepage }}</a> |
182 |
|
183 |
{% endif %} |
184 |
</p>
|
185 |
</div>
|
186 |
</td>
|
187 |
</tr>
|
188 |
{% endfor %} |
189 |
</tbody>
|
190 |
</table>
|
191 |
|
192 |
</div>
|
193 |
|
194 |
|
195 |
<div class="pagination"> |
196 |
<p class="next-prev"> |
197 |
{% if page_obj.has_previous %} |
198 |
<a href="?page={{ page_obj.previous_page_number }}{% if q %}&q={{q}}{% endif %}{% if sorting %}&sorting={{sorting}}{% endif %}">previous</a> |
199 |
{% endif %} |
200 |
{% if page_obj.has_next %} |
201 |
<a href="?page={{ page_obj.next_page_number }}{% if q %}&q={{q}}{% endif %}{% if sorting %}&sorting={{sorting}}{% endif %}">next</a> |
202 |
{% endif %} |
203 |
</p>
|
204 |
<p class="nums"> |
205 |
<span class="current"> |
206 |
Page {{ page_obj.number }} of {{ paginator.num_pages }} |
207 |
</span>
|
208 |
</p>
|
209 |
</div>
|
210 |
<!-- Group listing -->
|
211 |
{% else %} |
212 |
{% if not form %} |
213 |
{% with page|concat:sorting as args %} |
214 |
{% with q|paginate:args as page_obj %} |
215 |
|
216 |
<div > |
217 |
<form method="GET" class="minimal" action="#allGroups" id="mygroups"> |
218 |
<div class="form-row"> |
219 |
<select name="sorting" class="dropkicked" tabindex="1"> |
220 |
<option value="">Sort by Name</option> |
221 |
<!--<option value="kindname" {% if sorting == 'kindname' %}selected{% endif %}>Type</option>-->
|
222 |
<option value="issue_date" {% if == 'issue_date' %}selected{% endif %}>Sort by Issue date</option> |
223 |
<option value="expiration_date" {% if == 'expiration_date' %}selected{% endif %}>Sort by Expiration Date</option> |
224 |
<option value="approved_members_num" {% if == 'approved_members_num' %}selected{% endif %}>Sort by Participants</option> |
225 |
<option value="moderation_enabled" {% if == 'moderation_enabled' %}selected{% endif %}>Sort by Moderation</option> |
226 |
</select>
|
227 |
</div>
|
228 |
</form>
|
229 |
<table class="alt-style complex" id="allGroups"> |
230 |
<caption>MY PROJECTS</caption> |
231 |
<thead>
|
232 |
<tr>
|
233 |
<th>Name</th> |
234 |
<!--th>Type</th-->
|
235 |
<th>Issued</th> |
236 |
<th>Expires</th> |
237 |
<th>Enrolled</th> |
238 |
<th>Status</th> |
239 |
<th> </th> |
240 |
<th class="centered">Moderated</th> |
241 |
<!-- <th> </th>-->
|
242 |
|
243 |
</tr>
|
244 |
</thead>
|
245 |
<tbody>
|
246 |
{% for o in page_obj.object_list %} |
247 |
<tr class="{% cycle 'tr1' 'tr2' %}"> |
248 |
<td style="width:22%"><a href="{% url group_detail o.id %}" title="visit group page">{{o.groupname|rcut:"/"|truncatename }}</a></td> |
249 |
<!--td>{{o.kindname|capfirst}}</td-->
|
250 |
<td style="width:13%">{{o.issue_date|date:"d/m/Y"}}</td> |
251 |
<td style="width:13%">{{o.expiration_date|date:"d/m/Y"}}</td> |
252 |
<td style="width:13%">{{ o.approved_members_num }}</td> |
253 |
<td style="width:15%"> |
254 |
<div class="msg-wrap"> |
255 |
{% if user.email = o.groupowner %} |
256 |
{% if o.is_enabled %} |
257 |
Owner |
258 |
{% else %} |
259 |
Pending |
260 |
{% endif %} |
261 |
{% else %} |
262 |
{% if o.is_enabled %} |
263 |
{% if o.membership_status %} |
264 |
Registered |
265 |
|
266 |
{% else %} |
267 |
Pending |
268 |
{% endif %} |
269 |
{% else %} |
270 |
- |
271 |
{% endif %} |
272 |
{% endif %} |
273 |
|
274 |
</div>
|
275 |
</td>
|
276 |
<td style="width:15%"> |
277 |
<div class="msg-wrap"> |
278 |
{% if user.email = o.groupowner %} |
279 |
{% if o.is_enabled %} |
280 |
|
281 |
{% else %} |
282 |
|
283 |
{% endif %} |
284 |
{% else %} |
285 |
{% if o.is_enabled %} |
286 |
{% if o.membership_status %} |
287 |
|
288 |
<form action="{% url group_leave o.id %}" method="post" class="link-like">{% csrf_token %} |
289 |
<input type="submit" value="x leave" class="leave" /> |
290 |
</form>
|
291 |
<div class="dialog"> |
292 |
Are you sure you what to leave this group?<br>
|
293 |
Name: <a href="{% url group_detail o.id %}" title="visit group page">{{o.groupname|rcut:"/" }}</a><br> |
294 |
{% if o.desc %}Description:{{o.desc|truncatewords:30}}{% endif %}<br><br> |
295 |
|
296 |
<a href="#" class="yes submit">Yes</a> <a href="#" class="no submit">No</a> |
297 |
</div>
|
298 |
{% else %} |
299 |
|
300 |
{% endif %} |
301 |
{% else %} |
302 |
|
303 |
{% endif %} |
304 |
{% endif %} |
305 |
|
306 |
</div>
|
307 |
</td>
|
308 |
<td class="centered" style="width:9%">{% if o.moderation_enabled%}Yes{% else %}No{% endif %}</td> |
309 |
<!-- <td><a href="#" class="more-info" title="more info">+ more info </a></td>-->
|
310 |
</tr>
|
311 |
<tr class="{% cycle 'tmore1' 'tmore2' %}" style="display:none"> |
312 |
<td colspan="8" class="info-td"> |
313 |
<div>
|
314 |
<p>{{o.desc}}</p> |
315 |
<p>{% if o.homepage%}
|
316 |
Group's home page: <a href="{{ o.homepage }}">{{ o.homepage }}</a> |
317 |
{% endif %} |
318 |
</p>
|
319 |
</div>
|
320 |
</td>
|
321 |
</tr>
|
322 |
{% endfor %} |
323 |
</tbody>
|
324 |
</table>
|
325 |
</div>
|
326 |
<div class="pagination"> |
327 |
<p class="next-prev"> |
328 |
{% if page_obj.has_previous %} |
329 |
<a href="?page={{ page_obj.previous_page_number }}{% if sorting %}&sorting={{ sorting }}{% endif%}#allGroups">previous</a> |
330 |
{% endif %} |
331 |
{% if page_obj.has_next %} |
332 |
<a href="?page={{ page_obj.next_page_number }}{% if sorting %}&sorting={{ sorting }}{% endif%}#allGroups">next</a> |
333 |
{% endif %} |
334 |
</p>
|
335 |
<p class="nums"> |
336 |
<span class="current"> |
337 |
Page {{ page_obj.number }} of {{ page_obj.paginator.num_pages }} |
338 |
</span>
|
339 |
</p>
|
340 |
</div>
|
341 |
|
342 |
{% endwith %} |
343 |
{% endwith %} |
344 |
{% endif %} |
345 |
{% if form %} |
346 |
{% if q %} |
347 |
<h2>No projects found!</h2> |
348 |
{% endif %} |
349 |
{% endif %} |
350 |
{% endif %} |
351 |
{% endwith %} |
352 |
</div>
|
353 |
</div>
|
354 |
{% endblock %} |