diff options
| author | Michael Save <savetheinternet@tinyboard.org> | 2012-04-13 09:29:08 +1000 |
|---|---|---|
| committer | Michael Save <savetheinternet@tinyboard.org> | 2012-04-13 09:29:08 +1000 |
| commit | 78f3ea783394dba14b51b27f7f2db3974ce8b8b3 (patch) | |
| tree | 82e89fa261d1710e069c787db4944a928759fdcb /templates/mod/ban_form.html | |
| parent | f9ca74d763e570bd8004ec432c8d9c69d6c5d9e7 (diff) | |
View IP adress page, ban form.
Diffstat (limited to 'templates/mod/ban_form.html')
| -rw-r--r-- | templates/mod/ban_form.html | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/templates/mod/ban_form.html b/templates/mod/ban_form.html new file mode 100644 index 00000000..1b94e725 --- /dev/null +++ b/templates/mod/ban_form.html @@ -0,0 +1,59 @@ +<form action="?/ban" method="post"> + {% if redirect %} + <input type="hidden" name="redirect" value="{{ redirect|e }}"> + {% endif %} + + <table> + <tr> + <th> + <label for="ip">IP <span class="unimportant">(or subnet)</span></label> + </th> + <td> + <input type="text" name="ip" id="ip" size="30" maxlength="40" value="{{ ip }}"> + </td> + </tr> + <tr> + <th> + <label for="reason">Reason</label> + </th> + <td> + <textarea name="reason" id="reason" rows="5" cols="30">{{ reason|e }}</textarea> + </td> + </tr> + <tr> + <th> + <label for="length">Length</label> + </th> + <td> + <input type="text" name="length" id="length" size="20" maxlength="40"> + <span class="unimportant">(eg. "2d1h30m" or "2 days")</span></td> + </tr> + <tr> + <th>Board</th> + <td> + <ul style="list-style:none;padding:2px 5px"> + <li> + <input type="radio" name="board" value="*" id="ban-allboards" checked> + <label style="display:inline" for="ban-allboards"> + <em>all boards</em> + </label> + </li> + + {% for board in boards %} + <li> + <input type="radio" name="board" value="{{ board.uri }}" id="ban-board-{{ board.uri }}"> + <label style="display:inline" for="ban-board-{{ board.uri }}"> + {{ config.board_abbreviation|sprintf(board.uri) }} - {{ board.title }} + </label> + </li> + {% endfor %} + </ul> + </td> + </tr> + <tr> + <td></td> + <td><input name="new_ban" type="submit" value="New Ban"></td> + </tr> + </table> +</form> + |
