summaryrefslogtreecommitdiff
path: root/templates/post_form.html
diff options
context:
space:
mode:
authorSavetheinternet <savetheinternet@tinyboard.org>2011-11-23 21:24:06 +1100
committerSavetheinternet <savetheinternet@tinyboard.org>2011-11-23 21:24:06 +1100
commita83d584255012ee072486c187720ec5849efe1a3 (patch)
tree0953fbfba9b6f14b0bd6bffbc16f4e0dcad12d3a /templates/post_form.html
parentcc8d465297b7668ac24c2be286d569d9f850776c (diff)
Ability to disable certain superfluous fields. ("Forced anonymous")
Diffstat (limited to 'templates/post_form.html')
-rw-r--r--templates/post_form.html12
1 files changed, 6 insertions, 6 deletions
diff --git a/templates/post_form.html b/templates/post_form.html
index 7ef133ed..e13b049b 100644
--- a/templates/post_form.html
+++ b/templates/post_form.html
@@ -4,22 +4,22 @@
<input type="hidden" name="board" value="{{ board.uri }}" />
{% if mod %}<input type="hidden" name="mod" value="1" />{% endif %}
<table>
- <tr>
+ {% if not config.field_disable_name %}<tr>
<th>
{% trans %}Name{% endtrans %}
</th>
<td>
<input type="text" name="name" size="25" maxlength="50" autocomplete="off" />
</td>
- </tr>
- <tr>
+ </tr>{% endif %}
+ {% if not config.field_disable_email %}<tr>
<th>
{% trans %}Email{% endtrans %}
</th>
<td>
<input type="text" name="email" size="25" maxlength="40" autocomplete="off" />
</td>
- </tr>
+ </tr>{% endif %}
<tr>
<th>
{% trans %}Subject{% endtrans %}
@@ -86,7 +86,7 @@
</td>
</tr>
{% endif %}
- <tr>
+ {% if not config.field_disable_password %}<tr>
<th>
{% trans %}Password{% endtrans %}
</th>
@@ -94,7 +94,7 @@
<input type="password" name="password" size="12" maxlength="18" autocomplete="off" />
<span class="unimportant">{% trans %}(For file deletion.){% endtrans %}</span>
</td>
- </tr>
+ </tr>{% endif %}
</table>
</form>