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

174 lines
9.2 KiB
PHP

<?php echo template::formOpen('profilEditForm'); ?>
<div class="row">
<div class="col1">
<?php echo template::button('profilEditBack', [
'class' => 'buttonGrey',
'href' => helper::baseUrl() . 'user/profil',
'value' => template::ico('left')
]); ?>
</div>
<div class="col2 offset9">
<?php echo template::submit('profilEditSubmit'); ?>
</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">
<?php echo template::text('profilEditName', [
'label' => 'Nom du profil',
'value' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'name'])
]); ?>
</div>
<div class="col12">
<?php echo template::select('profilEditGroup', $module::$groupProfils, [
'label' => 'Groupe',
'selected' => $this->getUrl(2)
]); ?>
</div>
</div>
</div>
<div class="col6">
<?php echo template::textarea('profilEditComment', [
'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">
<?php echo template::checkbox('profilEditShare', true, 'Activé', [
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'folder', 'share'])
]); ?>
</div>
<div class="col6">
<?php echo template::select('profilEditPath', $module::$sharePath, [
'label' => 'Racine du dossier',
'selected' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'folder', 'path'])
]); ?>
</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('profilEditFolderCreate', true, 'Création', [
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'folder', 'create'])
]); ?>
</div>
<div class="col2">
<?php echo template::checkbox('profilEditFolderDelete', true, 'Effacement', [
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'folder', 'delete'])
]); ?>
</div>
<div class="col2">
<?php echo template::checkbox('profilEditFolderRename', true, 'Nommage', [
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'folder', 'rename'])
]); ?>
</div>
<div class="col2">
<?php echo template::checkbox('profilEditFolderCopycut', true, 'Coupé collé', [
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'folder', 'copycut'])
]); ?>
</div>
<div class="col2">
<?php echo template::checkbox('profilEditFolderChmod', true, 'Droits sur les dossiers', [
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'folder', 'chmod'])
]); ?>
</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('profilEditDownload', true, 'Téléchargement', [
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'file', 'download'])
]); ?>
</div>
<div class="col2">
<?php echo template::checkbox('profilEditEdit', true, 'Edition', [
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'file', 'edit'])
]); ?>
</div>
<div class="col2">
<?php echo template::checkbox('profilEditCreate', true, 'Création', [
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'file', 'create'])
]); ?>
</div>
<div class="col2">
<?php echo template::checkbox('profilEditRename', true, 'Nommage', [
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'file', 'rename'])
]); ?>
</div>
<div class="col2">
<?php echo template::checkbox('profilEditUpload', true, 'Téléversement', [
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'file', 'upload'])
]); ?>
</div>
<div class="col2">
<?php echo template::checkbox('profilEditDelete', true, 'Effacement', [
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'file', 'delete'])
]); ?>
</div>
</div>
<div class="row">
<div class="col2">
<?php echo template::checkbox('profilEditPreview', true, 'Prévisualisation', [
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'file', 'preview'])
]); ?>
</div>
<div class="col2">
<?php echo template::checkbox('profilEditDuplicate', true, 'Duplication', [
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'file', 'duplicate'])
]); ?>
</div>
<div class="col2">
<?php echo template::checkbox('profilEditExtract', true, 'Extraction', [
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'file', 'extract'])
]); ?>
</div>
<div class="col2">
<?php echo template::checkbox('profilEditCopycut', true, 'Coupé collé', [
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'file', 'copycut'])
]); ?>
</div>
<div class="col2">
<?php echo template::checkbox('profilEditChmod', true, 'Droits sur les fichiers', [
'checked' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'file', 'chmod'])
]); ?>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<?php echo template::formClose(); ?>