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

@ -190,37 +190,53 @@
</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>
<div class="col4"> <div class="col4">
<?php echo template::checkbox('profilAddFormOption', true, 'Option', [ <?php echo template::checkbox('profilAddFormOption', true, 'Option'); ?>
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'form', 'option'])
]); ?>
</div> </div>
<div class="col4"> <div class="col4">
<?php echo template::checkbox('profilAddFormData', true, 'Données', [ <?php echo template::checkbox('profilAddFormData', true, 'Données'); ?>
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'form', 'data'])
]); ?>
</div> </div>
</div> </div>
<div class="row"> <div class="row">
<div class="col4"> <div class="col4">
<?php echo template::checkbox('profilAddFormDelete', true, 'Supprimer', [ <?php echo template::checkbox('profilAddFormDelete', true, 'Supprimer'); ?>
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'form', 'delete'])
]); ?>
</div> </div>
<div class="col4"> <div class="col4">
<?php echo template::checkbox('profilAddFormDeleteAll', true, 'Tout Supprimer', [ <?php echo template::checkbox('profilAddFormDeleteAll', true, 'Tout Supprimer'); ?>
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'form', 'deleteAll'])
]); ?>
</div> </div>
<div class="col4"> <div class="col4">
<?php echo template::checkbox('profilAddFormExport2csv', true, 'Export CSV', [ <?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 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>

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">