ZwiiCMS/core/module/config/view/manage/manage.php

61 lines
1.8 KiB
PHP

<?php echo template::formOpen('configExportForm'); ?>
<div class="row">
<div class="col2">
<?php echo template::button('themeManageBack', [
'class' => 'buttonGrey',
'href' => helper::baseUrl() . 'theme',
'ico' => 'left',
'value' => 'Retour'
]); ?>
</div>
<div class="col2 offset8">
<?php echo template::submit('configExportSubmit',[
'value' => 'Enregister'
]); ?>
</div>
</div>
<div class="row">
<div class="col6">
<div class="block">
<h4>Exporter</h4>
<div class="row">
<div class="col10 offset1">
<?php echo template::button('configExportButton', [
'href' => helper::baseUrl() . 'config/backup',
'value' => 'Exporter une copie du site<br>(données, thème et fichiers)'
]); ?>
</div>
</div>
</div>
</div>
<div class="col6">
<div class="block">
<h4>Importer</h4>
<div class="row">
<?php echo template::file('configImportFile', [
'label' => 'Sauvegarde ZIP',
'type' => 2,
'help' => 'Validez en cliquant sur Enregistrer'
]); ?>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col12">
<div class="block">
<h4>Options</h4>
<div class="row">
<?php echo template::checkbox('configExportAutoBackup', true, 'Sauvegarde automatique des données du site', [
'checked' => $this->getData(['config', 'autoBackup']),
'help' => 'Le fichier de données est copié quotidiennement dans le dossier \'site/backup\'. La sauvegarde est conservée pendant 30 jours.'
]); ?>
<?php echo template::checkbox('configExportMaintenance', true, 'Site en maintenance', [
'checked' => $this->getData(['config', 'maintenance'])
]); ?>
</div>
</div>
</div>
</div>
<?php echo template::formClose(); ?>