1 {% extends
"menu_base.html" %}
3 {% block title %}{% trans
"Groups" %}{% endblock %}
5 <script type=
"text/javascript" src=
"{{STATIC_URL}}/js/jquery.ajax.delete.js"></script>
6 <script type=
"text/javascript" src=
"{{STATIC_URL}}/js/jquery.form.js"></script>
7 <script type=
"text/javascript">
8 $(document
).ready(function() {
10 $(".ajax_form").live("submit", function(){
12 $(this).ajaxSubmit({success
: update
});
17 $('#groups .delete').live("click", function(event
) {
18 event
.preventDefault();
19 var name
= $(this).parent().parent().children('.name').children('a').html();
20 if (confirm("Delete group: " + name
)) {
21 var id
= this.parentNode
.parentNode
.id
.substring(6);
24 if(code
==1) {$('#group_'+id
).remove();}
33 <h1 class=
"breadcrumb">Groups
</h1>
35 {% if user.is_superuser %}
<a id=
"add_group" href=
"{% url group-add %}" class=
"button add">Add Group
</a>{% endif %}
40 {% block group_headers %}{% endblock %}
43 {% for group in groups %}
44 {% block group_row %}{% include
"group/group_row.html" %}{% endblock %}