Profil module form

This commit is contained in:
Fred Tempez 2023-06-10 17:21:16 +02:00
parent 21fee2dbb1
commit 7d950f7f2c
3 changed files with 139 additions and 35 deletions

View File

@ -606,6 +606,14 @@ class user extends common
'option' => $this->getInput('profilEditGalleryOption', helper::FILTER_BOOLEAN), 'option' => $this->getInput('profilEditGalleryOption', helper::FILTER_BOOLEAN),
'theme' => $this->getInput('profilEditGalleryConfig', helper::FILTER_BOOLEAN), 'theme' => $this->getInput('profilEditGalleryConfig', helper::FILTER_BOOLEAN),
], ],
'form' => [
'config' => $this->getInput('profilEditFormConfig', helper::FILTER_BOOLEAN),
'option' => $this->getInput('profilEditFormOption', helper::FILTER_BOOLEAN),
'data' => $this->getInput('profilEditFormData', helper::FILTER_BOOLEAN),
'delete' => $this->getInput('profilEditFormDelete', helper::FILTER_BOOLEAN),
'deleteAll' => $this->getInput('profilEditFormDeleteAll', helper::FILTER_BOOLEAN),
'export2csv' => $this->getInput('profilEditFormExport2csv', helper::FILTER_BOOLEAN),
],
] ]
]); ]);
@ -706,6 +714,14 @@ class user extends common
'option' => $this->getInput('profilAddGalleryOption', helper::FILTER_BOOLEAN), 'option' => $this->getInput('profilAddGalleryOption', helper::FILTER_BOOLEAN),
'theme' => $this->getInput('profilAddGalleryConfig', helper::FILTER_BOOLEAN), 'theme' => $this->getInput('profilAddGalleryConfig', helper::FILTER_BOOLEAN),
], ],
'form' => [
'config' => $this->getInput('profilAddFormConfig', helper::FILTER_BOOLEAN),
'option' => $this->getInput('profilAddFormOption', helper::FILTER_BOOLEAN),
'data' => $this->getInput('profilAddFormData', helper::FILTER_BOOLEAN),
'delete' => $this->getInput('profilAddFormDelete', helper::FILTER_BOOLEAN),
'deleteAll' => $this->getInput('profilAddFormDeleteAll', helper::FILTER_BOOLEAN),
'export2csv' => $this->getInput('profilAddFormExport2csv', helper::FILTER_BOOLEAN),
],
] ]
]); ]);
// Valeurs en sortie // Valeurs en sortie

View File

@ -182,6 +182,50 @@
</div> </div>
</div> </div>
</div> </div>
<div class="row">
<div class="col12">
<div class="block">
<h4>
<?php echo helper::translate('Formulaire'); ?>
</h4>
<div class="row">
<div class="col4">
<?php echo template::checkbox('profilAddFormConfig', true, 'Configuration', [
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'form', 'config'])
]); ?>
</div>
<div class="col4">
<?php echo template::checkbox('profilAddFormOption', true, 'Option', [
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'form', 'option'])
]); ?>
</div>
<div class="col4">
<?php echo template::checkbox('profilAddFormData', true, 'Données', [
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'form', 'data'])
]); ?>
</div>
</div>
<div class="row">
<div class="col4">
<?php echo template::checkbox('profilAddFormDelete', true, 'Supprimer', [
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'form', 'delete'])
]); ?>
</div>
<div class="col4">
<?php echo template::checkbox('profilAddFormDeleteAll', true, 'Tout Supprimer', [
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'form', 'deleteAll'])
]); ?>
</div>
<div class="col4">
<?php echo template::checkbox('profilAddFormExport2csv', true, 'Export CSV', [
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'form', 'export2csv'])
]); ?>
</div>
</div>
</div>
</div>
</div>
</div> </div>
<div class="row"> <div class="row">
<div class="col12"> <div class="col12">

View File

@ -200,45 +200,89 @@
</div> </div>
</div> </div>
</div> </div>
</div> <div class="row">
<div class="row"> <div class="col12">
<div class="col12"> <div class="block">
<div class="block"> <h4>
<h4> <?php echo helper::translate('Galerie'); ?>
<?php echo helper::translate('Galerie'); ?> </h4>
</h4> <div class="row">
<div class="row"> <div class="col4">
<div class="col4"> <?php echo template::checkbox('profilEditGalleryAdd', true, 'Ajouter', [
<?php echo template::checkbox('profilEditGalleryAdd', true, 'Ajouter', [ 'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'gallery', 'add'])
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'gallery', 'add']) ]); ?>
]); ?> </div>
<div class="col4">
<?php echo template::checkbox('profilEditGalleryEdit', true, 'Edit', [
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'gallery', 'edit'])
]); ?>
</div>
<div class="col4">
<?php echo template::checkbox('profilEditGalleryDelete', true, 'Supprimer', [
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'gallery', 'delete'])
]); ?>
</div>
</div> </div>
<div class="col4"> <div class="row">
<?php echo template::checkbox('profilEditGalleryEdit', true, 'Edit', [ <div class="col4">
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'gallery', 'edit']) <?php echo template::checkbox('profilEditGalleryConfig', true, 'Configuration', [
]); ?> 'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'gallery', 'config'])
</div> ]); ?>
<div class="col4"> </div>
<?php echo template::checkbox('profilEditGalleryDelete', true, 'Supprimer', [ <div class="col4">
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'gallery', 'delete']) <?php echo template::checkbox('profilEditGalleryOption', true, 'Option', [
]); ?> 'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'gallery', 'option'])
]); ?>
</div>
<div class="col4">
<?php echo template::checkbox('profilEditGalleryTheme', true, 'Theme', [
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'gallery', 'theme'])
]); ?>
</div>
</div> </div>
</div> </div>
<div class="row"> </div>
<div class="col4"> </div>
<?php echo template::checkbox('profilEditGalleryConfig', true, 'Configuration', [ <div class="row">
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'gallery', 'config']) <div class="col12">
]); ?> <div class="block">
<h4>
<?php echo helper::translate('Formulaire'); ?>
</h4>
<div class="row">
<div class="col4">
<?php echo template::checkbox('profilEditFormConfig', true, 'Configuration', [
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'form', 'config'])
]); ?>
</div>
<div class="col4">
<?php echo template::checkbox('profilEditFormOption', true, 'Option', [
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'form', 'option'])
]); ?>
</div>
<div class="col4">
<?php echo template::checkbox('profilEditFormData', true, 'Données', [
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'form', 'data'])
]); ?>
</div>
</div> </div>
<div class="col4"> <div class="row">
<?php echo template::checkbox('profilEditGalleryOption', true, 'Option', [ <div class="col4">
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'gallery', 'option']) <?php echo template::checkbox('profilEditFormDelete', true, 'Supprimer', [
]); ?> 'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'form', 'delete'])
</div> ]); ?>
<div class="col4"> </div>
<?php echo template::checkbox('profilEditGalleryTheme', true, 'Theme', [ <div class="col4">
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'gallery', 'theme']) <?php echo template::checkbox('profilEditFormDeleteAll', true, 'Tout Supprimer', [
]); ?> 'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'form', 'deleteAll'])
]); ?>
</div>
<div class="col4">
<?php echo template::checkbox('profilEditFormExport2csv', true, 'Export CSV', [
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'form', 'export2csv'])
]); ?>
</div>
</div> </div>
</div> </div>
</div> </div>