Deltacms/core/module/addon/view/upload/upload.php

84 lines
2.3 KiB
PHP

<?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;
}
?>
<?php echo template::formOpen('configModulesUpload'); ?>
<div class="row">
<div class="col2">
<?php echo template::button('configModulesBack', [
'class' => 'buttonGrey',
'href' => helper::baseUrl() . 'addon',
'ico' => 'left',
'value' => $text[0]
]); ?>
</div>
<div class="col2">
<?php echo template::button('addonIndexHelp', [
'href' => 'https://doc.deltacms.fr/installer-un-module',
'target' => '_blank',
'class' => 'buttonHelp',
'ico' => 'help',
'value' => $text[1]
]); ?>
</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',[
'value' => $text[2],
'ico' => 'check'
]); ?>
</div>
</div>
<div class="row">
<div class="col12">
<div class="block">
<h4><?php echo $text[6]; ?> </h4>
<div class="row">
<div class="col6 offset3">
<?php echo template::file('configModulesInstallation', [
'label' => $text[3],
'type' => 2
]); ?>
</div>
</div>
<div class="row">
<div class="col4 offset3">
<?php echo template::checkbox('configModulesCheck', true, $text[5], [
'checked' => false,
'help' => $text[4],
]); ?>
</div>
</div>
</div>
</div>
</div>
<?php echo template::formClose(); ?>