diff options
author | Leif Johansson <leifj@sunet.se> | 2011-02-09 11:06:55 +0100 |
---|---|---|
committer | Leif Johansson <leifj@sunet.se> | 2011-02-09 11:06:55 +0100 |
commit | c33af4c971f26fcf3e7eb61a6c3dd8e8af8418a6 (patch) | |
tree | 8cbdeaeb48e3bfb5f4dd7d3ab190f8b8be634479 /src/templates/apps | |
parent | 5f6b0000b9f611c56f42ff37f32003325c410947 (diff) |
restructure
Diffstat (limited to 'src/templates/apps')
-rw-r--r-- | src/templates/apps/room/list.html | 44 | ||||
-rw-r--r-- | src/templates/apps/room/view.html | 29 |
2 files changed, 73 insertions, 0 deletions
diff --git a/src/templates/apps/room/list.html b/src/templates/apps/room/list.html new file mode 100644 index 0000000..199dc89 --- /dev/null +++ b/src/templates/apps/room/list.html @@ -0,0 +1,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 %}
\ No newline at end of file diff --git a/src/templates/apps/room/view.html b/src/templates/apps/room/view.html new file mode 100644 index 0000000..df058f5 --- /dev/null +++ b/src/templates/apps/room/view.html @@ -0,0 +1,29 @@ +{% extends "base.html" %} +{% load datehumanize %} +{% block widgets %} +{% endblock %} +{% block content %} + <h3>{{room.name}}</h3> + <table border="0"> + <tr> + <td>Name</td> + <td>{{room.name}}</td> + </tr> + <tr> + <td>URL</td> + <td><a href="/go/{{r.id}}">{% url meetingtools.apps.room.views.go room.id %}</a></td> + </tr> + <tr> + <td>Current users</td> + <td>{{nusers}}</td> + </tr> + <tr> + <td>Self cleaning</td> + <td>{{room.self_cleaning}}</td> + </tr> + <tr> + <td>Permission</td> + <td>{{permission}}</td> + </tr> + </table> +{% endblock %}
\ No newline at end of file |