Layout profil gallery

This commit is contained in:
Fred Tempez 2023-11-07 10:13:52 +01:00
parent 2e76d9d305
commit bc817b750e
2 changed files with 15 additions and 11 deletions

View File

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

View File

@ -2,30 +2,32 @@
<div class="col12">
<div class="block">
<h4>
<?php echo sprintf('%s %s', helper::translate('Permissions'), helper::translate('Galerie')); ?>
<?php echo sprintf('%s %s', helper::translate('Permissions'), helper::translate('Galerie')); ?>
</h4>
<div class="row">
<div class="col3">
<div class="col4">
<?php echo template::checkbox('profilEditGalleryAdd', true, 'Ajouter une galerie', [
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'gallery', 'add'])
]); ?>
</div>
<div class="col2">
<div class="col4">
<?php echo template::checkbox('profilEditGalleryEdit', true, 'Éditer une galerie', [
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'gallery', 'edit'])
]); ?>
</div>
<div class="col2">
<div class="col4">
<?php echo template::checkbox('profilEditGalleryDelete', true, 'Effacer une galerie', [
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'gallery', 'delete'])
]); ?>
</div>
<div class="col2">
</div>
<div class="row">
<div class="col6">
<?php echo template::checkbox('profilEditGalleryOption', true, 'Options des galeries', [
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'gallery', 'option'])
]); ?>
</div>
<div class="col2">
<div class="col6">
<?php echo template::checkbox('profilEditGalleryTheme', true, 'Thème des galeries', [
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'gallery', 'theme'])
]); ?>