Browse Source

Merge pull request 'Set default values for ban form' (#62) from ban-form-defaults into config

Reviewed-on: #62
pull/63/head
discomrade 1 year ago
parent
commit
680c91764e
  1. 14
      templates/mod/ban_form.html

14
templates/mod/ban_form.html

@ -61,25 +61,25 @@
<label for="length">{% trans 'Length' %}</label>
</th>
<td>
<input type="text" name="length" id="length" size="20" maxlength="43">
<span class="unimportant">(eg. "2d1h30m" or "2 days")</span></td>
<input type="text" name="length" id="length" size="20" maxlength="43" value="1h">
<span class="unimportant">(eg. "2d1h30m" or "2 days", empty is permaban)</span></td>
</tr>
<tr>
<th>{% trans 'Board' %}</th>
<td>
<ul style="list-style:none;padding:2px 5px">
<li>
<input type="radio" name="board" value="*" id="ban-allboards" checked>
<input type="radio" name="board" value="*" id="ban-allboards"{% if not board %} checked{% endif %}>
<label style="display:inline" for="ban-allboards">
<em>{% trans 'all boards' %}</em>
</label>
</li>
{% for board in boards %}
{% for b 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|e }}
<input type="radio" name="board" value="{{ b.uri }}" id="ban-board-{{ b.uri }}"{% if board == b.uri %} checked{% endif %}>
<label style="display:inline" for="ban-board-{{ b.uri }}">
{{ config.board_abbreviation|sprintf(b.uri) }} - {{ b.title|e }}
</label>
</li>
{% endfor %}

Loading…
Cancel
Save