From 29ef8f06f55541ad605c3ee0288c28dfa31411c9 Mon Sep 17 00:00:00 2001 From: Fred Tempez Date: Sat, 11 Jul 2020 20:00:31 +0200 Subject: [PATCH] Comments Approval WIP --- module/blog/blog.php | 3 ++- module/blog/view/edit/edit.php | 23 +++++++++++++++++++---- 2 files changed, 21 insertions(+), 5 deletions(-) diff --git a/module/blog/blog.php b/module/blog/blog.php index dbedf0d9..251fa1a3 100755 --- a/module/blog/blog.php +++ b/module/blog/blog.php @@ -350,7 +350,8 @@ class blog extends common { 'state' => $this->getInput('blogEditState', helper::FILTER_BOOLEAN), 'title' => $this->getInput('blogEditTitle', helper::FILTER_STRING_SHORT, true), 'userId' => $newuserid, - 'maxlengthcomment' => $this->getInput('blogEditlength', null) + 'maxlengthcomment' => $this->getInput('blogEditLength'), + 'commentApprove' => $this->getInput('blogEditCommentApprove') ]]); // Supprime l'ancien article if($articleId !== $this->getUrl(2)) { diff --git a/module/blog/view/edit/edit.php b/module/blog/view/edit/edit.php index bd27ed4b..8cf5a56e 100755 --- a/module/blog/view/edit/edit.php +++ b/module/blog/view/edit/edit.php @@ -74,10 +74,17 @@ 'value' => $this->getData(['module', $this->getUrl(0), $this->getUrl(2), 'content']) ]); ?>
-
+
+
+

Permissions

+
+
+
+
+

Options de publication

- 'Choix du nombre maximum de caractères pour chaque commentaire de l\'article, mise en forme html comprise.', 'label' => 'Caractères par commentaire', 'selected' => $this->getData(['module', $this->getUrl(0), $this->getUrl(2), 'maxlengthcomment']) @@ -94,13 +101,21 @@ ]); ?>
-
+
-

Options des commentaires

+

Commentaires

$this->getData(['module', $this->getUrl(0), $this->getUrl(2), 'closeComment']) ]); ?>
+
+
+ $this->getData(['module', $this->getUrl(0), $this->getUrl(2), 'commentApprove']), + '' + ]); ?> +
+