From 6df2f5c998fe4d3495a454bcffe5d48adb4abd7a Mon Sep 17 00:00:00 2001 From: fredtempez Date: Sat, 22 Feb 2020 12:42:12 +0100 Subject: [PATCH] [9.2.22] Position des boutons edition dans blog --- module/blog/view/article/article.php | 65 ++++++++++++++-------------- 1 file changed, 32 insertions(+), 33 deletions(-) diff --git a/module/blog/view/article/article.php b/module/blog/view/article/article.php index 08e28d58..fab1b5c2 100644 --- a/module/blog/view/article/article.php +++ b/module/blog/view/article/article.php @@ -15,7 +15,38 @@ getData(['user', $this->getData(['module', $this->getUrl(0), $this->getUrl(1), 'userId']), 'lastname']); ?>

- +getUser('group') >= self::GROUP_ADMIN): ?> +
+
+ 'buttonGrey', + 'href' => helper::baseUrl() . $this->getUrl(0), + 'ico' => 'left', + 'value' => 'Retour' + ]); ?> +
+
+ 'buttonBlue', + 'href' => helper::baseUrl() . $this->getUrl(0) . '/edit/' . $this->getUrl(1) . '/' . $_SESSION['csrf'], + 'value' => 'Editer' + ]); ?> +
+
+ +
+
+ 'buttonGrey', + 'href' => helper::baseUrl() . $this->getUrl(0), + 'ico' => 'left', + 'value' => 'Retour' + ]); ?> +
+
+
+
+

getData(['module', $this->getUrl(0), $this->getUrl(1), 'comment'])); ?> @@ -102,36 +133,4 @@ -getUser('group') >= self::GROUP_ADMIN): ?> -
-
- 'buttonGrey', - 'href' => helper::baseUrl() . $this->getUrl(0), - 'ico' => 'left', - 'value' => 'Retour' - ]); ?> -
-
- 'buttonBlue', - 'href' => helper::baseUrl() . $this->getUrl(0) . '/edit/' . $this->getUrl(1) . '/' . $_SESSION['csrf'], - 'value' => 'Editer' - ]); ?> -
-
- -
-
- 'buttonGrey', - 'href' => helper::baseUrl() . $this->getUrl(0), - 'ico' => 'left', - 'value' => 'Retour' - ]); ?> -
-
-
-
-