download 4.2 le template file affiche le dossier du fichier ou de l'image sélectionnée
This commit is contained in:
parent
201a5bba8d
commit
6a46dd3b0d
@ -1,3 +1,5 @@
|
|||||||
|
# Version 4.2
|
||||||
|
- Le sélecteur de fichier affiche par défaut le chemin vers le fichier présent dans le champ.
|
||||||
# Version 4.1
|
# Version 4.1
|
||||||
- Correction fonction signature dans core.php
|
- Correction fonction signature dans core.php
|
||||||
# Version 4.0
|
# Version 4.0
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
class download extends common
|
class download extends common
|
||||||
{
|
{
|
||||||
|
|
||||||
const VERSION = '4.1';
|
const VERSION = '4.2';
|
||||||
const REALNAME = 'Téléchargement';
|
const REALNAME = 'Téléchargement';
|
||||||
const DELETE = true;
|
const DELETE = true;
|
||||||
const UPDATE = '0.0';
|
const UPDATE = '0.0';
|
||||||
|
@ -1,111 +1,112 @@
|
|||||||
<?php echo template::formOpen('downloadAddForm'); ?>
|
<?php echo template::formOpen('downloadAddForm'); ?>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col1">
|
<div class="col1">
|
||||||
<?php echo template::button('downloadAddBack', [
|
<?php echo template::button('downloadAddBack', [
|
||||||
'class' => 'buttonGrey',
|
'class' => 'buttonGrey',
|
||||||
'href' => helper::baseUrl() . $this->getUrl(0) . '/config',
|
'href' => helper::baseUrl() . $this->getUrl(0) . '/config',
|
||||||
'value' => template::ico('left')
|
'value' => template::ico('left')
|
||||||
]); ?>
|
]); ?>
|
||||||
</div>
|
|
||||||
<div class="col2 offset7">
|
|
||||||
<?php echo template::button('downloadAddDraft', [
|
|
||||||
'uniqueSubmission' => true,
|
|
||||||
'value' => 'Brouillon'
|
|
||||||
]); ?>
|
|
||||||
<?php echo template::hidden('downloadAddState', [
|
|
||||||
'value' => true
|
|
||||||
]); ?>
|
|
||||||
</div>
|
|
||||||
<div class="col2">
|
|
||||||
<?php echo template::submit('downloadAddPublish', [
|
|
||||||
'value' => 'Publier'
|
|
||||||
]); ?>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="row">
|
<div class="col2 offset7">
|
||||||
<div class="col12">
|
<?php echo template::button('downloadAddDraft', [
|
||||||
<div class="block">
|
'uniqueSubmission' => true,
|
||||||
<h4>Informations sur la ressource</h4>
|
'value' => 'Brouillon'
|
||||||
<div class="row">
|
]); ?>
|
||||||
<div class="col3">
|
<?php echo template::hidden('downloadAddState', [
|
||||||
<?php echo template::text('downloadAddTitle', [
|
'value' => true
|
||||||
'label' => 'Titre'
|
]); ?>
|
||||||
]); ?>
|
</div>
|
||||||
</div>
|
<div class="col2">
|
||||||
<div class="col3">
|
<?php echo template::submit('downloadAddPublish', [
|
||||||
<?php echo template::text('downloadAddId', [
|
'value' => 'Publier'
|
||||||
'label' => 'Id Interne',
|
]); ?>
|
||||||
]); ?>
|
</div>
|
||||||
</div>>
|
</div>
|
||||||
<div class="col3">
|
<div class="row">
|
||||||
<?php echo template::text('downloadAddVersion', [
|
<div class="col12">
|
||||||
'label' => 'Version'
|
<div class="block">
|
||||||
]); ?>
|
<h4>Informations sur la ressource</h4>
|
||||||
</div>
|
<div class="row">
|
||||||
<div class="col3">
|
<div class="col3">
|
||||||
<?php echo template::date('downloadAddversionDate', [
|
<?php echo template::text('downloadAddTitle', [
|
||||||
'label' => 'Publiée le',
|
'label' => 'Titre'
|
||||||
'type' => 'datetime-local'
|
]); ?>
|
||||||
]); ?>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="row">
|
<div class="col3">
|
||||||
<div class="col3">
|
<?php echo template::text('downloadAddId', [
|
||||||
<?php echo template::text('downloadAddAuthor', [
|
'label' => 'Id Interne',
|
||||||
'label' => 'Auteur'
|
]); ?>
|
||||||
]); ?>
|
</div>>
|
||||||
</div>
|
<div class="col3">
|
||||||
<div class="col3">
|
<?php echo template::text('downloadAddVersion', [
|
||||||
<?php echo template::select('downloadAddLicense', $module::$licenses, [
|
'label' => 'Version'
|
||||||
'label' => 'Licence'
|
]); ?>
|
||||||
]); ?>
|
|
||||||
</div>
|
|
||||||
<div class="col3">
|
|
||||||
<?php if ($module::$categories) {
|
|
||||||
echo template::select('downloadAddCategorie', $module::$categories, [
|
|
||||||
'label' => 'Catégorie'
|
|
||||||
]);
|
|
||||||
} else {
|
|
||||||
echo template::select('downloadAddCategorie', [''=>''], [
|
|
||||||
'label' => 'Pas de catégorie',
|
|
||||||
'disabled' => true
|
|
||||||
]);
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
</div>
|
|
||||||
<div class="col3">
|
|
||||||
<?php echo template::file('downloadAddThumb', [
|
|
||||||
'label' => 'Capture d\'écran',
|
|
||||||
'language' => $this->getData(['user', $this->getUser('id'), 'language']),
|
|
||||||
'type' => 1
|
|
||||||
]); ?>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="row">
|
<div class="col3">
|
||||||
<div class="col3">
|
<?php echo template::date('downloadAddversionDate', [
|
||||||
<?php echo template::select('downloadAddRessourceType', $module::$ressourceType, [
|
'label' => 'Publiée le',
|
||||||
'label' => 'Type de ressource',
|
'type' => 'datetime-local'
|
||||||
'selected' => $this->getData(['module', $this->getUrl(0), 'posts', $this->getUrl(2), 'ressourceType'])
|
]); ?>
|
||||||
]); ?>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col9">
|
<div class="row">
|
||||||
<div class="row">
|
<div class="col3">
|
||||||
<div class="col12">
|
<?php echo template::text('downloadAddAuthor', [
|
||||||
<?php echo template::file('downloadAddFile', [
|
'label' => 'Auteur'
|
||||||
'label' => 'Fichier',
|
]); ?>
|
||||||
'language' => $this->getData(['user', $this->getUser('id'), 'language']),
|
</div>
|
||||||
'value' => $this->getData(['module', $this->getUrl(0), 'posts', $this->getUrl(2), 'file'])
|
<div class="col3">
|
||||||
]); ?>
|
<?php echo template::select('downloadAddLicense', $module::$licenses, [
|
||||||
</div>
|
'label' => 'Licence'
|
||||||
<div class="col12">
|
]); ?>
|
||||||
<?php echo template::text('downloadAddUrl', [
|
</div>
|
||||||
'label' => 'URL',
|
<div class="col3">
|
||||||
'value' => $this->getData(['module', $this->getUrl(0), 'posts', $this->getUrl(2), 'url']),
|
<?php if ($module::$categories) {
|
||||||
'placeholder' => 'https://'
|
echo template::select('downloadAddCategorie', $module::$categories, [
|
||||||
]); ?>
|
'label' => 'Catégorie'
|
||||||
</div>
|
]);
|
||||||
|
} else {
|
||||||
|
echo template::select('downloadAddCategorie', ['' => ''], [
|
||||||
|
'label' => 'Pas de catégorie',
|
||||||
|
'disabled' => true
|
||||||
|
]);
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
</div>
|
||||||
|
<div class="col3">
|
||||||
|
<?php echo template::file('downloadAddThumb', [
|
||||||
|
'label' => 'Capture d\'écran',
|
||||||
|
'language' => $this->getData(['user', $this->getUser('id'), 'language']),
|
||||||
|
'type' => 1,
|
||||||
|
]); ?>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col3">
|
||||||
|
<?php echo template::select('downloadAddRessourceType', $module::$ressourceType, [
|
||||||
|
'label' => 'Type de ressource',
|
||||||
|
'selected' => $this->getData(['module', $this->getUrl(0), 'posts', $this->getUrl(2), 'ressourceType'])
|
||||||
|
]); ?>
|
||||||
|
</div>
|
||||||
|
<div class="col9">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col12">
|
||||||
|
<?php echo template::file('downloadAddFile', [
|
||||||
|
'label' => 'Fichier',
|
||||||
|
'language' => $this->getData(['user', $this->getUser('id'), 'language']),
|
||||||
|
'value' => $this->getData(['module', $this->getUrl(0), 'posts', $this->getUrl(2), 'file']),
|
||||||
|
'folder' => $this->getData(['module', $this->getUrl(0), 'posts', $this->getUrl(2), 'file']) ? dirname($this->getData(['module', $this->getUrl(0), 'posts', $this->getUrl(2), 'file'])) : ''
|
||||||
|
]); ?>
|
||||||
|
</div>
|
||||||
|
<div class="col12">
|
||||||
|
<?php echo template::text('downloadAddUrl', [
|
||||||
|
'label' => 'URL',
|
||||||
|
'value' => $this->getData(['module', $this->getUrl(0), 'posts', $this->getUrl(2), 'url']),
|
||||||
|
'placeholder' => 'https://'
|
||||||
|
]); ?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -137,9 +138,9 @@
|
|||||||
]); ?>
|
]); ?>
|
||||||
</div>
|
</div>
|
||||||
<div class="col4">
|
<div class="col4">
|
||||||
<?php echo template::select('downloadAddConsent', $module::$itemConsent , [
|
<?php echo template::select('downloadAddConsent', $module::$itemConsent, [
|
||||||
'label' => 'Edition - Suppression',
|
'label' => 'Edition - Suppression',
|
||||||
'selected' => is_numeric($this->getData(['module', $this->getUrl(0), 'posts', $this->getUrl(2), 'editConsent'])) ? $module::EDIT_GROUP : $this->getData(['module', $this->getUrl(0), 'posts', $this->getUrl(2), 'editConsent']),
|
'selected' => is_numeric($this->getData(['module', $this->getUrl(0), 'posts', $this->getUrl(2), 'editConsent'])) ? $module::EDIT_GROUP : $this->getData(['module', $this->getUrl(0), 'posts', $this->getUrl(2), 'editConsent']),
|
||||||
'help' => 'Les utilisateurs des groupes supérieurs accèdent à l\'item sans restriction'
|
'help' => 'Les utilisateurs des groupes supérieurs accèdent à l\'item sans restriction'
|
||||||
]); ?>
|
]); ?>
|
||||||
</div>
|
</div>
|
||||||
@ -159,15 +160,15 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="col4 commentOptionsWrapper ">
|
<div class="col4 commentOptionsWrapper ">
|
||||||
<?php echo template::checkbox('downloadAddCommentApproved', true, 'Approbation par un modérateur', [
|
<?php echo template::checkbox('downloadAddCommentApproved', true, 'Approbation par un modérateur', [
|
||||||
'checked' => $this->getData(['module', $this->getUrl(0), 'posts', $this->getUrl(2), 'commentApproved']),
|
'checked' => $this->getData(['module', $this->getUrl(0), 'posts', $this->getUrl(2), 'commentApproved']),
|
||||||
''
|
''
|
||||||
]); ?>
|
]); ?>
|
||||||
</div>
|
</div>
|
||||||
<div class="col4 commentOptionsWrapper">
|
<div class="col4 commentOptionsWrapper">
|
||||||
<?php echo template::select('downloadAddCommentMaxlength', $module::$commentLength,[
|
<?php echo template::select('downloadAddCommentMaxlength', $module::$commentLength, [
|
||||||
'help' => 'Choix du nombre maximum de caractères pour chaque commentaire de l\'item, mise en forme html comprise.',
|
'help' => 'Choix du nombre maximum de caractères pour chaque commentaire de l\'item, mise en forme html comprise.',
|
||||||
'label' => 'Caractères par commentaire',
|
'label' => 'Caractères par commentaire',
|
||||||
'selected' => $this->getData(['module', $this->getUrl(0), 'posts', $this->getUrl(2), 'commentMaxlength'])
|
'selected' => $this->getData(['module', $this->getUrl(0), 'posts', $this->getUrl(2), 'commentMaxlength'])
|
||||||
]); ?>
|
]); ?>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -175,12 +176,12 @@
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col3 commentOptionsWrapper offset2">
|
<div class="col3 commentOptionsWrapper offset2">
|
||||||
<?php echo template::checkbox('downloadAddCommentNotification', true, 'Notification par email', [
|
<?php echo template::checkbox('downloadAddCommentNotification', true, 'Notification par email', [
|
||||||
'checked' => $this->getData(['module', $this->getUrl(0), 'posts', $this->getUrl(2), 'commentNotification']),
|
'checked' => $this->getData(['module', $this->getUrl(0), 'posts', $this->getUrl(2), 'commentNotification']),
|
||||||
]); ?>
|
]); ?>
|
||||||
</div>
|
</div>
|
||||||
<div class="col4 commentOptionsWrapper">
|
<div class="col4 commentOptionsWrapper">
|
||||||
<?php echo template::select('downloadAddCommentGroupNotification', $module::$groupNews, [
|
<?php echo template::select('downloadAddCommentGroupNotification', $module::$groupNews, [
|
||||||
'selected' => $this->getData(['module', $this->getUrl(0), 'posts', $this->getUrl(2), 'commentGroupNotification']),
|
'selected' => $this->getData(['module', $this->getUrl(0), 'posts', $this->getUrl(2), 'commentGroupNotification']),
|
||||||
'help' => 'Editeurs = éditeurs + administrateurs<br/> Membres = membres + éditeurs + administrateurs'
|
'help' => 'Editeurs = éditeurs + administrateurs<br/> Membres = membres + éditeurs + administrateurs'
|
||||||
]); ?>
|
]); ?>
|
||||||
</div>
|
</div>
|
||||||
@ -188,4 +189,5 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
<?php echo template::formClose(); ?>
|
<?php echo template::formClose(); ?>
|
@ -1,208 +1,210 @@
|
|||||||
<?php echo template::formOpen('downloadEditForm'); ?>
|
<?php echo template::formOpen('downloadEditForm'); ?>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col1">
|
<div class="col1">
|
||||||
<?php echo template::button('downloadEditBack', [
|
<?php echo template::button('downloadEditBack', [
|
||||||
'class' => 'buttonGrey',
|
'class' => 'buttonGrey',
|
||||||
'href' => helper::baseUrl() . $this->getUrl(0) . '/config',
|
'href' => helper::baseUrl() . $this->getUrl(0) . '/config',
|
||||||
'value' => template::ico('left')
|
'value' => template::ico('left')
|
||||||
]); ?>
|
]); ?>
|
||||||
</div>
|
|
||||||
<div class="col3 offset6">
|
|
||||||
<?php echo template::button('downloadEditDraft', [
|
|
||||||
'uniqueSubmission' => true,
|
|
||||||
'value' => 'Enregistrer en brouillon'
|
|
||||||
]); ?>
|
|
||||||
<?php echo template::hidden('downloadEditState', [
|
|
||||||
'value' => true
|
|
||||||
]); ?>
|
|
||||||
</div>
|
|
||||||
<div class="col2">
|
|
||||||
<?php echo template::submit('downloadEditSubmit', [
|
|
||||||
'value' => 'Publier'
|
|
||||||
]); ?>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="row">
|
<div class="col3 offset6">
|
||||||
<div class="col12">
|
<?php echo template::button('downloadEditDraft', [
|
||||||
<div class="block">
|
'uniqueSubmission' => true,
|
||||||
<h4>Informations sur la ressource</h4>
|
'value' => 'Enregistrer en brouillon'
|
||||||
<div class="row">
|
]); ?>
|
||||||
<div class="col3">
|
<?php echo template::hidden('downloadEditState', [
|
||||||
<?php echo template::text('downloadEditTitle', [
|
'value' => true
|
||||||
'label' => 'Titre',
|
]); ?>
|
||||||
'value' => $this->getData(['module', $this->getUrl(0), 'posts', $this->getUrl(2), 'title'])
|
</div>
|
||||||
]); ?>
|
<div class="col2">
|
||||||
</div>>
|
<?php echo template::submit('downloadEditSubmit', [
|
||||||
<div class="col3">
|
'value' => 'Publier'
|
||||||
<?php echo template::text('downloadEditId', [
|
]); ?>
|
||||||
'label' => 'Id Interne',
|
|
||||||
'value' => empty($this->getData(['module', $this->getUrl(0), 'posts', $this->getUrl(2), 'id']))
|
</div>
|
||||||
? $this->getUrl(2)
|
</div>
|
||||||
: $this->getData(['module', $this->getUrl(0), 'posts', $this->getUrl(2), 'id']),
|
<div class="row">
|
||||||
]); ?>
|
<div class="col12">
|
||||||
<?php echo template::hidden('downloadEditIdOld', [
|
<div class="block">
|
||||||
'value' => $this->getData(['module', $this->getUrl(0), 'posts', $this->getUrl(2), 'id'])
|
<h4>Informations sur la ressource</h4>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col3">
|
||||||
|
<?php echo template::text('downloadEditTitle', [
|
||||||
|
'label' => 'Titre',
|
||||||
|
'value' => $this->getData(['module', $this->getUrl(0), 'posts', $this->getUrl(2), 'title'])
|
||||||
|
]); ?>
|
||||||
|
</div>>
|
||||||
|
<div class="col3">
|
||||||
|
<?php echo template::text('downloadEditId', [
|
||||||
|
'label' => 'Id Interne',
|
||||||
|
'value' => empty($this->getData(['module', $this->getUrl(0), 'posts', $this->getUrl(2), 'id']))
|
||||||
|
? $this->getUrl(2)
|
||||||
|
: $this->getData(['module', $this->getUrl(0), 'posts', $this->getUrl(2), 'id']),
|
||||||
|
]); ?>
|
||||||
|
<?php echo template::hidden('downloadEditIdOld', [
|
||||||
|
'value' => $this->getData(['module', $this->getUrl(0), 'posts', $this->getUrl(2), 'id'])
|
||||||
|
]);
|
||||||
|
?>
|
||||||
|
</div>>
|
||||||
|
<div class="col3">
|
||||||
|
<?php echo template::text('downloadEditVersion', [
|
||||||
|
'label' => 'Version',
|
||||||
|
'value' => $this->getData(['module', $this->getUrl(0), 'posts', $this->getUrl(2), 'version'])
|
||||||
|
]); ?>
|
||||||
|
</div>
|
||||||
|
<div class="col3">
|
||||||
|
<?php echo template::date('downloadEditversionDate', [
|
||||||
|
'label' => 'Publiée le',
|
||||||
|
'type' => 'datetime-local',
|
||||||
|
'value' => $this->getData(['module', $this->getUrl(0), 'posts', $this->getUrl(2), 'versionDate'])
|
||||||
|
]); ?>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col3">
|
||||||
|
<?php echo template::text('downloadEditAuthor', [
|
||||||
|
'label' => 'Auteur',
|
||||||
|
'value' => $this->getData(['module', $this->getUrl(0), 'posts', $this->getUrl(2), 'author'])
|
||||||
|
]); ?>
|
||||||
|
</div>
|
||||||
|
<div class="col3">
|
||||||
|
<?php echo template::select('downloadEditLicense', $module::$licenses, [
|
||||||
|
'label' => 'Licence',
|
||||||
|
'selected' => $this->getData(['module', $this->getUrl(0), 'posts', $this->getUrl(2), 'license'])
|
||||||
|
]); ?>
|
||||||
|
</div>
|
||||||
|
<div class="col3">
|
||||||
|
<?php if ($module::$categories) {
|
||||||
|
echo template::select('downloadEditCategorie', $module::$categories, [
|
||||||
|
'label' => 'Catégorie',
|
||||||
|
'selected' => $this->getData(['module', $this->getUrl(0), 'posts', $this->getUrl(2), 'category'])
|
||||||
]);
|
]);
|
||||||
?>
|
} else {
|
||||||
</div>>
|
echo template::select('downloadEditCategorie', ['' => ''], [
|
||||||
<div class="col3">
|
'label' => 'Pas de catégorie',
|
||||||
<?php echo template::text('downloadEditVersion', [
|
'disabled' => true
|
||||||
'label' => 'Version',
|
]);
|
||||||
'value' => $this->getData(['module', $this->getUrl(0), 'posts', $this->getUrl(2), 'version'])
|
}
|
||||||
]); ?>
|
?>
|
||||||
</div>
|
|
||||||
<div class="col3">
|
|
||||||
<?php echo template::date('downloadEditversionDate', [
|
|
||||||
'label' => 'Publiée le',
|
|
||||||
'type' => 'datetime-local',
|
|
||||||
'value' => $this->getData(['module', $this->getUrl(0), 'posts', $this->getUrl(2), 'versionDate'])
|
|
||||||
]); ?>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="row">
|
<div class="col3">
|
||||||
<div class="col3">
|
<?php echo template::file('downloadEditThumb', [
|
||||||
<?php echo template::text('downloadEditAuthor', [
|
'label' => 'Capture d\'écran',
|
||||||
'label' => 'Auteur',
|
'language' => $this->getData(['user', $this->getUser('id'), 'language']),
|
||||||
'value' => $this->getData(['module', $this->getUrl(0), 'posts', $this->getUrl(2), 'author'])
|
'type' => 1,
|
||||||
]); ?>
|
'value' => $this->getData(['module', $this->getUrl(0), 'posts', $this->getUrl(2), 'thumb']),
|
||||||
</div>
|
'folder' => $this->getData(['module', $this->getUrl(0), 'posts', $this->getUrl(2), 'thumb']) ? dirname($this->getData(['module', $this->getUrl(0), 'posts', $this->getUrl(2), 'thumb'])) : ''
|
||||||
<div class="col3">
|
]); ?>
|
||||||
<?php echo template::select('downloadEditLicense', $module::$licenses, [
|
|
||||||
'label' => 'Licence',
|
|
||||||
'selected' => $this->getData(['module', $this->getUrl(0), 'posts', $this->getUrl(2), 'license'])
|
|
||||||
]); ?>
|
|
||||||
</div>
|
|
||||||
<div class="col3">
|
|
||||||
<?php if ($module::$categories) {
|
|
||||||
echo template::select('downloadEditCategorie', $module::$categories, [
|
|
||||||
'label' => 'Catégorie',
|
|
||||||
'selected' => $this->getData(['module', $this->getUrl(0), 'posts', $this->getUrl(2), 'category'])
|
|
||||||
]);
|
|
||||||
} else {
|
|
||||||
echo template::select('downloadEditCategorie', [''=>''], [
|
|
||||||
'label' => 'Pas de catégorie',
|
|
||||||
'disabled' => true
|
|
||||||
]);
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
</div>
|
|
||||||
<div class="col3">
|
|
||||||
<?php echo template::file('downloadEditThumb', [
|
|
||||||
'label' => 'Capture d\'écran',
|
|
||||||
'language' => $this->getData(['user', $this->getUser('id'), 'language']),
|
|
||||||
'type' => 1,
|
|
||||||
'value' => $this->getData(['module', $this->getUrl(0), 'posts', $this->getUrl(2), 'thumb'])
|
|
||||||
]); ?>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="row">
|
</div>
|
||||||
<div class="col3">
|
<div class="row">
|
||||||
<?php echo template::select('downloadEditRessourceType', $module::$ressourceType, [
|
<div class="col3">
|
||||||
'label' => 'Type de ressource',
|
<?php echo template::select('downloadEditRessourceType', $module::$ressourceType, [
|
||||||
'selected' => $this->getData(['module', $this->getUrl(0), 'posts', $this->getUrl(2), 'ressourceType'])
|
'label' => 'Type de ressource',
|
||||||
]); ?>
|
'selected' => $this->getData(['module', $this->getUrl(0), 'posts', $this->getUrl(2), 'ressourceType'])
|
||||||
</div>
|
]); ?>
|
||||||
<div class="col9">
|
</div>
|
||||||
<div class="row">
|
<div class="col9">
|
||||||
<div class="col12">
|
<div class="row">
|
||||||
<?php echo template::file('downloadEditFile', [
|
<div class="col12">
|
||||||
'label' => 'Fichier',
|
<?php echo template::file('downloadEditFile', [
|
||||||
'language' => $this->getData(['user', $this->getUser('id'), 'language']),
|
'label' => 'Fichier',
|
||||||
'value' => $this->getData(['module', $this->getUrl(0), 'posts', $this->getUrl(2), 'file'])
|
'language' => $this->getData(['user', $this->getUser('id'), 'language']),
|
||||||
]); ?>
|
'value' => $this->getData(['module', $this->getUrl(0), 'posts', $this->getUrl(2), 'file']),
|
||||||
</div>
|
'folder' => $this->getData(['module', $this->getUrl(0), 'posts', $this->getUrl(2), 'file']) ? dirname($this->getData(['module', $this->getUrl(0), 'posts', $this->getUrl(2), 'file'])) : ''
|
||||||
<div class="col12">
|
]); ?>
|
||||||
<?php echo template::text('downloadEditUrl', [
|
</div>
|
||||||
'label' => 'URL',
|
<div class="col12">
|
||||||
'value' => $this->getData(['module', $this->getUrl(0), 'posts', $this->getUrl(2), 'url']),
|
<?php echo template::text('downloadEditUrl', [
|
||||||
'placeholder' => 'https://'
|
'label' => 'URL',
|
||||||
]); ?>
|
'value' => $this->getData(['module', $this->getUrl(0), 'posts', $this->getUrl(2), 'url']),
|
||||||
</div>
|
'placeholder' => 'https://'
|
||||||
|
]); ?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="row">
|
</div>
|
||||||
<div class="col12">
|
<div class="row">
|
||||||
<?php echo template::textarea('downloadEditContent', [
|
<div class="col12">
|
||||||
'class' => 'editorWysiwyg',
|
<?php echo template::textarea('downloadEditContent', [
|
||||||
'value' => $this->getData(['module', $this->getUrl(0), 'posts', $this->getUrl(2), 'content'])
|
'class' => 'editorWysiwyg',
|
||||||
]); ?>
|
'value' => $this->getData(['module', $this->getUrl(0), 'posts', $this->getUrl(2), 'content'])
|
||||||
</div>
|
]); ?>
|
||||||
</div>
|
</div>
|
||||||
<div class="row">
|
</div>
|
||||||
<div class="col12">
|
<div class="row">
|
||||||
<div class="block">
|
<div class="col12">
|
||||||
<h4>Options de publication</h4>
|
<div class="block">
|
||||||
<div class="row">
|
<h4>Options de publication</h4>
|
||||||
<div class="col4">
|
<div class="row">
|
||||||
<?php echo template::select('downloadEditUserId', $module::$users, [
|
<div class="col4">
|
||||||
'label' => 'Auteur',
|
<?php echo template::select('downloadEditUserId', $module::$users, [
|
||||||
'selected' => $this->getUser('id'),
|
'label' => 'Auteur',
|
||||||
'disabled' => $this->getUser('group') !== self::GROUP_ADMIN ? true : false
|
'selected' => $this->getUser('id'),
|
||||||
]); ?>
|
'disabled' => $this->getUser('group') !== self::GROUP_ADMIN ? true : false
|
||||||
</div>
|
]); ?>
|
||||||
<div class="col4">
|
</div>
|
||||||
<?php echo template::date('downloadEditPublishedOn', [
|
<div class="col4">
|
||||||
'help' => 'L\'item n\'est visible qu\'après la date de publication prévue.',
|
<?php echo template::date('downloadEditPublishedOn', [
|
||||||
'label' => 'Date de publication',
|
'help' => 'L\'item n\'est visible qu\'après la date de publication prévue.',
|
||||||
'value' => $this->getData(['module', $this->getUrl(0), 'posts', $this->getUrl(2), 'publishedOn']),
|
'label' => 'Date de publication',
|
||||||
'type' => 'datetime-local'
|
'value' => $this->getData(['module', $this->getUrl(0), 'posts', $this->getUrl(2), 'publishedOn']),
|
||||||
]); ?>
|
'type' => 'datetime-local'
|
||||||
</div>
|
]); ?>
|
||||||
<div class="col4">
|
</div>
|
||||||
<?php echo template::select('downloadEditConsent', $module::$itemConsent , [
|
<div class="col4">
|
||||||
'label' => 'Edition - Suppression',
|
<?php echo template::select('downloadEditConsent', $module::$itemConsent, [
|
||||||
'selected' => is_numeric($this->getData(['module', $this->getUrl(0), 'posts', $this->getUrl(2), 'editConsent'])) ? $module::EDIT_GROUP : $this->getData(['module', $this->getUrl(0), 'posts', $this->getUrl(2), 'editConsent']),
|
'label' => 'Edition - Suppression',
|
||||||
'help' => 'Les utilisateurs des groupes supérieurs accèdent à l\'item sans restriction'
|
'selected' => is_numeric($this->getData(['module', $this->getUrl(0), 'posts', $this->getUrl(2), 'editConsent'])) ? $module::EDIT_GROUP : $this->getData(['module', $this->getUrl(0), 'posts', $this->getUrl(2), 'editConsent']),
|
||||||
]); ?>
|
'help' => 'Les utilisateurs des groupes supérieurs accèdent à l\'item sans restriction'
|
||||||
</div>
|
]); ?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="row">
|
</div>
|
||||||
<div class="col12">
|
<div class="row">
|
||||||
<div class="block">
|
<div class="col12">
|
||||||
<h4>Commentaires</h4>
|
<div class="block">
|
||||||
<div class="row">
|
<h4>Commentaires</h4>
|
||||||
<div class="col4 ">
|
<div class="row">
|
||||||
<?php echo template::checkbox('downloadEditCommentClose', true, 'Fermer les commentaires', [
|
<div class="col4 ">
|
||||||
'checked' => $this->getData(['module', $this->getUrl(0), 'posts', $this->getUrl(2), 'commentClose'])
|
<?php echo template::checkbox('downloadEditCommentClose', true, 'Fermer les commentaires', [
|
||||||
]); ?>
|
'checked' => $this->getData(['module', $this->getUrl(0), 'posts', $this->getUrl(2), 'commentClose'])
|
||||||
</div>
|
]); ?>
|
||||||
<div class="col4 commentOptionsWrapper ">
|
</div>
|
||||||
<?php echo template::checkbox('downloadEditCommentApproved', true, 'Approbation par un modérateur', [
|
<div class="col4 commentOptionsWrapper ">
|
||||||
'checked' => $this->getData(['module', $this->getUrl(0), 'posts', $this->getUrl(2), 'commentApproved']),
|
<?php echo template::checkbox('downloadEditCommentApproved', true, 'Approbation par un modérateur', [
|
||||||
''
|
'checked' => $this->getData(['module', $this->getUrl(0), 'posts', $this->getUrl(2), 'commentApproved']),
|
||||||
]); ?>
|
''
|
||||||
</div>
|
]); ?>
|
||||||
<div class="col4 commentOptionsWrapper">
|
</div>
|
||||||
<?php echo template::select('downloadEditCommentMaxlength', $module::$commentLength,[
|
<div class="col4 commentOptionsWrapper">
|
||||||
'help' => 'Choix du nombre maximum de caractères pour chaque commentaire de l\'item, mise en forme html comprise.',
|
<?php echo template::select('downloadEditCommentMaxlength', $module::$commentLength, [
|
||||||
'label' => 'Caractères par commentaire',
|
'help' => 'Choix du nombre maximum de caractères pour chaque commentaire de l\'item, mise en forme html comprise.',
|
||||||
'selected' => $this->getData(['module', $this->getUrl(0), 'posts', $this->getUrl(2), 'commentMaxlength'])
|
'label' => 'Caractères par commentaire',
|
||||||
]); ?>
|
'selected' => $this->getData(['module', $this->getUrl(0), 'posts', $this->getUrl(2), 'commentMaxlength'])
|
||||||
</div>
|
]); ?>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col3 commentOptionsWrapper offset2">
|
||||||
|
<?php echo template::checkbox('downloadEditCommentNotification', true, 'Notification par email', [
|
||||||
|
'checked' => $this->getData(['module', $this->getUrl(0), 'posts', $this->getUrl(2), 'commentNotification']),
|
||||||
|
]); ?>
|
||||||
</div>
|
</div>
|
||||||
<div class="row">
|
<div class="col4 commentOptionsWrapper">
|
||||||
<div class="col3 commentOptionsWrapper offset2">
|
<?php echo template::select('downloadEditCommentGroupNotification', $module::$groupNews, [
|
||||||
<?php echo template::checkbox('downloadEditCommentNotification', true, 'Notification par email', [
|
'selected' => $this->getData(['module', $this->getUrl(0), 'posts', $this->getUrl(2), 'commentGroupNotification']),
|
||||||
'checked' => $this->getData(['module', $this->getUrl(0), 'posts', $this->getUrl(2), 'commentNotification']),
|
'help' => 'Editeurs = éditeurs + administrateurs<br/> Membres = membres + éditeurs + administrateurs'
|
||||||
]); ?>
|
]); ?>
|
||||||
</div>
|
|
||||||
<div class="col4 commentOptionsWrapper">
|
|
||||||
<?php echo template::select('downloadEditCommentGroupNotification', $module::$groupNews, [
|
|
||||||
'selected' => $this->getData(['module', $this->getUrl(0), 'posts', $this->getUrl(2), 'commentGroupNotification']),
|
|
||||||
'help' => 'Editeurs = éditeurs + administrateurs<br/> Membres = membres + éditeurs + administrateurs'
|
|
||||||
]); ?>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
<?php echo template::formClose(); ?>
|
<?php echo template::formClose(); ?>
|
Loading…
Reference in New Issue
Block a user