From c266d916aca6f678814b0f1b4f8755d04a81c3a4 Mon Sep 17 00:00:00 2001 From: Fred Tempez Date: Fri, 27 Jan 2023 08:26:34 +0100 Subject: [PATCH] Form 3.4 bug div en trop --- module/form/changes.md | 2 ++ module/form/form.php | 2 +- module/form/view/index/index.php | 42 ++++++++++++++++---------------- 3 files changed, 24 insertions(+), 22 deletions(-) diff --git a/module/form/changes.md b/module/form/changes.md index 58c618ca..31cb8d1e 100644 --- a/module/form/changes.md +++ b/module/form/changes.md @@ -1,3 +1,5 @@ +# Version 3.4 +- Bug de présentation, une div en trop. # Version 3.3 - Multilinguisme # Version 3.2 diff --git a/module/form/form.php b/module/form/form.php index aee00b38..61617bd9 100644 --- a/module/form/form.php +++ b/module/form/form.php @@ -16,7 +16,7 @@ class form extends common { - const VERSION = '3.3'; + const VERSION = '3.4'; const REALNAME = 'Formulaire'; const DATADIRECTORY = ''; // Contenu localisé inclus par défaut (page.json et module.json) diff --git a/module/form/view/index/index.php b/module/form/view/index/index.php index c2251225..96a7d163 100644 --- a/module/form/view/index/index.php +++ b/module/form/view/index/index.php @@ -1,20 +1,19 @@ -getData(['module', $this->getUrl(0), 'input'])): ?> -
-
getData(['module', $this->getUrl(0), 'config', 'align']); ?>"> +
- - getData(['module', $this->getUrl(0), 'input']) as $index => $input): ?> - + ?>"> + + getData(['module', $this->getUrl(0), 'input']) as $index => $input): ?> + 'formInput_' . $index, 'label' => $input['name'] ]); ?> - + $key) { + $values = array_flip(explode(',', $input['values'])); foreach ($values as $value => $key) { $values[$value] = trim($value); } ?> @@ -22,38 +21,40 @@ 'id' => 'formInput_' . $index, 'label' => $input['name'] ]); ?> - + 'formInput_' . $index, 'label' => $input['name'] ]); ?> - + 'formInput_' . $index, 'label' => $input['name'] ]); ?> - + 'formInput_' . $index, 'label' => $input['name'], 'vendor' => 'flatpickr' ]); ?> - - + - +


- getData(['module', $this->getUrl(0), 'config', 'captcha'])): ?> + getData(['module', $this->getUrl(0), 'config', 'captcha'])): ?>
$this->getData(['config','connect', 'captchaStrong']), - 'type' => $this->getData(['config','connect', 'captchaType']) + 'limit' => $this->getData(['config', 'connect', 'captchaStrong']), + 'type' => $this->getData(['config', 'connect', 'captchaType']) ]); ?>
@@ -68,8 +69,7 @@
- - + \ No newline at end of file