2022-03-06 13:35:21 +01:00
|
|
|
<?php
|
|
|
|
// Lexique
|
|
|
|
$text = [];
|
|
|
|
$val = $this->getData(['config', 'i18n', 'langAdmin']);
|
|
|
|
switch ($val) {
|
|
|
|
case 'fr' :
|
|
|
|
$text[0] = 'Retour';
|
|
|
|
$text[1] = 'Aide';
|
|
|
|
$text[2] = 'Valider';
|
|
|
|
$text[3] = 'Archive ZIP :';
|
|
|
|
$text[4] = 'Permet de forcer une mise à jour même si la version du module est inférieure ou égale à celle du module installé.';
|
|
|
|
$text[5] = 'Mise à jour forcée';
|
|
|
|
$text[6] = 'Installer ou mettre à jour un module téléchargé';
|
|
|
|
break;
|
|
|
|
case 'en' :
|
|
|
|
$text[0] = 'Back';
|
|
|
|
$text[1] = 'Help';
|
|
|
|
$text[2] = 'Validate';
|
|
|
|
$text[3] = 'Archive ZIP :';
|
|
|
|
$text[4] = 'Allows you to force an update even if the version of the module is less than or equal to that of the installed module.';
|
|
|
|
$text[5] = 'Forced update';
|
|
|
|
$text[6] = 'Install or update a downloaded module';
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
?>
|
2022-01-31 09:10:49 +01:00
|
|
|
<?php echo template::formOpen('configModulesUpload'); ?>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col2">
|
|
|
|
<?php echo template::button('configModulesBack', [
|
|
|
|
'class' => 'buttonGrey',
|
|
|
|
'href' => helper::baseUrl() . 'addon',
|
|
|
|
'ico' => 'left',
|
2022-03-06 13:35:21 +01:00
|
|
|
'value' => $text[0]
|
2022-01-31 09:10:49 +01:00
|
|
|
]); ?>
|
|
|
|
</div>
|
|
|
|
<div class="col2">
|
|
|
|
<?php echo template::button('addonIndexHelp', [
|
|
|
|
'href' => 'https://doc.deltacms.fr/installer-un-module',
|
|
|
|
'target' => '_blank',
|
|
|
|
'class' => 'buttonHelp',
|
|
|
|
'ico' => 'help',
|
2022-03-06 13:35:21 +01:00
|
|
|
'value' => $text[1]
|
2022-01-31 09:10:49 +01:00
|
|
|
]); ?>
|
|
|
|
</div>
|
|
|
|
<!-- Catalogue en ligne hors service
|
|
|
|
<div class="col2 ">
|
|
|
|
<?php echo template::button('configModulesStore', [
|
|
|
|
'href' => helper::baseUrl() . 'addon/store',
|
|
|
|
'value' => 'Catalogue en ligne'
|
|
|
|
]); ?>
|
|
|
|
</div>
|
|
|
|
-->
|
|
|
|
<div class="col2 offset6">
|
|
|
|
<?php echo template::submit('configModulesSubmit',[
|
2022-03-06 13:35:21 +01:00
|
|
|
'value' => $text[2],
|
2022-01-31 09:10:49 +01:00
|
|
|
'ico' => 'check'
|
|
|
|
]); ?>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col12">
|
|
|
|
<div class="block">
|
2022-03-06 13:35:21 +01:00
|
|
|
<h4><?php echo $text[6]; ?> </h4>
|
2022-01-31 09:10:49 +01:00
|
|
|
<div class="row">
|
|
|
|
<div class="col6 offset3">
|
|
|
|
<?php echo template::file('configModulesInstallation', [
|
2022-03-06 13:35:21 +01:00
|
|
|
'label' => $text[3],
|
2022-01-31 09:10:49 +01:00
|
|
|
'type' => 2
|
|
|
|
]); ?>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col4 offset3">
|
2022-03-06 13:35:21 +01:00
|
|
|
<?php echo template::checkbox('configModulesCheck', true, $text[5], [
|
2022-01-31 09:10:49 +01:00
|
|
|
'checked' => false,
|
2022-03-06 13:35:21 +01:00
|
|
|
'help' => $text[4],
|
2022-01-31 09:10:49 +01:00
|
|
|
]); ?>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<?php echo template::formClose(); ?>
|