From 7ca77e22ed201c859ac6d3ed7a97624a9c965ea9 Mon Sep 17 00:00:00 2001 From: Leif Johansson Date: Fri, 4 Mar 2011 19:37:32 +0100 Subject: tagging works now --- templates/apps/tag/add.html | 34 ---------------------------------- templates/apps/tag/modify.html | 23 +++++++++++++++++++++++ 2 files changed, 23 insertions(+), 34 deletions(-) delete mode 100644 templates/apps/tag/add.html create mode 100644 templates/apps/tag/modify.html (limited to 'templates/apps/tag') diff --git a/templates/apps/tag/add.html b/templates/apps/tag/add.html deleted file mode 100644 index 1325929..0000000 --- a/templates/apps/tag/add.html +++ /dev/null @@ -1,34 +0,0 @@ -{% extends "tree.html" %} -{% block js %} - -{% endblock %} - -{% block content %} -

Add role to {{ type|escape }} {{ name }}

-
-

Current role{{ tagobj.tags|pluralize }} in this group

- {% for tag in tagobj.tags %}{{ tag|escape }} {% endfor %} -

Add

-
-
{% csrf_token %} -
-
    -
    -
    -
    - - -
    -
    -
    -
    - - -{% endblock %} \ No newline at end of file diff --git a/templates/apps/tag/modify.html b/templates/apps/tag/modify.html new file mode 100644 index 0000000..8218889 --- /dev/null +++ b/templates/apps/tag/modify.html @@ -0,0 +1,23 @@ +{% extends "tree.html" %} +{% block widgets %} + $("#taglist").tagit({ + existingTags: [{% for t in tagobj.tags %}'{{t}}',{% endfor %}], + namePrefix: 'tags' + }); +{% endblock %} +{% block content %} +
    +

    Modify {{tagtype|escape}} on {{type|escape}} {{name.short|escape}}

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