forked from leftypol/leftypol
Merge pull request 'Set default values for ban form' (#62) from ban-form-defaults into config
Reviewed-on: https://git.leftypol.org/leftypol/leftypol/pulls/62
This commit is contained in:
commit
011bb40ebe
1 changed files with 7 additions and 7 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue