forked from ZwiiCMS-Team/ZwiiCMS
[9.1.06] Amélioration écran de saisie d'une page
This commit is contained in:
parent
eb49bfec4a
commit
c11705319f
@ -69,14 +69,14 @@ $( document ).ready(function() {
|
||||
$("#pageEditModuleId").val() === "code") {
|
||||
$("#pageEditHideTitleWrapper").removeClass("disabled");
|
||||
$("#pageEditHideTitleWrapper").hide();
|
||||
$("#pageEditBlockWrapper").removeClass("disabled");
|
||||
$("#pageEditBlockWrapper").hide();
|
||||
$("#pageEditBlockLayout").removeClass("disabled");
|
||||
$("#pageEditBlockLayout").hide();
|
||||
|
||||
} else {
|
||||
$("#pageEditHideTitleWrapper").addClass("disabled");
|
||||
$("#pageEditHideTitleWrapper").show();
|
||||
$("#pageEditBlockWrapper").addClass("disabled");
|
||||
$("#pageEditBlockWrapper").show();
|
||||
$("#pageEditBlockLayout").addClass("disabled");
|
||||
$("#pageEditBlockLayout").show();
|
||||
}
|
||||
/**
|
||||
* Masquer et démasquer la sélection des barres
|
||||
@ -111,8 +111,8 @@ $( document ).ready(function() {
|
||||
break;
|
||||
};
|
||||
if ($("#pageEditBlock").val() === "bar") {
|
||||
$("#PageEditMenu").removeClass("disabled");
|
||||
$("#PageEditMenu").slideUp();
|
||||
$("#pageEditMenu").removeClass("disabled");
|
||||
$("#pageEditMenu").slideUp();
|
||||
$("#pageEditHideTitleWrapper").removeClass("disabled");
|
||||
$("#pageEditHideTitleWrapper").slideUp();
|
||||
$("#pageEditbreadCrumbWrapper").removeClass("disabled");
|
||||
@ -125,8 +125,8 @@ $( document ).ready(function() {
|
||||
$("#pageEditDisplayMenuWrapper").slideDown();
|
||||
$("#pageEditGroupWrapper").removeClass("disabled");
|
||||
$("#pageEditGroupWrapper").slideUp();
|
||||
$("#PageEditMenuSpecial").removeClass("disabled");
|
||||
$("#PageEditMenuSpecial").slideUp();
|
||||
$("#pageEditMenuSpecial").removeClass("disabled");
|
||||
$("#pageEditMenuSpecial").slideUp();
|
||||
} else {
|
||||
$("#pageEditDisplayMenuWrapper").removeClass("disabled");
|
||||
$("#pageEditDisplayMenuWrapper").slideUp();
|
||||
@ -292,14 +292,14 @@ pageEditModuleIdDOM.on("change", function() {
|
||||
$(this).val() === "code") {
|
||||
$("#pageEditHideTitleWrapper").removeClass("disabled");
|
||||
$("#pageEditHideTitleWrapper").slideUp();
|
||||
$("#pageEditBlockWrapper").removeClass("disabled");
|
||||
$("#pageEditBlockWrapper").slideUp();
|
||||
$("#pageEditBlockLayout").removeClass("disabled");
|
||||
$("#pageEditBlockLayout").slideUp();
|
||||
}
|
||||
else {
|
||||
$("#pageEditHideTitleWrapper").addClass("disabled");
|
||||
$("#pageEditHideTitleWrapper").slideDown();
|
||||
$("#pageEditBlockWrapper").addClass("disabled");
|
||||
$("#pageEditBlockWrapper").slideDown();
|
||||
$("#pageEditBlockLayout").addClass("disabled");
|
||||
$("#pageEditBlockLayout").slideDown();
|
||||
}
|
||||
});
|
||||
|
||||
@ -339,10 +339,10 @@ pageEditBlockDOM.on("change", function() {
|
||||
break;
|
||||
}
|
||||
if ($(this).val() === "bar") {
|
||||
$("#PageEditMenu").removeClass("disabled");
|
||||
$("#PageEditMenu").slideUp();
|
||||
$("#PageEditMenuSpecial").removeClass("disabled");
|
||||
$("#PageEditMenuSpecial").slideUp();
|
||||
$("#pageEditMenu").removeClass("disabled");
|
||||
$("#pageEditMenu").slideUp();
|
||||
$("#pageEditMenuSpecial").removeClass("disabled");
|
||||
$("#pageEditMenuSpecial").slideUp();
|
||||
$("#pageEditHideTitleWrapper").removeClass("disabled");
|
||||
$("#pageEditHideTitleWrapper").slideUp();
|
||||
$("#pageEditbreadCrumbWrapper").removeClass("disabled");
|
||||
@ -356,10 +356,10 @@ pageEditBlockDOM.on("change", function() {
|
||||
$("#pageEditGroupWrapper").removeClass("disabled");
|
||||
$("#pageEditGroupWrapper").slideUp();
|
||||
} else {
|
||||
$("#PageEditMenu").addClass("disabled");
|
||||
$("#PageEditMenu").slideDown();
|
||||
$("#PageEditMenuSpecial").addClass("disabled");
|
||||
$("#PageEditMenuSpecial").slideDown();
|
||||
$("#pageEditMenu").addClass("disabled");
|
||||
$("#pageEditMenu").slideDown();
|
||||
$("#pageEditMenuSpecial").addClass("disabled");
|
||||
$("#pageEditMenuSpecial").slideDown();
|
||||
$("#pageEditHideTitleWrapper").addClass("disabled");
|
||||
$("#pageEditHideTitleWrapper").slideDown();
|
||||
$("#pageEditModuleIdWrapper").addClass("disabled");
|
||||
|
@ -88,8 +88,40 @@ $this->pages2Json();
|
||||
'class' => 'editorWysiwyg',
|
||||
'value' => $this->getData(['page', $this->getUrl(2), 'content'])
|
||||
]); ?>
|
||||
<div class="row">
|
||||
<div class="col6" id="pageEditMenu">
|
||||
<div class="block">
|
||||
<h4>Emplacements</h4>
|
||||
<?php if($this->getHierarchy($this->getUrl(2), false)): ?>
|
||||
<?php echo template::hidden('pageEditParentPageId', [
|
||||
'value' => $this->getData(['page', $this->getUrl(2), 'parentPageId'])
|
||||
]); ?>
|
||||
<?php else: ?>
|
||||
<?php echo template::select('pageEditParentPageId', $module::$pagesNoParentId, [
|
||||
'label' => 'Page parent',
|
||||
'selected' => $this->getData(['page', $this->getUrl(2), 'parentPageId'])
|
||||
]); ?>
|
||||
<?php endif; ?>
|
||||
<?php echo template::select('pageEditPosition', [], [
|
||||
'label' => 'Position',
|
||||
'help' => 'Une page non affichée dans les menus est classée comme \'Page orpheline\' dans la liste des pages.'
|
||||
]); ?>
|
||||
<div class="row">
|
||||
<div class="col6">
|
||||
<?php echo template::checkbox('pageEditTargetBlank', true, 'Nouvel onglet', [
|
||||
'checked' => $this->getData(['page', $this->getUrl(2), 'targetBlank'])
|
||||
]); ?>
|
||||
</div>
|
||||
<div class="col6">
|
||||
<?php echo template::checkbox('pageEditDisable', true, 'Désactivée', [
|
||||
'checked' => $this->getData(['page', $this->getUrl(2), 'disable']),
|
||||
'help' => 'Une page désactivée figure dans le menu sans être cliquable, par exemple comme page parente sans contenu.'
|
||||
]); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col6" id="pageEditBlockLayout">
|
||||
<div class="block" >
|
||||
<h4>Mise en page</h4>
|
||||
<?php echo template::select('pageEditBlock', $module::$pageBlocks, [
|
||||
@ -141,42 +173,10 @@ $this->pages2Json();
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col6">
|
||||
<div class="block" id="PageEditMenu">
|
||||
<h4>Emplacements</h4>
|
||||
<?php if($this->getHierarchy($this->getUrl(2), false)): ?>
|
||||
<?php echo template::hidden('pageEditParentPageId', [
|
||||
'value' => $this->getData(['page', $this->getUrl(2), 'parentPageId'])
|
||||
]); ?>
|
||||
<?php else: ?>
|
||||
<?php echo template::select('pageEditParentPageId', $module::$pagesNoParentId, [
|
||||
'label' => 'Page parent',
|
||||
'selected' => $this->getData(['page', $this->getUrl(2), 'parentPageId'])
|
||||
]); ?>
|
||||
<?php endif; ?>
|
||||
<?php echo template::select('pageEditPosition', [], [
|
||||
'label' => 'Position',
|
||||
'help' => 'Une page non affichée dans les menus est classée comme \'Page orpheline\' dans la liste des pages.'
|
||||
]); ?>
|
||||
<div class="row">
|
||||
<div class="col6">
|
||||
<?php echo template::checkbox('pageEditTargetBlank', true, 'Nouvel onglet', [
|
||||
'checked' => $this->getData(['page', $this->getUrl(2), 'targetBlank'])
|
||||
]); ?>
|
||||
</div>
|
||||
<div class="col6">
|
||||
<?php echo template::checkbox('pageEditDisable', true, 'Désactivée', [
|
||||
'checked' => $this->getData(['page', $this->getUrl(2), 'disable']),
|
||||
'help' => 'Une page désactivée figure dans le menu sans être cliquable, par exemple comme page parente sans contenu.'
|
||||
]); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col12">
|
||||
<div class="block" id="PageEditMenuSpecial">
|
||||
<div class="col12" id="pageEditMenuSpecial">
|
||||
<div class="block">
|
||||
<h4>Options avancées d'emplacements</h4>
|
||||
<div class="row">
|
||||
<div class="col12">
|
||||
|
Loading…
Reference in New Issue
Block a user