1 {% extends
"object_permissions/permissions/users.html" %}
4 <script type=
"text/javascript">
5 $(document
).ready(function() {
7 $(".quota").live("click", function() {
8 // destroy old qtip before showing new one
9 $('.qtip').qtip('destroy');
13 title
: {text
:'{% trans "Quota" %}: ', button
:'close'},
15 position
: {corner
:{ target
:"topMiddle", tooltip
:"bottomMiddle"}},
22 show
: {when
:false, ready
:true},
23 hide
: {fixed
: true, when
:false},
24 api
:{onShow:function(){
25 $("#quota_form input[type!=hidden], .ajax_form select").first().focus();
32 $("#quota_form").live("submit", function(){
34 $(this).ajaxSubmit({success
: update_user_permissions
});
38 // Delete quota button
39 $('#quota_form .delete').live("click", function() {
40 id
= $('#quota_form input[name=user]').val()
41 $.post('{% url cluster-quota object.slug %}'+id
,
42 {user
:id
, 'delete':true}, update_user_permissions
);
48 {%block table_headers%}
<th>{% trans
"Quota" %}
</th>{%endblock%}
49 {%block user_row%}{% include
"cluster/user_row.html" %}{%endblock%}
50 {%block group_row%}{% include
"cluster/group_row.html" %}{%endblock%}