diff options
author | Leif Johansson <leifj@sunet.se> | 2011-03-03 23:28:11 +0100 |
---|---|---|
committer | Leif Johansson <leifj@sunet.se> | 2011-03-03 23:28:11 +0100 |
commit | d60a62a68a5c3442a6b464cca1c1a218d57d8ecc (patch) | |
tree | bc7f4d62751fff095bfcd547a95714b19e5b5487 /templates/apps/name/addace.html | |
parent | 5bf172664d789d10781441e2a812f626c15c8da6 (diff) |
new acl UI
Diffstat (limited to 'templates/apps/name/addace.html')
-rw-r--r-- | templates/apps/name/addace.html | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/templates/apps/name/addace.html b/templates/apps/name/addace.html new file mode 100644 index 0000000..17d8362 --- /dev/null +++ b/templates/apps/name/addace.html @@ -0,0 +1,51 @@ +{% extends "edit_fieldsets.html" %} +{% load permdisplay %} +{% block widgets %} + $('#wizard').formwizard({ + validationEnabled: true, + focusFirstInput: true, + textSubmit: "Finish", + validationOptions: { + rules: { + subject_label: 'required' + } + } + }); + $('#id_subject').autocomplete({ + source: "/name/search.json", + focus: function(event, ui) { + $('#id_subject').val(ui.item.label); + return false; + }, + select: function(event, ui) { + $('#id_subject').val(ui.item.label); + $('#id_dst').val(ui.item.value); + return false; + }, + minLength: 2, + open: function() { + $( this ).removeClass( "ui-corner-all" ).addClass( "ui-corner-top" ); + }, + close: function() { + $( this ).removeClass( "ui-corner-top" ).addClass( "ui-corner-all" ); + } + }); +{% endblock %} +{% block beforeform %} +<h1>Permissions on {{name.short}}</h1> +<div id="acl" style="margin-bottom: 20px;"> +{% for ace in acl %} +<div id="{{acc.id}}"> + <h3 class="listheader">Permissions for {{ace.dst|acldstdisplay}}</h3> + <div> + <div>{{ace.dst|acldstdisplay}} {{ace.data|permdisplay}}.</div> + <div class="rlist button"> + <ul> + <li><a href="/namelink/{{ace.id}}/remove">Remove</a></li> + </ul> + </div> + </div> +</div> +{% endfor %} +</div> +{% endblock %}
\ No newline at end of file |