diff options
| author | Johan Berggren <jbn@nordu.net> | 2011-03-04 14:22:57 +0100 |
|---|---|---|
| committer | Johan Berggren <jbn@nordu.net> | 2011-03-04 14:22:57 +0100 |
| commit | 6613bbae1b7d3262fec64ae1c8da7d772c2e2b66 (patch) | |
| tree | 6418e55f8c8d228bc9faab7f70bd35a0751a1413 /templates/apps/tag/add.html | |
| parent | eee6cedbf9c1b3189d36b238613a47b0631a0666 (diff) | |
Added tagging on Memberships
Diffstat (limited to 'templates/apps/tag/add.html')
| -rw-r--r-- | templates/apps/tag/add.html | 33 |
1 files changed, 30 insertions, 3 deletions
diff --git a/templates/apps/tag/add.html b/templates/apps/tag/add.html index 378ebee..1325929 100644 --- a/templates/apps/tag/add.html +++ b/templates/apps/tag/add.html @@ -1,7 +1,34 @@ {% 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 tag to {{ type|escape }}</h1> + <h1>Add role to {{ type|escape }} {{ name }}</h1> <div class="ui-widget ui-widget-content ui-helper-reset ui-corner-all infopanel"> -{{ tagobj }} -</div> + <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 |
