2018-04-02 08:29:19 +02:00
|
|
|
<?php echo template::formOpen('galleryEditForm'); ?>
|
|
|
|
<div class="row">
|
2022-01-20 10:50:40 +01:00
|
|
|
<div class="col1">
|
2018-04-02 08:29:19 +02:00
|
|
|
<?php echo template::button('galleryEditBack', [
|
|
|
|
'class' => 'buttonGrey',
|
|
|
|
'href' => helper::baseUrl() . $this->getUrl(0) . '/config',
|
2022-01-20 10:50:40 +01:00
|
|
|
'value' => template::ico('left')
|
2018-04-02 08:29:19 +02:00
|
|
|
]); ?>
|
|
|
|
</div>
|
2022-01-20 10:50:40 +01:00
|
|
|
<div class="col2 offset9">
|
2018-04-02 08:29:19 +02:00
|
|
|
<?php echo template::submit('galleryEditSubmit'); ?>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col12">
|
|
|
|
<div class="block">
|
2020-04-09 23:12:15 +02:00
|
|
|
<h4>Paramètre des images</h4>
|
2018-04-02 08:29:19 +02:00
|
|
|
<div class="row">
|
2020-03-23 17:53:43 +01:00
|
|
|
<div class="col5">
|
2018-04-02 08:29:19 +02:00
|
|
|
<?php echo template::text('galleryEditName', [
|
|
|
|
'label' => 'Nom',
|
2021-04-05 08:59:24 +02:00
|
|
|
'value' => $this->getData(['module', $this->getUrl(0), 'content', $this->getUrl(2), 'config', 'name'])
|
2018-04-02 08:29:19 +02:00
|
|
|
]); ?>
|
|
|
|
</div>
|
2020-02-28 14:24:46 +01:00
|
|
|
<div class="col4">
|
2018-04-02 08:29:19 +02:00
|
|
|
<?php echo template::hidden('galleryEditDirectoryOld', [
|
2021-04-05 08:59:24 +02:00
|
|
|
'value' => $this->getData(['module', $this->getUrl(0), 'content', $this->getUrl(2), 'config', 'directory']),
|
2018-04-02 08:29:19 +02:00
|
|
|
'noDirty' => true // Désactivé à cause des modifications en ajax
|
|
|
|
]); ?>
|
|
|
|
<?php echo template::select('galleryEditDirectory', [], [
|
|
|
|
'label' => 'Dossier cible',
|
|
|
|
'noDirty' => true // Désactivé à cause des modifications en ajax
|
|
|
|
]); ?>
|
|
|
|
</div>
|
2020-03-23 17:53:43 +01:00
|
|
|
<div class="col3">
|
2020-02-23 17:32:39 +01:00
|
|
|
<?php echo template::select('galleryEditSort', $module::$sort, [
|
2021-04-05 08:59:24 +02:00
|
|
|
'selected' => $this->getData(['module', $this->getUrl(0), 'content', $this->getUrl(2), 'config', 'sort']),
|
2020-02-22 22:51:46 +01:00
|
|
|
'label' => 'Tri des images',
|
2020-04-29 16:34:27 +02:00
|
|
|
'help' => 'Tri manuel : déplacez le images dans le tableau ci-dessous. L\'ordre est sauvegardé automatiquement.'
|
2021-04-09 16:42:13 +02:00
|
|
|
]); ?>
|
2020-04-16 22:34:59 +02:00
|
|
|
</div>
|
|
|
|
<div clas="row">
|
|
|
|
<div class="col12">
|
|
|
|
<?php echo template::checkbox('galleryEditFullscreen', true, 'Mode plein écran automatique' , [
|
2021-04-05 08:59:24 +02:00
|
|
|
'checked' => $this->getData(['module', $this->getUrl(0), 'content', $this->getUrl(2), 'config', 'fullScreen']),
|
2020-04-16 22:34:59 +02:00
|
|
|
'help' => 'A l\'ouverture de la galerie, la première image est affichée en plein écran.'
|
2021-04-09 16:42:13 +02:00
|
|
|
]); ?>
|
|
|
|
</div>
|
2020-02-22 22:51:46 +01:00
|
|
|
</div>
|
2020-04-09 23:12:15 +02:00
|
|
|
<div class="row">
|
|
|
|
<div class="col12">
|
|
|
|
<?php if($module::$pictures): ?>
|
|
|
|
<?php echo template::table([1, 4, 1, 5, 1], $module::$pictures, ['','Image', 'Couverture','Légende',''],['id' => 'galleryTable'], $module::$picturesId ); ?>
|
|
|
|
<?php echo template::hidden('galleryEditFormResponse'); ?>
|
2021-04-09 16:42:13 +02:00
|
|
|
<?php echo template::hidden('galleryEditFormGalleryName',['value' => $this->getUrl(2)]); ?>
|
2020-04-09 23:12:15 +02:00
|
|
|
<?php else: ?>
|
2020-04-11 20:03:29 +02:00
|
|
|
<?php echo template::speech('Aucune image.'); ?>
|
2020-04-09 23:12:15 +02:00
|
|
|
<?php endif; ?>
|
|
|
|
</div>
|
|
|
|
</div>
|
2018-04-02 08:29:19 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2020-04-09 23:12:15 +02:00
|
|
|
|
2020-04-08 21:10:13 +02:00
|
|
|
<div class="moduleVersion">Version n°
|
2021-02-09 18:04:24 +01:00
|
|
|
<?php echo $module::VERSION; ?>
|
2020-04-08 21:10:13 +02:00
|
|
|
</div>
|
2020-04-07 19:08:24 +02:00
|
|
|
<?php echo template::formClose(); ?>
|