summaryrefslogtreecommitdiff
path: root/templates/mod/board.html
diff options
context:
space:
mode:
authorMichael Save <savetheinternet@tinyboard.org>2012-05-06 01:33:10 +1000
committerMichael Save <savetheinternet@tinyboard.org>2012-05-06 01:33:10 +1000
commita6104587203f1b1b448e6977066d6e649de91ae8 (patch)
tree58f3f17daaeb47de3ecc87f9967b432612147e68 /templates/mod/board.html
parentac2837c6204221554ceebc56c5fb9e38be4e0925 (diff)
a lot more improvements
Diffstat (limited to 'templates/mod/board.html')
-rw-r--r--templates/mod/board.html44
1 files changed, 44 insertions, 0 deletions
diff --git a/templates/mod/board.html b/templates/mod/board.html
new file mode 100644
index 00000000..0775e421
--- /dev/null
+++ b/templates/mod/board.html
@@ -0,0 +1,44 @@
+{% if new %}
+ {% set action = '?/new-board' %}
+{% else %}
+ {% set action = '?/edit/' ~ board.uri %}
+{% endif %}
+
+<form action="{{ action }}" method="post">
+ <table>
+ <tr>
+ <th>{% trans 'URI' %}</th>
+ <td>
+ {% if not new %}
+ {{ config.board_abbreviation|sprintf(board.uri) }}
+ {% else %}
+ /<input size="10" maxlength="255" type="text" name="uri" autocomplete="off">/
+ {% endif %}
+ </td>
+ </tr>
+ <tr>
+ <th>{% trans 'Title' %}</th>
+ <td>
+ <input size="25" type="text" name="title" value="{{ board.title|e }}" autocomplete="off">
+ </td>
+ </tr>
+ <tr>
+ <th>{% trans 'Subtitle' %}</th>
+ <td>
+ <input size="25" type="text" name="subtitle" value="{{ board.subtitle|e }}" autocomplete="off">
+ </td>
+ </tr>
+ </table>
+
+ <ul style="padding:0;text-align:center;list-style:none">
+ {% if new %}
+ <li><input type="submit" value="{% trans 'Create board' %}"></li>
+ {% else %}
+ <li><input type="submit" value="{% trans 'Save changes' %}"></li>
+ {% if mod|hasPermission(config.mod.deleteboard) %}
+ <li><input name="delete" onclick="return confirm('Are you sure you want to permanently delete this board?');" type="submit" value="{% trans 'Delete board' %}"></li>
+ {% endif %}
+ {% endif %}
+ </ul>
+</form>
+