]> git.openstreetmap.org Git - osqa.git/blob - forum/skins/default/templates/users/suspend_user.html
some cleanup on the listing of subscriptions and changing how we fetch the subscriptions
[osqa.git] / forum / skins / default / templates / users / suspend_user.html
1 {% load i18n %}
2
3 <table>
4     <caption><h2>{% trans "Suspend user" %}</h2></caption>
5     <tr>
6         <td>
7             <select name="bantype" id="bantype">
8                 <option value="indefinitely">{% trans "Indefinetly" %}</option>
9                 <option value="forxdays">{% trans "For X days" %}</option>
10             </select>
11         </td>
12     </tr>
13     <tr id="forxdays" style="display: none">
14         <td>
15             {% trans "Suspend for" %}<input type="text" size="3" style="width: 30px; height: 1.2em; margin: 0 0.5em 0 0.5em; font-size: 1em;" name="forxdays" value="3" />{% trans "days" %}
16         </td>
17     </tr>
18     <tr>
19         <td>
20             <p><b>{% trans "Public message" %}:</b></p>
21         </td>
22     </tr>
23     <tr>
24         <td>
25             <textarea rows="3" name="publicmsg" cols="35"></textarea><br />
26             <small>{% trans "This message will be visible through the user activity log."  %}</small>
27         </td>
28     </tr>
29     <tr>
30         <td>
31             <p><b>{% trans "Private message" %}:</b></p>
32         </td>
33     </tr>
34     <tr>
35         <td>
36             <textarea rows="3" name="privatemsg" cols="35"></textarea><br />
37             <small>{% trans "If set, only the suspended user will see this message."  %}</small>
38         </td>
39     </tr>
40 </table>
41 <script type="text/javascript">
42     $('#bantype').change(function() {
43         if ($(this).val() == 'forxdays') {
44             $('#forxdays').slideDown('fast');
45         } else {
46             $('#forxdays').slideUp('fast');
47         }
48     });
49 </script>