summaryrefslogtreecommitdiff
path: root/templates/apps/tag
diff options
context:
space:
mode:
Diffstat (limited to 'templates/apps/tag')
-rw-r--r--templates/apps/tag/add.html34
-rw-r--r--templates/apps/tag/modify.html23
2 files changed, 23 insertions, 34 deletions
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 %}
-<script>
- $(document).ready(function(){
- $("#taglist").tagit({
- existingTags: [{% for t in tagobj.tags %}'{{t}}',{% endfor%}],
- namePrefix: 'tags'
- });
- });
-</script>
-{% endblock %}
-
-{% block content %}
- <h1>Add role to {{ type|escape }} {{ name }}</h1>
- <div class="ui-widget ui-widget-content ui-helper-reset ui-corner-all infopanel">
- <h3 class="altheader">Current role{{ tagobj.tags|pluralize }} in this group</h3>
- {% for tag in tagobj.tags %}<b>{{ tag|escape }} </b>{% endfor %}
- <h3>Add</h3>
- <div class="altcontent">
- <form method="POST" action="">{% csrf_token %}
- <div style="margin-top: 20px;">
- <ul id="taglist"></ul>
- </div>
- <br/>
- <div class="button">
- <input type="submit" value="Save Changes" />
- <input type="button" onClick="history.go(-1)" value="Cancel"/>
- </div>
- </form>
- </div>
- </div>
-
-
-{% 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 %}
+ <div>
+ <h1>Modify {{tagtype|escape}} on {{type|escape}} {{name.short|escape}}</h1>
+ <form method="POST" class="bbq ui-helper-reset ui-widget ui-widget-content ui-corner-all formpadding">
+ <div style="margin-top: 20px;">
+ <ul id="taglist"></ul>
+ </div>
+ <div class="ilist button" style="padding-bottom: 10px;" >
+ <ul>
+ <li><input type="submit" value="Save Changes" /></li>
+ <li style="float: right;"><input type="button" onClick="history.go(-1)" value="Cancel"/></li>
+ </ul>
+ </div>
+ </form>
+ </div>
+{% endblock %} \ No newline at end of file