profils des deux derniers modules

This commit is contained in:
Fred Tempez 2023-06-12 11:13:57 +02:00
parent 7d950f7f2c
commit 5b82100c30
3 changed files with 98 additions and 38 deletions

View File

@ -614,6 +614,12 @@ class user extends common
'deleteAll' => $this->getInput('profilEditFormDeleteAll', helper::FILTER_BOOLEAN), 'deleteAll' => $this->getInput('profilEditFormDeleteAll', helper::FILTER_BOOLEAN),
'export2csv' => $this->getInput('profilEditFormExport2csv', helper::FILTER_BOOLEAN), 'export2csv' => $this->getInput('profilEditFormExport2csv', helper::FILTER_BOOLEAN),
], ],
'search' => [
'config' => $this->getInput('profilEditSearchConfig', helper::FILTER_BOOLEAN),
],
'redirection' => [
'config' => $this->getInput('profilEditRedirectionConfig', helper::FILTER_BOOLEAN),
],
] ]
]); ]);
@ -722,6 +728,12 @@ class user extends common
'deleteAll' => $this->getInput('profilAddFormDeleteAll', helper::FILTER_BOOLEAN), 'deleteAll' => $this->getInput('profilAddFormDeleteAll', helper::FILTER_BOOLEAN),
'export2csv' => $this->getInput('profilAddFormExport2csv', helper::FILTER_BOOLEAN), 'export2csv' => $this->getInput('profilAddFormExport2csv', helper::FILTER_BOOLEAN),
], ],
'search' => [
'config' => $this->getInput('profilAddSearchConfig', helper::FILTER_BOOLEAN),
],
'redirection' => [
'config' => $this->getInput('profilAddRedirectionConfig', helper::FILTER_BOOLEAN),
],
] ]
]); ]);
// Valeurs en sortie // Valeurs en sortie

View File

@ -183,49 +183,65 @@
</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('Formulaire'); ?> <?php echo helper::translate('Formulaire'); ?>
</h4> </h4>
<div class="row"> <div class="row">
<div class="col4"> <div class="col4">
<?php echo template::checkbox('profilAddFormConfig', true, 'Configuration', [ <?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>
<div class="row"> <div class="col4">
<div class="col4"> <?php echo template::checkbox('profilAddFormOption', true, 'Option'); ?>
<?php echo template::checkbox('profilAddFormDelete', true, 'Supprimer', [ </div>
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'form', 'delete']) <div class="col4">
]); ?> <?php echo template::checkbox('profilAddFormData', true, 'Données'); ?>
</div> </div>
<div class="col4">
<?php echo template::checkbox('profilAddFormDeleteAll', true, 'Tout Supprimer', [ </div>
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'form', 'deleteAll']) <div class="row">
]); ?> <div class="col4">
</div> <?php echo template::checkbox('profilAddFormDelete', true, 'Supprimer'); ?>
<div class="col4"> </div>
<?php echo template::checkbox('profilAddFormExport2csv', true, 'Export CSV', [ <div class="col4">
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'form', 'export2csv']) <?php echo template::checkbox('profilAddFormDeleteAll', true, 'Tout Supprimer'); ?>
]); ?> </div>
</div> <div class="col4">
<?php echo template::checkbox('profilAddFormExport2csv', true, 'Export CSV'); ?>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
</div>
<div class="row">
<div class="col12">
<div class="block">
<h4>
<?php echo helper::translate('Redirection'); ?>
</h4>
<div class="row">
<div class="col4">
<?php echo template::checkbox('profilEditRedirectionConfig', true, 'Configuration'); ?>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col12">
<div class="block">
<h4>
<?php echo helper::translate('Recherche'); ?>
</h4>
<div class="row">
<div class="col4">
<?php echo template::checkbox('profilEditSearchConfig', true, 'Configuration'); ?>
</div>
</div>
</div>
</div>
</div>
</div> </div>
<div class="row"> <div class="row">
<div class="col12"> <div class="col12">

View File

@ -287,6 +287,38 @@
</div> </div>
</div> </div>
</div> </div>
<div class="row">
<div class="col12">
<div class="block">
<h4>
<?php echo helper::translate('Redirection'); ?>
</h4>
<div class="row">
<div class="col4">
<?php echo template::checkbox('profilEditRedirectionConfig', true, 'Configuration', [
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'redirection', 'config'])
]); ?>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col12">
<div class="block">
<h4>
<?php echo helper::translate('Recherche'); ?>
</h4>
<div class="row">
<div class="col4">
<?php echo template::checkbox('profilEditSearchConfig', true, 'Configuration', [
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'search', 'config'])
]); ?>
</div>
</div>
</div>
</div>
</div>
</div> </div>
<?php endif; ?> <?php endif; ?>
<div class="row"> <div class="row">