1 {% comment %} Form for adding users {% endcomment %}
3 <link rel=
"stylesheet" type=
"text/css" href=
"{{SITE_ROOT}}/object_permissions_media/css/form.css"/>
4 <script type=
"text/javascript" src=
"{{SITE_ROOT}}/object_permissions_media/js/jquery.form.js"></script>
5 <script type=
"text/javascript" src=
"{{SITE_ROOT}}/object_permissions_media/js/autocomplete_user_search.js"></script>
7 {# only run autocomplete script if a user needs to be selected #}
13 autocomplete_user_search($("#id_user"),'{% url user-search %}?groups=False');
18 <form class=
"add_user_form" method=
"post" action=
"{% url group-add-user group.id %}">
21 {# only show user when one hasn't been preselected #}
23 <input type=
"hidden" name=
"user" value=
"{{user_id|default:''}}"/>
25 <tr class=
"user"><td><b>{{form.user.label}}:
</b></td><td>{{form.user}}
</td></tr>
28 <input type=
"submit" class=
"submit" value=
"Save"/>