ZwiiCMS/module/gallery/view/edit/edit.php

36 lines
1.4 KiB
PHP
Raw Normal View History

2018-04-02 08:29:19 +02:00
<?php echo template::formOpen('galleryEditForm'); ?>
<div class="row">
2022-02-18 12:43:48 +01:00
<div class="col1">
2018-04-02 08:29:19 +02:00
<?php echo template::button('galleryEditBack', [
2022-04-01 14:45:47 +02:00
'class' => 'buttonGrey',
2018-04-02 08:29:19 +02:00
'href' => helper::baseUrl() . $this->getUrl(0) . '/config',
2022-02-18 12:43:48 +01:00
'value' => template::ico('left')
2018-04-02 08:29:19 +02:00
]); ?>
</div>
2022-04-01 15:45:14 +02:00
<div class="col1 offset8">
<?php echo template::button('galleryConfigOption', [
2022-04-04 16:36:59 +02:00
'href' => helper::baseUrl() . $this->getUrl(0) . '/option/gallery/' . $this->getUrl(2) . '/'. $_SESSION['csrf'],
2022-04-01 15:45:14 +02:00
'value' => template::ico('sliders')
]); ?>
</div>
<div class="col2">
2018-04-02 08:29:19 +02:00
<?php echo template::submit('galleryEditSubmit'); ?>
</div>
</div>
2022-04-01 14:54:06 +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'); ?>
2022-04-04 16:36:59 +02:00
<?php echo template::hidden('galleryEditSort',['value' => $this->getData(['module', $this->getUrl(0), 'content', $this->getUrl(2), 'config', 'sort' ])]);?>
2022-04-01 14:54:06 +02:00
<?php echo template::hidden('galleryEditFormGalleryName',['value' => $this->getUrl(2)]); ?>
<?php else: ?>
<?php echo template::speech('Aucune image.'); ?>
<?php endif; ?>
</div>
2022-04-04 16:36:59 +02:00
<?php echo template::formClose(); ?>
<div class="moduleVersion">Version
<?php echo $module::VERSION; ?>
</div>
2022-04-01 14:54:06 +02:00