From e357598b8f62524c3c9c2f4008c4c0fba035c2db Mon Sep 17 00:00:00 2001 From: Leif Johansson Date: Tue, 10 May 2011 15:53:46 +0200 Subject: tagging --- src/templates/apps/room/list.html | 1 + src/templates/apps/room/tag.html | 21 ++++++++++++++++++ src/templates/edit.html | 45 +++++++++++++++++---------------------- 3 files changed, 41 insertions(+), 26 deletions(-) create mode 100644 src/templates/apps/room/tag.html (limited to 'src/templates') diff --git a/src/templates/apps/room/list.html b/src/templates/apps/room/list.html index 6c39e12..fb47ca1 100644 --- a/src/templates/apps/room/list.html +++ b/src/templates/apps/room/list.html @@ -34,6 +34,7 @@ diff --git a/src/templates/apps/room/tag.html b/src/templates/apps/room/tag.html new file mode 100644 index 0000000..d8c666e --- /dev/null +++ b/src/templates/apps/room/tag.html @@ -0,0 +1,21 @@ +{% extends "edit.html" %} +{% load prefix %} +{% load datehumanize %} +{% load roomurl %} +{% load prefix %} +{% block widgets %} + +{% endblock %} +{% block beforeform %} +

Tags for {{room.name}}

+ {% if tags %} + + {% else %} + There are no tags yet... + {% endif %} +
+{% endblock %} \ No newline at end of file diff --git a/src/templates/edit.html b/src/templates/edit.html index 961fe66..400a087 100644 --- a/src/templates/edit.html +++ b/src/templates/edit.html @@ -2,31 +2,24 @@ {% load prefix %} {% 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 }}
-
-
-
-
- - -
+

{{formtitle}}

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