Profil position des champs edit et add

This commit is contained in:
Fred Tempez 2023-08-09 20:19:06 +02:00
parent b2a73203ed
commit ca341f6f6c
8 changed files with 94 additions and 110 deletions

View File

@ -5,33 +5,30 @@
<?php echo helper::translate('Permissions sur le module') . ' ' . helper::translate('Blog'); ?>
</h4>
<div class="row">
<div class="col4">
<div class="col3">
<?php echo template::checkbox('profilAddBlogAdd', true, 'Ajouter'); ?>
</div>
<div class="col4">
<div class="col3">
<?php echo template::checkbox('profilAddBlogEdit', true, 'Éditer'); ?>
</div>
<div class="col4">
<div class="col3">
<?php echo template::checkbox('profilAddBlogDelete', true, 'Effacer'); ?>
</div>
</div>
<div class="row">
<div class="col4">
<div class="col3">
<?php echo template::checkbox('profilAddBlogOption', true, 'Options'); ?>
</div>
<div class="col4">
<?php echo template::checkbox('profilAddBlogComment', true, 'Gérer les commentaires'); ?>
</div>
<div class="col4">
<?php echo template::checkbox('profilAddBlogCommentApprove', true, 'Approuver un commentaire'); ?>
</div>
</div>
<div class="row">
<div class="col6" s>
<div class="col3">
<?php echo template::checkbox('profilAddBlogComment', true, 'Gérer les commentaires'); ?>
</div>
<div class="col3">
<?php echo template::checkbox('profilAddBlogCommentApprove', true, 'Approuver un commentaire'); ?>
</div>
<div class="col3" s>
<?php echo template::checkbox('profilAddBlogCommentDelete', true, 'Effacer un commentaire'); ?>
</div>
<div class="col6">
<div class="col3">
<?php echo template::checkbox('profilAddBlogCommentDeleteAll', true, 'Effacer tous les commentaires'); ?>
</div>
</div>

View File

@ -5,46 +5,44 @@
<?php echo helper::translate('Permissions sur le module') . ' ' . helper::translate('Blog'); ?>
</h4>
<div class="row">
<div class="col4">
<div class="col3">
<?php echo template::checkbox('profilEditBlogAdd', true, 'Ajouter', [
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'blog', 'add'])
]); ?>
</div>
<div class="col4">
<div class="col3">
<?php echo template::checkbox('profilEditBlogEdit', true, 'Éditer', [
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'blog', 'edit'])
]); ?>
</div>
<div class="col4">
<div class="col3">
<?php echo template::checkbox('profilEditBlogDelete', true, 'Effacer', [
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'blog', 'delete'])
]); ?>
</div>
</div>
<div class="row">
<div class="col4">
<div class="col3">
<?php echo template::checkbox('profilEditBlogOption', true, 'Options', [
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'blog', 'option'])
]); ?>
</div>
<div class="col4">
</div>
<div class="row">
<div class="col3">
<?php echo template::checkbox('profilEditBlogComment', true, 'Gérer les commentaires', [
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'blog', 'comment'])
]); ?>
</div>
<div class="col4">
<div class="col3">
<?php echo template::checkbox('profilEditBlogCommentApprove', true, 'Approuver un commentaire', [
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'blog', 'commentApprove'])
]); ?>
</div>
</div>
<div class="row">
<div class="col6">
<div class="col3">
<?php echo template::checkbox('profilEditBlogCommentDelete', true, 'Effacer un commentaire', [
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'blog', 'commentDelete'])
]); ?>
</div>
<div class="col6">
<div class="col3">
<?php echo template::checkbox('profilEditBlogCommentDeleteAll', true, 'Effacer tous les commentaires', [
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'blog', 'commentDeleteAll'])
]); ?>

View File

@ -5,49 +5,48 @@
<?php echo helper::translate('Permissions sur le module') . ' ' . helper::translate('Téléchargement'); ?>
</h4>
<div class="row">
<div class="col4">
<div class="col3">
<?php echo template::checkbox('profilAddDownloadAdd', true, 'Ajouter'); ?>
</div>
<div class="col4">
<div class="col3">
<?php echo template::checkbox('profilAddDownloadEdit', true, 'Éditer'); ?>
</div>
<div class="col4">
<div class="col3">
<?php echo template::checkbox('profilAddDownloadDelete', true, 'Effacer'); ?>
</div>
</div>
<div class="row">
<div class="col4">
<div class="col3">
<?php echo template::checkbox('profilAddDownloadOption', true, 'Options'); ?>
</div>
<div class="col4">
</div>
<div class="row">
<div class="col3">
<?php echo template::checkbox('profilAddDownloadComment', true, 'Commentaire'); ?>
</div>
<div class="col4">
<div class="col3">
<?php echo template::checkbox('profilAddDownloadCommentApprove', true, 'Gérer les commentaires'); ?>
</div>
<div class="col3">
<?php echo template::checkbox('profilAddDownloadCommentDelete', true, 'Effacer un commentaire'); ?>
</div>
<div class="col3">
<?php echo template::checkbox('profilAddDownloadCommentDeleteAll', true, 'Effacer tous les commentaires'); ?>
</div>
</div>
<div class="row">
<div class="col4">
<?php echo template::checkbox('profilAddDownloadCommentDelete', true, 'Effacer un commentaire'); ?>
<div class="col3">
<?php echo template::checkbox('profilAddDownloadCategories', true, 'Gérer les catégories'); ?>
</div>
<div class="col4">
<?php echo template::checkbox('profilAddDownloadCommentDeleteAll', true, 'Effacer tous les commentaires'); ?>
<div class="col3">
<?php echo template::checkbox('profilAddDownloadCategoryEdit', true, 'Éditer une catégorie'); ?>
</div>
<div class="col4">
<div class="col3">
<?php echo template::checkbox('profilAddDownloadCategoryDelete', true, 'Effacer une catégorie'); ?>
</div>
<div class="col3">
<?php echo template::checkbox('profilAddDownloadCommentDeleteAllStats', true, 'Effacer toutes les statistiques'); ?>
</div>
</div>
<div class="row">
<div class="col4">
<?php echo template::checkbox('profilAddDownloadCategories', true, 'Gérer les catégories'); ?>
</div>
<div class="col4">
<?php echo template::checkbox('profilAddDownloadCategoryEdit', true, 'Éditer une catégorie'); ?>
</div>
<div class="col4">
<?php echo template::checkbox('profilAddDownloadCategoryDelete', true, 'Effacer une catégorie'); ?>
</div>
</div>
</div>
</div>
</div>

View File

@ -5,73 +5,72 @@
<?php echo helper::translate('Permissions sur le module') . ' ' . helper::translate('Téléchargement'); ?>
</h4>
<div class="row">
<div class="col4">
<div class="col3">
<?php echo template::checkbox('profilEditDownloadAdd', true, 'Ajouter', [
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'download', 'add'])
]); ?>
</div>
<div class="col4">
<div class="col3">
<?php echo template::checkbox('profilEditDownloadEdit', true, 'Éditer', [
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'download', 'edit'])
]); ?>
</div>
<div class="col4">
<div class="col3">
<?php echo template::checkbox('profilEditDownloadDelete', true, 'Effacer', [
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'download', 'delete'])
]); ?>
</div>
</div>
<div class="row">
<div class="col4">
<div class="col3">
<?php echo template::checkbox('profilEditDownloadOption', true, 'Options', [
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'download', 'option'])
]); ?>
</div>
<div class="col4">
</div>
<div class="row">
<div class="col3">
<?php echo template::checkbox('profilEditDownloadComment', true, 'Gérer les commentaires', [
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'download', 'comment'])
]); ?>
</div>
<div class="col4">
<div class="col3">
<?php echo template::checkbox('profilEditDownloadCommentApprove', true, 'Approuver un commentaire', [
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'download', 'commentApprove'])
]); ?>
</div>
</div>
<div class="row">
<div class="col4">
<div class="col3">
<?php echo template::checkbox('profilEditDownloadCommentDelete', true, 'Effacer un commentaire', [
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'download', 'commentDelete'])
]); ?>
</div>
<div class="col4">
<div class="col3">
<?php echo template::checkbox('profilEditDownloadCommentDeleteAll', true, 'Effacer tous les commentaires', [
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'download', 'commentDeleteAll'])
]); ?>
</div>
<div class="col4">
</div>
<div class="row">
<div class="col3">
<?php echo template::checkbox('profilEditDownloadCategories', true, 'Gérer les catégories', [
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'download', 'categoryManage'])
]); ?>
</div>
<div class="col3">
<?php echo template::checkbox('profilEditDownloadCategoryEdit', true, 'Éditer une catégorie', [
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'download', 'categoryEdit'])
]); ?>
</div>
<div class="col3">
<?php echo template::checkbox('profilEditDownloadCategoryDelete', true, 'Effacer une catégorie', [
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'download', 'categoryDelete'])
]); ?>
</div>
<div class="col3">
<?php echo template::checkbox('profilEditDownloadCommentDeleteAllStats', true, 'Effacer toutes les statistiques', [
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'download', 'deleteAllStats'])
]); ?>
</div>
</div>
<div class="row">
<div class="col4">
<?php echo template::checkbox('profilEditDownloadCategories', true, 'Gérer les catégories', [
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'download', 'categoryManage'])
]); ?>
</div>
<div class="col4">
<?php echo template::checkbox('profilEditDownloadCategoryEdit', true, 'Éditer une catégorie', [
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'download', 'categoryEdit'])
]); ?>
</div>
<div class="col4">
<?php echo template::checkbox('profilEditDownloadCategoryDelete', true, 'Effacer une catégorie',[
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'download', 'categoryDelete'])
]); ?>
</div>
</div>
</div>
</div>
</div>

View File

@ -5,24 +5,21 @@
<?php echo helper::translate('Permissions sur le module') . ' ' . helper::translate('Formulaire'); ?>
</h4>
<div class="row">
<div class="col4">
<?php echo template::checkbox('profilAddFormOption', true, 'Options'); ?>
<div class="col3">
<?php echo template::checkbox('profilEditFormData', true, 'Gérer les données'); ?>
</div>
<div class="col4">
<?php echo template::checkbox('profilAddFormData', true, 'Gérer les données'); ?>
<div class="col2">
<?php echo template::checkbox('profilEditFormOption', true, 'Options'); ?>
</div>
<div class="col4">
<?php echo template::checkbox('profilAddFormExport2csv', true, 'Export CSV'); ?>
<div class="col2">
<?php echo template::checkbox('profilEditFormDelete', true, 'Effacer'); ?>
</div>
<div class="col2">
<?php echo template::checkbox('profilEditFormDeleteAll', true, 'Tout Effacer'); ?>
</div>
<div class="col2">
<?php echo template::checkbox('profilEditFormExport2csv', true, 'Export CSV'); ?>
</div>
<div class="row">
<div class="col6">
<?php echo template::checkbox('profilAddFormDelete', true, 'Effacer'); ?>
</div>
<div class="col6">
<?php echo template::checkbox('profilAddFormDeleteAll', true, 'Tout Effacer'); ?>
</div>
</div>
</div>
</div>

View File

@ -5,34 +5,32 @@
<?php echo helper::translate('Permissions sur le module') . ' ' . helper::translate('Formulaire'); ?>
</h4>
<div class="row">
<div class="col4">
<?php echo template::checkbox('profilEditFormOption', true, 'Options', [
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'form', 'option'])
]); ?>
</div>
<div class="col4">
<div class="col3">
<?php echo template::checkbox('profilEditFormData', true, 'Gérer les données', [
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'form', 'data'])
]); ?>
</div>
<div class="col4">
<div class="col2">
<?php echo template::checkbox('profilEditFormOption', true, 'Options', [
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'form', 'option'])
]); ?>
</div>
<div class="col2">
<?php echo template::checkbox('profilEditFormDelete', true, 'Effacer', [
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'form', 'delete'])
]); ?>
</div>
<div class="col2">
<?php echo template::checkbox('profilEditFormDeleteAll', true, 'Tout Effacer', [
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'form', 'deleteAll'])
]); ?>
</div>
<div class="col2">
<?php echo template::checkbox('profilEditFormExport2csv', true, 'Export CSV', [
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'form', 'export2csv'])
]); ?>
</div>
</div>
<div class="row">
<div class="col6">
<?php echo template::checkbox('profilEditFormDelete', true, 'Effacer', [
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'form', 'delete'])
]); ?>
</div>
<div class="col6">
<?php echo template::checkbox('profilEditFormDeleteAll', true, 'Tout Effacer', [
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'form', 'deleteAll'])
]); ?>
</div>
</div>
</div>
</div>
</div>

View File

@ -5,21 +5,19 @@
<?php echo helper::translate('Permissions sur le module') . ' ' . helper::translate('Galerie'); ?>
</h4>
<div class="row">
<div class="col4">
<div class="col3">
<?php echo template::checkbox('profilAddGalleryAdd', true, 'Ajouter'); ?>
</div>
<div class="col4">
<div class="col3">
<?php echo template::checkbox('profilAddGalleryEdit', true, 'Éditer'); ?>
</div>
<div class="col4">
<div class="col2">
<?php echo template::checkbox('profilAddGalleryDelete', true, 'Effacer'); ?>
</div>
</div>
<div class="row">
<div class="col6">
<div class="col2">
<?php echo template::checkbox('profilAddGalleryOption', true, 'Options'); ?>
</div>
<div class="col6">
<div class="col2">
<?php echo template::checkbox('profilAddGalleryTheme', true, 'Thème'); ?>
</div>
</div>

View File

@ -5,29 +5,27 @@
<?php echo helper::translate('Permissions sur le module') . ' ' . helper::translate('Galerie'); ?>
</h4>
<div class="row">
<div class="col4">
<div class="col3">
<?php echo template::checkbox('profilEditGalleryAdd', true, 'Ajouter', [
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'gallery', 'add'])
]); ?>
</div>
<div class="col4">
<div class="col2">
<?php echo template::checkbox('profilEditGalleryEdit', true, 'Éditer', [
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'gallery', 'edit'])
]); ?>
</div>
<div class="col4">
<div class="col2">
<?php echo template::checkbox('profilEditGalleryDelete', true, 'Effacer', [
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'gallery', 'delete'])
]); ?>
</div>
</div>
<div class="row">
<div class="col6">
<div class="col2">
<?php echo template::checkbox('profilEditGalleryOption', true, 'Options', [
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'gallery', 'option'])
]); ?>
</div>
<div class="col6">
<div class="col2">
<?php echo template::checkbox('profilEditGalleryTheme', true, 'Thème', [
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'gallery', 'theme'])
]); ?>