Deltacms/core/module/translate/view/copy/copy.php

67 lines
1.9 KiB
PHP
Raw Normal View History

2022-03-06 13:35:21 +01:00
<?php echo template::formOpen('translateFormCopy');
// Lexique
$text = [];
$val = $this->getData(['config', 'i18n', 'langAdmin']);
switch ($val) {
case 'fr' :
$text[0] = 'Retour';
$text[1] = 'Aide';
$text[2] = 'Enregistrer';
$text[3] = 'Copie de site (traductions rédigées)';
$text[4] = 'Pages et les modules de';
$text[5] = 'Vers';
break;
case 'en' :
$text[0] = 'Back';
$text[1] = 'Help';
$text[2] = 'Submit';
$text[3] = 'Site copy (written translations)';
$text[4] = 'Pages and modules of';
$text[5] = 'to';
break;
}
?>
2022-01-31 09:10:49 +01:00
<div class="row">
<div class="col2">
<?php echo template::button('translateFormCopyBack', [
'class' => 'buttonGrey',
'href' => helper::baseUrl() . 'translate',
'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('translateHelp', [
'href' => 'https://doc.deltacms.fr/utilitaire-de-copie',
'target' => '_blank',
'ico' => 'help',
2022-03-06 13:35:21 +01:00
'value' => $text[1],
2022-01-31 09:10:49 +01:00
'class' => 'buttonHelp'
]); ?>
</div>
<div class="col2 offset6">
2022-03-06 13:35:21 +01:00
<?php echo template::submit('translateFormCopySubmit', [
'value'=> $text[2]
]); ?>
2022-01-31 09:10:49 +01:00
</div>
</div>
<div class="row">
<div class="col12">
<div class="block">
2022-03-06 13:35:21 +01:00
<h4><?php echo $text[3]; ?></h4>
2022-01-31 09:10:49 +01:00
<div class="row">
<div class="col6">
<?php echo template::select('translateFormCopySource', $module::$languagesInstalled, [
2022-03-06 13:35:21 +01:00
'label' => $text[4]
2022-01-31 09:10:49 +01:00
]); ?>
</div>
<div class="col6">
<?php echo template::select('translateFormCopyTarget', $module::$languagesTarget, [
2022-03-06 13:35:21 +01:00
'label' => $text[5]
2022-01-31 09:10:49 +01:00
]); ?>
</div>
</div>
</div>
</div>
</div>
<?php echo template::formClose(); ?>