From c33af4c971f26fcf3e7eb61a6c3dd8e8af8418a6 Mon Sep 17 00:00:00 2001 From: Leif Johansson Date: Wed, 9 Feb 2011 11:06:55 +0100 Subject: restructure --- src/templates/apps/room/list.html | 44 ++++++++++++++++++++ src/templates/apps/room/view.html | 29 +++++++++++++ src/templates/base.html | 85 +++++++++++++++++++++++++++++++++++++++ src/templates/edit.html | 32 +++++++++++++++ src/templates/login.html | 9 +++++ 5 files changed, 199 insertions(+) create mode 100644 src/templates/apps/room/list.html create mode 100644 src/templates/apps/room/view.html create mode 100644 src/templates/base.html create mode 100644 src/templates/edit.html create mode 100644 src/templates/login.html (limited to 'src/templates') 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 %} +

Your Rooms

+ {% if rooms %} +
+ {% for r in rooms %} +
+

{{r.name}}

+
+

Created by {{r.creator}} {{r.timecreated|datehumanize}}.

+

Meeting room URL: {{r|roomurl}}

+ +
+
+ {% endfor %} +
+ {% else %} +

You don't have any rooms listed right now...

+ {% endif %} +
+
+ +
+{% 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 %} +

{{room.name}}

+ + + + + + + + + + + + + + + + + + + + + +
Name{{room.name}}
URL{% url meetingtools.apps.room.views.go room.id %}
Current users{{nusers}}
Self cleaning{{room.self_cleaning}}
Permission{{permission}}
+{% endblock %} \ No newline at end of file diff --git a/src/templates/base.html b/src/templates/base.html new file mode 100644 index 0000000..86dea54 --- /dev/null +++ b/src/templates/base.html @@ -0,0 +1,85 @@ +{% load prefix %} + + + + SUNET Meeting Tools + + + + + + + + + + + + + + + + + +
+
+
+ + + +
+ +
+ + {% block content %}{% endblock %} + + +
+
+
+
+
+
+ + + diff --git a/src/templates/edit.html b/src/templates/edit.html new file mode 100644 index 0000000..f896a52 --- /dev/null +++ b/src/templates/edit.html @@ -0,0 +1,32 @@ +{% extends "base.html" %} +{% block content %} + {% block beforeform %} + {% endblock %} +
+
+

{{formtitle}}

+ + {% for field in form %} + + + + + {% endfor %} +
+ {% if not field.is_hidden %} +
{{ field.label_tag }}
+ {% endif %} + {% if field.errors %} +
{{ field.errors }}
+ {% endif %} +
+
{{ field }}
+
+
+
+
+ + +
+
+{% endblock %} \ No newline at end of file diff --git a/src/templates/login.html b/src/templates/login.html new file mode 100644 index 0000000..e50e124 --- /dev/null +++ b/src/templates/login.html @@ -0,0 +1,9 @@ +{% extends "base.html" %} +{% load prefix %} +{% block headline %}Login{% endblock %} +{% block title %}SUNET Meeting Tools{% endblock %} +{% block content %} +

Welcome!

+

This is a technology preview of the SUNET Meeting Tools. Contact Johnny or Marcus for more info!

+
Login
+{% endblock %} \ No newline at end of file -- cgit v1.1