From 0e2542dba5deaa7bb9a59e1de2f544401ed56952 Mon Sep 17 00:00:00 2001 From: fredtempez Date: Thu, 24 Mar 2022 10:53:24 +0100 Subject: [PATCH] =?UTF-8?q?Formulaire=20complet=20de=20cr=C3=A9ation=20de?= =?UTF-8?q?=20galerie?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- module/gallery/gallery.php | 6 ++--- module/gallery/view/config/config.php | 21 +++++++++++++++ module/gallery/view/edit/edit.php | 38 +++++++++++++-------------- 3 files changed, 43 insertions(+), 22 deletions(-) diff --git a/module/gallery/gallery.php b/module/gallery/gallery.php index 5f10ca43..ce847183 100644 --- a/module/gallery/gallery.php +++ b/module/gallery/gallery.php @@ -385,10 +385,10 @@ class gallery extends common { 'name' => $this->getInput('galleryConfigName'), 'directory' => $this->getInput('galleryConfigDirectory', helper::FILTER_STRING_SHORT, true), 'homePicture' => $homePicture, - 'sort' => self::SORT_ASC, + 'sort' => $this->getInput('galleryConfigSort'), 'position' => count($this->getData(['module', $this->getUrl(0), 'content'])) + 1, - 'fullScreen' => false, - 'showPageContent' => false + 'fullScreen' => $this->getInput('galleryConfigFullscreen', helper::FILTER_BOOLEAN), + 'showPageContent' => $this->getInput('galleryConfigShowPageContent', helper::FILTER_BOOLEAN) ], 'legend' => [], 'positions' => [] diff --git a/module/gallery/view/config/config.php b/module/gallery/view/config/config.php index 434dbca5..516d3a02 100644 --- a/module/gallery/view/config/config.php +++ b/module/gallery/view/config/config.php @@ -42,6 +42,27 @@ ]); ?> +
+
+ $this->getData(['module', $this->getUrl(0), 'content', $this->getUrl(2), 'config', 'sort']), + 'label' => 'Tri des images', + 'help' => 'Tri manuel : déplacez le images dans le tableau ci-dessous. L\'ordre est sauvegardé automatiquement.' + ]); ?> +
+
+ $this->getData(['module', $this->getUrl(0), 'content', $this->getUrl(2), 'config', 'fullScreen']), + 'help' => 'A l\'ouverture de la galerie, la première image est affichée en plein écran.' + ]); ?> +
+
+ $this->getData(['module', $this->getUrl(0), 'content', $this->getUrl(2), 'config', 'showPageContent']), + 'help' => 'Le contenu de la page est toujours affiché dans la liste des galeries. Quand une seule galerie est disponible, il est possible de l\'afficher directement, cette option est utile dans ce cas précis.' + ]); ?> +
+
diff --git a/module/gallery/view/edit/edit.php b/module/gallery/view/edit/edit.php index 2b2b4a0d..5b80327d 100644 --- a/module/gallery/view/edit/edit.php +++ b/module/gallery/view/edit/edit.php @@ -15,15 +15,15 @@
-

Paramètre des images

+

Paramètres de la galerie

-
+
'Nom', 'value' => $this->getData(['module', $this->getUrl(0), 'content', $this->getUrl(2), 'config', 'name']) ]); ?>
-
+
$this->getData(['module', $this->getUrl(0), 'content', $this->getUrl(2), 'config', 'directory']), 'noDirty' => true // Désactivé à cause des modifications en ajax @@ -33,39 +33,39 @@ 'noDirty' => true // Désactivé à cause des modifications en ajax ]); ?>
-
+
+
+
$this->getData(['module', $this->getUrl(0), 'content', $this->getUrl(2), 'config', 'sort']), 'label' => 'Tri des images', 'help' => 'Tri manuel : déplacez le images dans le tableau ci-dessous. L\'ordre est sauvegardé automatiquement.' ]); ?>
-
-
-
+
$this->getData(['module', $this->getUrl(0), 'content', $this->getUrl(2), 'config', 'fullScreen']), 'help' => 'A l\'ouverture de la galerie, la première image est affichée en plein écran.' ]); ?>
-
+
$this->getData(['module', $this->getUrl(0), 'content', $this->getUrl(2), 'config', 'showPageContent']), 'help' => 'Le contenu de la page est toujours affiché dans la liste des galeries. Quand une seule galerie est disponible, il est possible de l\'afficher directement, cette option est utile dans ce cas précis.' ]); ?>
-
-
-
-
- - 'galleryTable'], $module::$picturesId ); ?> - - $this->getUrl(2)]); ?> - - - +
+
+ + 'galleryTable'], $module::$picturesId ); ?> + + $this->getUrl(2)]); ?> + + + +
+
Version n°