summaryrefslogtreecommitdiff
path: root/templates/apps
diff options
context:
space:
mode:
Diffstat (limited to 'templates/apps')
-rw-r--r--templates/apps/name/name.html4
-rw-r--r--templates/apps/tag/add.html34
2 files changed, 38 insertions, 0 deletions
diff --git a/templates/apps/name/name.html b/templates/apps/name/name.html
index 32dad82..e00a887 100644
--- a/templates/apps/name/name.html
+++ b/templates/apps/name/name.html
@@ -1,6 +1,7 @@
{% extends "tree.html" %}
{% load datehumanize %}
{% load userdisplay %}
+{% load tagging_tags %}
{% block widgets %}
$("#memberships").accordion({
header: 'h3',
@@ -62,7 +63,10 @@
<div class="rlist">
<ul>
{% if user == m.user %}
+ <b>Role{{ m.tags|pluralize }} in this group</b><br>
+ {% for tag in m.tags %}<ul>{{ tag|escape }}</ul>{% endfor %}
<li class="button"><a href="/name/{{name.id}}/leave/{{m.user.username}}">Leave Group</a></li>
+ <li class="button"><a href="/tag/membership/{{m.id}}/add">Add role</a></li>
{% else %}
{% if render.kick %}
<li class="button"><a href="/name/{{name.id}}/leave/{{m.user.username}}">Remove from Group</a></li>
diff --git a/templates/apps/tag/add.html b/templates/apps/tag/add.html
new file mode 100644
index 0000000..1325929
--- /dev/null
+++ b/templates/apps/tag/add.html
@@ -0,0 +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 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