From fc79cd933e74ec4efac0874483f86a4246520077 Mon Sep 17 00:00:00 2001 From: Deltacms Date: Thu, 8 Dec 2022 11:52:42 +0100 Subject: [PATCH] aide formulaire --- module/form/lang/en/lex_form.php | 2 ++ module/form/lang/fr/lex_form.php | 2 ++ module/form/view/config/config.help.html | 2 ++ module/form/view/config/config.help_en.html | 2 ++ module/form/view/config/config.php | 13 ++++++++++++- 5 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 module/form/view/config/config.help.html create mode 100644 module/form/view/config/config.help_en.html diff --git a/module/form/lang/en/lex_form.php b/module/form/lang/en/lex_form.php index 189344c..25cac87 100644 --- a/module/form/lang/en/lex_form.php +++ b/module/form/lang/en/lex_form.php @@ -39,6 +39,8 @@ $text['form_view']['config'][35] = 'pdf'; $text['form_view']['config'][36] = 'zip'; $text['form_view']['config'][37] = 'txt'; $text['form_view']['config'][38] = 'Note in the label of the file field the type and size of files allowed. Checks are performed on jpg, png, pdf and zip files but not on txt files. Be careful!'; +$text['form_view']['config'][39] = 'Help'; +$text['form_view']['config'][40] = 'module/form/view/config/config.help_en.html'; $text['form_view']['data'][0] = 'Back'; $text['form_view']['data'][1] = 'Delete all'; $text['form_view']['data'][2] = 'CSV export'; diff --git a/module/form/lang/fr/lex_form.php b/module/form/lang/fr/lex_form.php index 63b98f8..93b090e 100644 --- a/module/form/lang/fr/lex_form.php +++ b/module/form/lang/fr/lex_form.php @@ -39,6 +39,8 @@ $text['form_view']['config'][35] = 'pdf'; $text['form_view']['config'][36] = 'zip'; $text['form_view']['config'][37] = 'txt'; $text['form_view']['config'][38] = 'Notez dans le label du champ fichier le type et la taille des fichiers autorisés. Des contrôles sont effectués sur les fichiers jpg, png, pdf et zip mais pas sur les fichiers txt. Prudence !'; +$text['form_view']['config'][39] = 'Aide'; +$text['form_view']['config'][40] = 'module/form/view/config/config.help.html'; $text['form_view']['data'][0] = 'Retour'; $text['form_view']['data'][1] = 'Tout effacer'; $text['form_view']['data'][2] = 'Export CSV'; diff --git a/module/form/view/config/config.help.html b/module/form/view/config/config.help.html new file mode 100644 index 0000000..f55184e --- /dev/null +++ b/module/form/view/config/config.help.html @@ -0,0 +1,2 @@ +

FORMULAIRE

+ \ No newline at end of file diff --git a/module/form/view/config/config.help_en.html b/module/form/view/config/config.help_en.html new file mode 100644 index 0000000..4a501c7 --- /dev/null +++ b/module/form/view/config/config.help_en.html @@ -0,0 +1,2 @@ +

FORMULAIRE

+ \ No newline at end of file diff --git a/module/form/view/config/config.php b/module/form/view/config/config.php index be365ef..1ebc9fc 100644 --- a/module/form/view/config/config.php +++ b/module/form/view/config/config.php @@ -63,7 +63,14 @@ include('./module/form/lang/'. $this->getData(['config', 'i18n', 'langAdmin']) . 'value' => $text['form_view']['config'][4] ]); ?> -
getUser('group') < self::GROUP_MODERATOR) echo '
'; ?>> +
+ 'buttonHelp', + 'ico' => 'help', + 'value' => $text['form_view']['config'][39] + ]); ?> +
+
getUser('group') < self::GROUP_MODERATOR) echo '
'; ?>> helper::baseUrl() . $this->getUrl(0) . '/data', 'value' => $text['form_view']['config'][5] @@ -75,6 +82,10 @@ include('./module/form/lang/'. $this->getData(['config', 'i18n', 'langAdmin']) . ]); ?>
+ +
+ +