forked from ZwiiCMS-Team/ZwiiCMS
Form 3.4 bug div en trop
This commit is contained in:
parent
4cc1c59abe
commit
c266d916ac
@ -1,3 +1,5 @@
|
||||
# Version 3.4
|
||||
- Bug de présentation, une div en trop.
|
||||
# Version 3.3
|
||||
- Multilinguisme
|
||||
# Version 3.2
|
||||
|
@ -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)
|
||||
|
||||
|
@ -13,8 +13,7 @@
|
||||
]); ?>
|
||||
<?php elseif ($input['type'] === $module::TYPE_SELECT): ?>
|
||||
<?php
|
||||
$values = array_flip(explode(',', $input['values']));
|
||||
foreach($values as $value => $key) {
|
||||
$values = array_flip(explode(',', $input['values'])); foreach ($values as $value => $key) {
|
||||
$values[$value] = trim($value);
|
||||
}
|
||||
?>
|
||||
@ -39,7 +38,9 @@
|
||||
'vendor' => 'flatpickr'
|
||||
]); ?>
|
||||
<?php elseif ($input['type'] === $module::TYPE_CHECKBOX): ?>
|
||||
<?php echo template::checkbox('formInput[' . $index . ']', true, $input['name']
|
||||
<?php echo template::checkbox(
|
||||
'formInput[' . $index . ']',
|
||||
true, $input['name']
|
||||
); ?>
|
||||
<?php elseif ($input['type'] === $module::TYPE_LABEL): ?>
|
||||
<h3 class='formLabel'>
|
||||
@ -68,7 +69,6 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php echo template::formClose(); ?>
|
||||
<?php else: ?>
|
||||
<?php echo template::speech('Le formulaire ne contient aucun champ.'); ?>
|
||||
|
Loading…
x
Reference in New Issue
Block a user