diff --git a/inc/mod/pages.php b/inc/mod/pages.php index fb9f364d..75f7ffb4 100644 --- a/inc/mod/pages.php +++ b/inc/mod/pages.php @@ -994,7 +994,11 @@ function mod_edit_post($board, $post) { if (!hasPermission($config['mod']['editpost'], $board)) error($config['error']['noaccess']); - error("Unimplemented!"); + // error("Unimplemented!"); + $args = array( + 'test' => 1 + ); + mod_page(_('Edit post'), 'mod/edit_post_form.html', $args); } function mod_delete($board, $post) { diff --git a/templates/mod/edit_post_form.html b/templates/mod/edit_post_form.html new file mode 100644 index 00000000..ac7e207f --- /dev/null +++ b/templates/mod/edit_post_form.html @@ -0,0 +1,55 @@ +
+ + {% if not config.field_disable_name or (mod and post.mod|hasPermission(config.mod.bypass_field_disable, board.uri)) %} + + + {% endif %} + {% if not config.field_disable_email or (mod and post.mod|hasPermission(config.mod.bypass_field_disable, board.uri)) %} + + + {% endif %} + + + + + + + + + + + + +
+ {% trans %}Name{% endtrans %} + + +
+ {% trans %}Email{% endtrans %} + + +
+ {% trans %}Subject{% endtrans %} + + +
+ {% trans %}Comment{% endtrans %} + + +
+ {% trans %}Flags{% endtrans %} + + {% if not id and post.mod|hasPermission(config.mod.sticky, board.uri) %}
+ +
+
{% endif %} + {% if not id and post.mod|hasPermission(config.mod.lock, board.uri) %}
+
+ +
{% endif %} + {% if post.mod|hasPermission(config.mod.rawhtml, board.uri) %}
+
+ +
{% endif %} +
+