25 }) ; |
25 }) ; |
26 --> |
26 --> |
27 </script> |
27 </script> |
28 |
28 |
29 <div id="user" class="tab-meta"> |
29 <div id="user" class="tab-meta"> |
30 |
|
31 <form id="user_form" action="." method="post"> |
|
32 |
30 |
33 <ul class="sub_list"> |
31 <ul class="sub_list"> |
34 <li class="active_sub">{% blocktrans %}People' list{% endblocktrans %}</li> |
32 <li class="active_sub">{% blocktrans %}People' list{% endblocktrans %}</li> |
35 <li> / </li> |
33 <li> / </li> |
36 <li><a href="{% url user-add %}">{% blocktrans %}Add a new user{% endblocktrans %}</a></li> |
34 <li><a href="{% url user-add %}">{% blocktrans %}Add a new user{% endblocktrans %}</a></li> |
37 <li> / </li> |
35 <li> / </li> |
38 <li><a href="{% url user-mass-add %}">{% blocktrans %}Add users in bulk{% endblocktrans %}</a></li> |
36 <li><a href="{% url user-mass-add %}">{% blocktrans %}Add users in bulk{% endblocktrans %}</a></li> |
39 </ul> |
37 </ul> |
40 |
38 |
|
39 <form id="filter_form" action="." method="get"> |
|
40 <table summary="{% blocktrans %}People' list{% endblocktrans %}" class="large_table"> |
|
41 <tr> |
|
42 <td> |
|
43 {% if display_suspended_users %}<a href="?{% newparams 'display' '0' %}" title="{% blocktrans %}Hide suspended users{% endblocktrans %}">{% blocktrans %}Hide suspended users{% endblocktrans %}</a>{% else %}<a href="?{% newparams 'display' '1' %}" title="{% blocktrans %}Display suspended users{% endblocktrans %}">{% blocktrans %}Display suspended users{% endblocktrans %}</a>{% endif %} |
|
44 · |
|
45 {% blocktrans %}Filter by tag:{% endblocktrans %} |
|
46 <select id="tag_selected" name="tag_selected"> |
|
47 <option {% if not tag_selected %}selected="selected"{% endif %} value="0">- {% blocktrans %}All{% endblocktrans %} -</option> |
|
48 |
|
49 {% for tag in tag_list %} |
|
50 <option {% ifequal tag_selected tag.name %}selected="selected"{% endifequal %} value="{{ tag.name }}">{{ tag.name }}</option> |
|
51 {% endfor %} |
|
52 </select> |
|
53 </td> |
|
54 |
|
55 </tr> |
|
56 </table> |
|
57 </form> |
|
58 |
|
59 <script type="text/javascript"> |
|
60 <!-- |
|
61 $(function() { |
|
62 $("#tag_selected").change(function () { |
|
63 $("#filter_form").submit(); |
|
64 }); |
|
65 }) ; |
|
66 --> |
|
67 </script> |
|
68 |
|
69 <form id="user_form" action="." method="post"> |
|
70 |
41 <select id="bulk_actions" name="action"> |
71 <select id="bulk_actions" name="action"> |
42 <option selected="selected" value="-1">{% blocktrans %}Bulk Actions{% endblocktrans %}</option> |
72 <option selected="selected" value="-1">- {% blocktrans %}Bulk Actions{% endblocktrans %} -</option> |
43 <option value="disable">{% blocktrans %}Suspend access{% endblocktrans %}</option> |
73 <option value="disable">{% blocktrans %}Suspend access{% endblocktrans %}</option> |
44 <option value="enable">{% blocktrans %}Enable access{% endblocktrans %}</option> |
74 <option value="enable">{% blocktrans %}Enable access{% endblocktrans %}</option> |
45 {% for bulk_role in all_roles %} |
75 {% for bulk_role in all_roles %} |
46 <option value="role_{{ bulk_role.id }}">{% blocktrans with bulk_role as role_name %}Change role to {{ role_name }}{% endblocktrans %}</option> |
76 <option value="role_{{ bulk_role.id }}">{% blocktrans with bulk_role as role_name %}Change role to {{ role_name }}{% endblocktrans %}</option> |
47 {% endfor %} |
77 {% endfor %} |
48 </select> |
78 </select> |
49 |
79 |
50 <input name="apply" type="hidden" value="apply"/> |
80 <input name="apply" type="hidden" value="apply"/> |
51 <input name="apply_action" id="apply" type="button" value="{% blocktrans %}Apply{% endblocktrans %}" disabled="disabled"/> |
81 <input name="apply_action" id="apply" type="button" value="{% blocktrans %}Apply{% endblocktrans %}" disabled="disabled"/> |
52 |
|
53 {% if display_suspended_users %}<a href="?{% newparams 'display' '0' %}" title="{% blocktrans %}Hide suspended users{% endblocktrans %}">{% blocktrans %}Hide suspended users{% endblocktrans %}</a>{% else %}<a href="?{% newparams 'display' '1' %}" title="{% blocktrans %}Display suspended users{% endblocktrans %}">{% blocktrans %}Display suspended users{% endblocktrans %}</a>{% endif %} |
|
54 |
82 |
55 <script type="text/javascript"> |
83 <script type="text/javascript"> |
56 <!-- |
84 <!-- |
57 function check_activate_apply() { |
85 function check_activate_apply() { |
58 if (($("input[name^=check-]:checked").length > 0) && ($("#bulk_actions").val() != -1)) { |
86 if (($("input[name^=check-]:checked").length > 0) && ($("#bulk_actions").val() != -1)) { |