summaryrefslogtreecommitdiff
path: root/src/templates/apps/room/list.html
blob: 199dc8974ccf2adab3bf0566b81d6609909a8916 (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
{% extends "base.html" %}
{% load datehumanize %}
{% load roomurl %}
{% block widgets %}
    $("#rooms").accordion({
   		header: 'h3',
        active: false,
        event: "click", 
   		collapsible: true,
   		navigation: true,
   		animated: true
   	});
{% endblock %}
{% block content %}
	<h1>Your Rooms</h1>
	{% if rooms %}
	<div id="rooms">
		{% for r in rooms %}
		<div id="{{r.id}}">
		   <h3 class="listheader">{{r.name}}</h3>
		   <div>
		   	<p>Created by {{r.creator}} {{r.timecreated|datehumanize}}.</p>
		   	<p>Meeting room URL: <a href="{{r|roomurl}}">{{r|roomurl}}</a></p>
		   	<div class="buttons">
		   		<ul>
		   			<li><div class="button"><a href="/room/{{r.id}}/modify">Modify Room</a></li>
		   			<li><div class="button"><a href="/room/{{r.id}}/delete">Delete Room</a></li>
		   		</ul>
		   	</div>
		   </div>
		</div>
		{% endfor %}
	</div>
	{% else %}
	<p>You don't have any rooms listed right now...</p>
	{% endif %}
	<br/>
	<div class="buttons">
		<ul>
		   <li><div class="button"><a href="/room/create">Create a new room</a></div></li>
		   <!-- li><div class="button"><a href="/room/import">Modify an existing room</a></div></li -->
		</ul>
	</div>
{% endblock %}