From 1a2c859996e5827581a0440da8fb97ec09fd70b7 Mon Sep 17 00:00:00 2001 From: asiekierka Date: Tue, 8 Jan 2013 04:35:22 +0100 Subject: [PATCH] [EDIT] added dummy form --- inc/mod/pages.php | 6 ++++- templates/mod/edit_post_form.html | 55 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 60 insertions(+), 1 deletion(-) create mode 100644 templates/mod/edit_post_form.html 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 %} +
+