Translate Gestion fine des boutons utilitaires
This commit is contained in:
parent
ed203095dc
commit
ad87c35d35
@ -33,6 +33,9 @@ $("#translateUiButton").on("click", function () {
|
||||
$(this).addClass("activeButton");
|
||||
$("#translateContentButton").removeClass("activeButton");
|
||||
setCookie("translateLayout", "ui");
|
||||
// Cacher les boutons liés au contenu
|
||||
$("#translateButtonAddContent").hide();
|
||||
$("#translateButtonCopyContent").hide();
|
||||
});
|
||||
$("#translateContentButton").on("click", function () {
|
||||
$("#uiContainer").hide();
|
||||
@ -40,6 +43,9 @@ $("#translateContentButton").on("click", function () {
|
||||
$(this).addClass("activeButton");
|
||||
$("#translateUiButton").removeClass("activeButton");
|
||||
setCookie("translateLayout", "content");
|
||||
// Afficher les boutons liés au contenu
|
||||
$("#translateButtonAddContent").show();
|
||||
$("#translateButtonCopyContent").show();
|
||||
});
|
||||
|
||||
/**
|
||||
|
@ -17,21 +17,21 @@
|
||||
]);*/ ?>
|
||||
</div>
|
||||
<div class="col1 offset6">
|
||||
<?php echo template::button('translateButton', [
|
||||
'href' => helper::baseUrl() . 'translate/copy',
|
||||
'value' => template::ico('docs'),
|
||||
'disabled' => $module::$siteCopy,
|
||||
'help' => 'Copie de sites inter-langues'
|
||||
]); ?>
|
||||
</div>
|
||||
<div class="col1">
|
||||
<?php echo template::button('translateButton', [
|
||||
<?php echo template::button('translateButtonAddContent', [
|
||||
'href' => helper::baseUrl() . 'translate/add',
|
||||
'value' => template::ico('plus'),
|
||||
'class' => 'buttonGreen',
|
||||
'help' => 'Ajouter une langue de contenu'
|
||||
]); ?>
|
||||
</div>
|
||||
<div class="col1">
|
||||
<?php echo template::button('translateButtonCopyContent', [
|
||||
'href' => helper::baseUrl() . 'translate/copy',
|
||||
'value' => template::ico('docs'),
|
||||
'disabled' => $module::$siteCopy,
|
||||
'help' => 'Copie de sites inter-langues'
|
||||
]); ?>
|
||||
</div>
|
||||
<div class="col2">
|
||||
<?php echo template::submit('translateFormSubmit'); ?>
|
||||
</div>
|
||||
@ -46,7 +46,6 @@
|
||||
'value' => 'Langues du contenu',
|
||||
'class' => 'buttonTab'
|
||||
]); ?>
|
||||
|
||||
</div>
|
||||
|
||||
<div id="uiContainer" class="tabContent">
|
||||
|
Loading…
Reference in New Issue
Block a user