Merge tag '0.10.2'
[ganeti_webmgr.git] / muddle_users / templates / group / add_user.html
blobd4594867a84bf6d9665530895ee5a559fa61720c
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 #}
8 {% if user_id %}
9 <script> </script>
10 {% else %}
11 <script>
12 $(function(){
13 autocomplete_user_search($("#id_user"),'{% url user-search %}?groups=False');
14 });
15 </script>
16 {% endif %}
18 <form class="add_user_form" method="post" action="{% url group-add-user group.id %}">
19 <ul id="errors"></ul>
20 <table>
21 {# only show user when one hasn't been preselected #}
22 {% if user_id %}
23 <input type="hidden" name="user" value="{{user_id|default:''}}"/>
24 {% else %}
25 <tr class="user"><td><b>{{form.user.label}}:</b></td><td>{{form.user}}</td></tr>
26 {% endif %}
27 </table>
28 <input type="submit" class="submit" value="Save"/>
29 </form>