ZwiiCMS/core/module/i18n/view/index/index.php

41 lines
1.3 KiB
PHP
Raw Normal View History

<?php echo template::formOpen('i18nIndexForm'); ?>
<div class="row">
<div class="col2">
2019-10-22 08:49:20 +02:00
<?php echo template::button('i18nBack', [
'class' => 'buttonGrey',
2019-10-05 13:14:41 +02:00
'href' => helper::baseUrl(false),
'ico' => 'home',
'value' => 'Accueil'
]); ?>
</div>
<div class="col2 offset8">
<?php echo template::submit('galleryEditSubmit'); ?>
</div>
</div>
<div class="row">
<div class="col12">
<div class="block">
<h4>Ajouter ou dupliquer une nouvelle langue&nbsp;<a href="./core/module/i18n/ressource/readme.html" data-lity data-tippy-content="Aide en ligne"<?php echo template::ico('help'); ?></a></h4>
<div class="row">
<div class="col6">
<?php
$available = array ('' => 'Sélectionner');
$available = array_merge ($available, array_diff(self::$i18nList,$this->i18nInstalled()));
echo template::select('i18nLanguageAdd', $available, [
'label' => 'Nouvelle langue'
]); ?>
</div>
<div class="col6">
<?php echo template::select('i18nLanguageCopyFrom', $this->i18nInstalled(true), [
'label' => 'Site à copier',
'selected' => -1
]); ?>
</div>
</div>
2019-08-23 09:46:11 +02:00
</div>
</div>
</div>
<?php echo template::table([11, 1], $module::$languages, ['Langues installées', '']); ?>
<?php echo template::formClose(); ?>