ZwiiCMS/core/module/user/view/permissionEdit/permissionEdit.php

164 lines
8.8 KiB
PHP
Raw Normal View History

<?php echo template::formOpen('permissionEditForm'); ?>
<div class="row">
<div class="col1">
<?php echo template::button('permissionEditBack', [
'class' => 'buttonGrey',
'href' => helper::baseUrl() . 'user/permission',
'value' => template::ico('left')
]); ?>
</div>
<div class="col2 offset9">
<?php echo template::submit('permissionEditSubmit'); ?>
</div>
</div>
2023-03-31 14:36:19 +02:00
<div class="row">
<div class="col12">
<div class="block">
<h4>
<?php echo helper::translate('Identité'); ?>
</h4>
<div class="row">
<div class="col6">
<?php echo template::text('permissionEditName', [
'label' => 'Profil',
'value' => $this->getData(['permission', $this->getUrl(2), $this->getUrl(3), 'name'])
]); ?>
</div>
<div class="col6">
<?php echo template::textarea('permissionEditComment', [
'label' => 'Commentaire',
'value' => $this->getData(['permission', $this->getUrl(2), $this->getUrl(3), 'comment'])
]); ?>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col12">
<div class="block">
<h4>
2023-03-29 19:28:03 +02:00
<?php echo helper::translate('Gestionnaire de fichiers'); ?>
</h4>
<div class="row">
2023-03-29 19:28:03 +02:00
<div class="col3">
<?php echo template::checkbox('permissionEditShare', true, 'Activé', [
2023-03-31 14:36:19 +02:00
'checked' => $this->getData(['permission', $this->getUrl(2), $this->getUrl(3), 'folder', 'share'])
]); ?>
</div>
2023-03-29 19:28:03 +02:00
<div class="col6">
<?php echo template::select('permissionEditPath', $module::$sharePath, [
'label' => 'Racine du dossier',
2023-03-31 14:36:19 +02:00
'selected' => $this->getData(['permission', $this->getUrl(2), $this->getUrl(3), 'folder', 'path'])
]); ?>
</div>
</div>
<div class="row">
2023-03-29 19:28:03 +02:00
<div class="col12">
<div class="block">
<h4>
<?php echo helper::translate('Permissions sur les dossiers'); ?>
</h4>
<div class="row">
<div class="col2">
<?php echo template::checkbox('permissionEditFolderCreate', true, 'Création', [
2023-03-31 14:36:19 +02:00
'checked' => $this->getData(['permission', $this->getUrl(2), $this->getUrl(3), 'folder', 'create'])
2023-03-29 19:28:03 +02:00
]); ?>
</div>
<div class="col2">
<?php echo template::checkbox('permissionEditFolderDelete', true, 'Effacement', [
2023-03-31 14:36:19 +02:00
'checked' => $this->getData(['permission', $this->getUrl(2), $this->getUrl(3), 'folder', 'delete'])
2023-03-29 19:28:03 +02:00
]); ?>
</div>
<div class="col2">
<?php echo template::checkbox('permissionEditFolderRename', true, 'Nommage', [
2023-03-31 14:36:19 +02:00
'checked' => $this->getData(['permission', $this->getUrl(2), $this->getUrl(3), 'folder', 'rename'])
2023-03-29 19:28:03 +02:00
]); ?>
</div>
<div class="col2">
<?php echo template::checkbox('permissionEditFolderCopycut', true, 'Coupé collé', [
2023-03-31 14:36:19 +02:00
'checked' => $this->getData(['permission', $this->getUrl(2), $this->getUrl(3), 'folder', 'copycut'])
2023-03-29 19:28:03 +02:00
]); ?>
</div>
<div class="col2">
<?php echo template::checkbox('permissionEditFolderPermission', true, 'Permissions', [
2023-03-31 14:36:19 +02:00
'checked' => $this->getData(['permission', $this->getUrl(2), $this->getUrl(3), 'folder', 'permission'])
2023-03-29 19:28:03 +02:00
]); ?>
</div>
</div>
</div>
</div>
</div>
<div class="row">
2023-03-29 19:28:03 +02:00
<div class="col12">
<div class="block">
<h4>
<?php echo helper::translate('Permissions sur les fichiers'); ?>
</h4>
<div class="row">
<div class="col2">
<?php echo template::checkbox('permissionEditDownload', true, 'Téléchargement', [
2023-03-31 14:36:19 +02:00
'checked' => $this->getData(['permission', $this->getUrl(2), $this->getUrl(3), 'file', 'download'])
2023-03-29 19:28:03 +02:00
]); ?>
</div>
<div class="col2">
<?php echo template::checkbox('permissionEditEdit', true, 'Edition', [
2023-03-31 14:36:19 +02:00
'checked' => $this->getData(['permission', $this->getUrl(2), $this->getUrl(3), 'file', 'edit'])
2023-03-29 19:28:03 +02:00
]); ?>
</div>
<div class="col2">
<?php echo template::checkbox('permissionEditCreate', true, 'Création', [
2023-03-31 14:36:19 +02:00
'checked' => $this->getData(['permission', $this->getUrl(2), $this->getUrl(3), 'file', 'create'])
2023-03-29 19:28:03 +02:00
]); ?>
</div>
<div class="col2">
<?php echo template::checkbox('permissionEditRename', true, 'Nommage', [
2023-03-31 14:36:19 +02:00
'checked' => $this->getData(['permission', $this->getUrl(2), $this->getUrl(3), 'file', 'rename'])
2023-03-29 19:28:03 +02:00
]); ?>
</div>
<div class="col2">
<?php echo template::checkbox('permissionEditUpload', true, 'Téléversement', [
2023-03-31 14:36:19 +02:00
'checked' => $this->getData(['permission', $this->getUrl(2), $this->getUrl(3), 'file', 'upload'])
2023-03-29 19:28:03 +02:00
]); ?>
</div>
<div class="col2">
<?php echo template::checkbox('permissionEditDelete', true, 'Effacement', [
2023-03-31 14:36:19 +02:00
'checked' => $this->getData(['permission', $this->getUrl(2), $this->getUrl(3), 'file', 'delete'])
2023-03-29 19:28:03 +02:00
]); ?>
</div>
</div>
<div class="row">
<div class="col2">
<?php echo template::checkbox('permissionEditPreview', true, 'Prévisualisation', [
2023-03-31 14:36:19 +02:00
'checked' => $this->getData(['permission', $this->getUrl(2), $this->getUrl(3), 'file', 'preview'])
2023-03-29 19:28:03 +02:00
]); ?>
</div>
<div class="col2">
<?php echo template::checkbox('permissionEditDuplicate', true, 'Duplication', [
2023-03-31 14:36:19 +02:00
'checked' => $this->getData(['permission', $this->getUrl(2), $this->getUrl(3), 'file', 'duplicate'])
2023-03-29 19:28:03 +02:00
]); ?>
</div>
<div class="col2">
<?php echo template::checkbox('permissionEditExtract', true, 'Extraction', [
2023-03-31 14:36:19 +02:00
'checked' => $this->getData(['permission', $this->getUrl(2), $this->getUrl(3), 'file', 'extract'])
2023-03-29 19:28:03 +02:00
]); ?>
</div>
<div class="col2">
<?php echo template::checkbox('permissionEditCopycut', true, 'Coupé collé', [
2023-03-31 14:36:19 +02:00
'checked' => $this->getData(['permission', $this->getUrl(2), $this->getUrl(3), 'file', 'copycut'])
2023-03-29 19:28:03 +02:00
]); ?>
</div>
<div class="col2">
<?php echo template::checkbox('permissionEditPermission', true, 'Permissions', [
2023-03-31 14:36:19 +02:00
'checked' => $this->getData(['permission', $this->getUrl(2), $this->getUrl(3), 'file', 'permission'])
2023-03-29 19:28:03 +02:00
]); ?>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
2023-03-29 19:28:03 +02:00
<?php echo template::formClose(); ?>