form avec option validation rgpd
This commit is contained in:
parent
4e900dc219
commit
43137f37c3
|
@ -141,7 +141,8 @@ class form extends common {
|
|||
'uploadPng' => $this->getInput('formConfigUploadPng', helper::FILTER_BOOLEAN),
|
||||
'uploadPdf' => $this->getInput('formConfigUploadPdf', helper::FILTER_BOOLEAN),
|
||||
'uploadZip' => $this->getInput('formConfigUploadZip', helper::FILTER_BOOLEAN),
|
||||
'uploadTxt' => $this->getInput('formConfigUploadTxt', helper::FILTER_BOOLEAN)
|
||||
'uploadTxt' => $this->getInput('formConfigUploadTxt', helper::FILTER_BOOLEAN),
|
||||
'rgpdCheck' => $this->getInput('formConfigRgpdCheck', helper::FILTER_BOOLEAN)
|
||||
]
|
||||
]);
|
||||
// Génération des données vides
|
||||
|
@ -475,6 +476,9 @@ class form extends common {
|
|||
}
|
||||
}
|
||||
|
||||
// Ajout d'une notice sur la case à cocher d'acceptation des conditions si elle est utilisée et non cochée
|
||||
if( $this->getData(['module', $this->getUrl(0), 'config', 'rgpdCheck'])) $rgpdCheckbox = $this->getInput('formRgpdCheck', helper::FILTER_BOOLEAN,true);
|
||||
|
||||
// Préparation du contenu du mail
|
||||
$data = [];
|
||||
$replyTo = null;
|
||||
|
|
|
@ -41,6 +41,8 @@ $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']['config'][41] = 'Check box for acceptance of the conditions of use of personal data';
|
||||
$text['form_view']['config'][42] = 'If your questionnaire concerns personal data, the GDPR in certain countries requires acceptance of their conditions of use by the participant. You must also explain why you are using this data. The associated text must be updated in location configuration.';
|
||||
$text['form_view']['data'][0] = 'Back';
|
||||
$text['form_view']['data'][1] = 'Delete all';
|
||||
$text['form_view']['data'][2] = 'CSV export';
|
||||
|
|
|
@ -41,6 +41,8 @@ $text['form_view']['config'][37] = 'txt';
|
|||
$text['form_view']['config'][38] = 'Anote en el campo de archivo la etiqueta del tipo y tamaño de los archivos autorizados. Las comprobaciones se realizan en archivos jpg, png, pdf y zip, pero no en archivos txt. Precaución !';
|
||||
$text['form_view']['config'][39] = 'Ayuda';
|
||||
$text['form_view']['config'][40] = 'module/form/view/config/config.help_en.html';
|
||||
$text['form_view']['config'][41] = 'Marque la casilla de aceptación de las condiciones de uso de datos personales';
|
||||
$text['form_view']['config'][42] = 'Si su cuestionario se refiere a datos personales, el RGPD en ciertos países requiere la aceptación de sus condiciones de uso por parte del participante. También debe explicar por qué está utilizando estos datos. El texto asociado debe actualizarse en la configuración de ubicación.';
|
||||
$text['form_view']['data'][0] = 'Atrás';
|
||||
$text['form_view']['data'][1] = 'Borrar todo';
|
||||
$text['form_view']['data'][2] = 'Exportar CSV';
|
||||
|
|
|
@ -41,6 +41,8 @@ $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']['config'][41] = 'Case à cocher d\'acceptation des conditions d\utilisation des données personnelles (RGPD)';
|
||||
$text['form_view']['config'][42] = 'Si votre questionnaire concerne des données personnelles la RGPD de certains pays requiert l\'acceptation de leur condition d\'utilisation par le participant. Vous devez également expliquer pour quelle raison vous utilisez ces données. Le texte associé est à mettre à jour dans configuration localisation.';
|
||||
$text['form_view']['data'][0] = 'Retour';
|
||||
$text['form_view']['data'][1] = 'Tout effacer';
|
||||
$text['form_view']['data'][2] = 'Export CSV';
|
||||
|
|
|
@ -184,11 +184,17 @@ include('./module/form/lang/'. $this->getData(['config', 'i18n', 'langAdmin']) .
|
|||
</div>
|
||||
</div>
|
||||
<div class="row" <?php if($this->getUser('group') < self::GROUP_MODERATOR) echo '<div style="display: none;">'; ?>>
|
||||
<div class="col6">
|
||||
<div class="col4">
|
||||
<?php echo template::checkbox('formConfigCaptcha', true, $text['form_view']['config'][26], [
|
||||
'checked' => $this->getData(['module', $this->getUrl(0), 'config', 'captcha'])
|
||||
]); ?>
|
||||
</div>
|
||||
<div class="col6">
|
||||
<?php echo template::checkbox('formConfigRgpdCheck', true, $text['form_view']['config'][41], [
|
||||
'checked' => $this->getData(['module', $this->getUrl(0), 'config', 'rgpdCheck']),
|
||||
'help' => $text['form_view']['config'][42]
|
||||
]); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row" <?php if($this->getUser('group') < self::GROUP_MODERATOR) echo '<div style="display: none;">'; ?>>
|
||||
<div class="col4">
|
||||
|
|
|
@ -41,6 +41,15 @@ echo '<script> var lang_admin = "'.$lang_page.'"; </script>';
|
|||
|
||||
if($this->getData(['module', $this->getUrl(0), 'input'])): ?>
|
||||
<?php echo template::formOpenFile('formForm'); ?>
|
||||
<?php if($this->getData(['module', $this->getUrl(0), 'config', 'rgpdCheck' ]) === true){ ?>
|
||||
<div class="row">
|
||||
<div class="col12">
|
||||
<?php echo template::checkbox('formRgpdCheck', true, $this->getData(['locale', 'questionnaireAccept']), [
|
||||
'checked' => false
|
||||
]); ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<div class="humanBot">
|
||||
<?php $textIndex=0; $selectIndex=0; $checkboxIndex=0;
|
||||
foreach($this->getData(['module', $this->getUrl(0), 'input']) as $index => $input): ?>
|
||||
|
|
Loading…
Reference in New Issue