Zwii-Modules/geolocation/view/config/config.php

36 lines
1.1 KiB
PHP

<?php echo template::formOpen('locationConfigForm'); ?>
<div class="row">
<div class="col1">
<?php echo template::button('locationConfigBack', [
'class' => 'buttonGrey',
'href' => helper::baseUrl() . 'page/edit/' . $this->getUrl(0),
'value' => template::ico('left')
]); ?>
</div>
<div class="col1 offset9">
<?php echo template::button('calendarTheme', [
'href' => helper::baseUrl() . 'page/cssEditor/' . $this->getUrl(0),
'value' => template::ico('brush')
]); ?>
</div>
<div class="col1">
<?php echo template::button('locationAdd', [
'href' => helper::baseUrl() . $this->getUrl(0) . '/add/',
'value' => template::ico('plus'),
'class' => 'buttonGreen'
]); ?>
</div>
</div>
<?php echo template::formClose(); ?>
<div class="row">
<div class="col12">
<?php if ($module::$locations): ?>
<?php echo template::table([4, 3, 3, 1, 1], $module::$locations, ['Nom', 'Latitude', 'Longitude', '', '']); ?>
<?php else: ?>
<?php echo template::speech('Aucune localisation'); ?>
<?php endif; ?>
</div>
<div class="moduleVersion">Version n°
<?php echo $module::VERSION; ?>
</div>
</div>