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

140 lines
6.8 KiB
PHP
Raw Normal View History

2023-03-31 17:02:56 +02:00
<?php echo template::formOpen('profilAddForm'); ?>
<div class="row">
<div class="col1">
<?php echo template::button('profilAddBack', [
'class' => 'buttonGrey',
'href' => helper::baseUrl() . 'user/profil',
'value' => template::ico('left')
]); ?>
</div>
<div class="col2 offset9">
<?php echo template::submit('profilAddSubmit'); ?>
</div>
</div>
<div class="row">
<div class="col12">
<div class="block">
<h4>
<?php echo helper::translate('Paramètres'); ?>
</h4>
<div class="row">
<div class="col6">
<div class="row">
<div class="col12">
2023-05-10 16:58:56 +02:00
<?php echo template::text('profilAddName', [
2023-03-31 17:02:56 +02:00
'label' => 'Nom du profil',
'value' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'name'])
]); ?>
</div>
<div class="col12">
2023-05-10 16:58:56 +02:00
<?php echo template::select('profilAddGroup', $module::$groupProfils, [
2023-03-31 17:02:56 +02:00
'label' => 'Groupe',
'selected' => $this->getUrl(2)
]); ?>
</div>
</div>
</div>
<div class="col6">
2023-05-10 16:58:56 +02:00
<?php echo template::textarea('profilAddComment', [
2023-03-31 17:02:56 +02:00
'label' => 'Commentaire',
'value' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'comment'])
]); ?>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col12">
<div class="block">
<h4>
<?php echo helper::translate('Gestionnaire de fichiers'); ?>
</h4>
<div class="row">
<div class="col3">
2023-05-10 16:50:02 +02:00
<?php echo template::checkbox('profilAddFileManager', true, 'Activé'); ?>
2023-03-31 17:02:56 +02:00
</div>
<div class="col6">
<?php echo template::select('profilAddPath', $module::$sharePath, [
'label' => 'Racine du dossier',
'class' => 'filemanager',
2023-03-31 17:02:56 +02:00
]); ?>
</div>
</div>
<div class="row">
<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('profilAddFolderCreate', true, 'Création', ['class' => 'filemanager']); ?>
2023-03-31 17:02:56 +02:00
</div>
<div class="col2">
<?php echo template::checkbox('profilAddFolderDelete', true, 'Effacement', ['class' => 'filemanager']); ?>
2023-03-31 17:02:56 +02:00
</div>
<div class="col2">
<?php echo template::checkbox('profilAddFolderRename', true, 'Nommage', ['class' => 'filemanager']); ?>
2023-03-31 17:02:56 +02:00
</div>
<div class="col2">
<?php echo template::checkbox('profilAddFolderCopycut', true, 'Coupé collé', ['class' => 'filemanager']); ?>
2023-03-31 17:02:56 +02:00
</div>
<div class="col2">
<?php echo template::checkbox('profilAddFolderChmod', true, 'Droits sur les dossiers', ['class' => 'filemanager']); ?>
2023-03-31 17:02:56 +02:00
</div>
</div>
</div>
</div>
</div>
<div class="row">
<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('profilAddDownload', true, 'Téléchargement', ['class' => 'filemanager']); ?>
2023-03-31 17:02:56 +02:00
</div>
<div class="col2">
<?php echo template::checkbox('profilAddEdit', true, 'Edition', ['class' => 'filemanager']); ?>
2023-03-31 17:02:56 +02:00
</div>
<div class="col2">
<?php echo template::checkbox('profilAddCreate', true, 'Création', ['class' => 'filemanager']); ?>
2023-03-31 17:02:56 +02:00
</div>
<div class="col2">
<?php echo template::checkbox('profilAddRename', true, 'Nommage', ['class' => 'filemanager']); ?>
2023-03-31 17:02:56 +02:00
</div>
<div class="col2">
<?php echo template::checkbox('profilAddUpload', true, 'Téléversement', ['class' => 'filemanager']); ?>
2023-03-31 17:02:56 +02:00
</div>
<div class="col2">
<?php echo template::checkbox('profilAddDelete', true, 'Effacement', ['class' => 'filemanager']); ?>
2023-03-31 17:02:56 +02:00
</div>
</div>
<div class="row">
<div class="col2">
<?php echo template::checkbox('profilAddPreview', true, 'Prévisualisation', ['class' => 'filemanager']); ?>
2023-03-31 17:02:56 +02:00
</div>
<div class="col2">
<?php echo template::checkbox('profilAddDuplicate', true, 'Duplication', ['class' => 'filemanager']); ?>
2023-03-31 17:02:56 +02:00
</div>
<div class="col2">
<?php echo template::checkbox('profilAddExtract', true, 'Extraction', ['class' => 'filemanager']); ?>
2023-03-31 17:02:56 +02:00
</div>
<div class="col2">
<?php echo template::checkbox('profilAddCopycut', true, 'Coupé collé', ['class' => 'filemanager']); ?>
2023-03-31 17:02:56 +02:00
</div>
<div class="col2">
<?php echo template::checkbox('profilAddChmod', true, 'Droits sur les fichiers', ['class' => 'filemanager']); ?>
2023-03-31 17:02:56 +02:00
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<?php echo template::formClose(); ?>