This commit is contained in:
Fred Tempez 2022-03-04 17:11:57 +01:00
parent 9bcfca906b
commit f354377711
1 changed files with 11 additions and 9 deletions

View File

@ -70,11 +70,11 @@
</div> </div>
</div> </div>
<div class="row"> <div class="row">
<div class="col12"> <div class="col6">
<div class="block"> <div class="block">
<h4>Extensions</h4> <h4>Extensions</h4>
<div class="row"> <div class="row">
<div class="col6"> <div class="col12">
<?php echo template::hidden('pageEditModuleRedirect'); ?> <?php echo template::hidden('pageEditModuleRedirect'); ?>
<?php echo template::select('pageEditModuleId', $module::$moduleIds, [ <?php echo template::select('pageEditModuleId', $module::$moduleIds, [
'help' => 'En cas de changement de module, les données du module précédent seront supprimées.', 'help' => 'En cas de changement de module, les données du module précédent seront supprimées.',
@ -86,14 +86,16 @@
'value' => array_key_exists($this->getData(['page', $this->getUrl(2), 'moduleId']),$module::$moduleIds)? $module::$moduleIds[$this->getData(['page', $this->getUrl(2), 'moduleId'])] : ucfirst($this->getData(['page', $this->getUrl(2), 'moduleId'])) 'value' => array_key_exists($this->getData(['page', $this->getUrl(2), 'moduleId']),$module::$moduleIds)? $module::$moduleIds[$this->getData(['page', $this->getUrl(2), 'moduleId'])] : ucfirst($this->getData(['page', $this->getUrl(2), 'moduleId']))
]); ?> ]); ?>
</div> </div>
<div class="col5"> </div>
<div class="row">
<div class="col10">
<?php echo template::select('configModulePosition', $module::$modulePosition,[ <?php echo template::select('configModulePosition', $module::$modulePosition,[
'help' => 'En position libre ajoutez le module en plaçant [MODULE] à l\'endroit voulu dans votre page.', 'help' => 'En position libre ajoutez le module en plaçant [MODULE] à l\'endroit voulu dans votre page.',
'label' => 'Position du module', 'label' => 'Position du module',
'selected' => $this->getData(['page', $this->getUrl(2), 'modulePosition']) 'selected' => $this->getData(['page', $this->getUrl(2), 'modulePosition'])
]); ?> ]); ?>
</div> </div>
<div class="col1 verticalAlignBottom"> <div class="col2 verticalAlignBottom">
<?php echo template::button('pageEditModuleConfig', [ <?php echo template::button('pageEditModuleConfig', [
'disabled' => (bool) $this->getData(['page', $this->getUrl(2), 'moduleId']) === false, 'disabled' => (bool) $this->getData(['page', $this->getUrl(2), 'moduleId']) === false,
'uniqueSubmission' => true, 'uniqueSubmission' => true,
@ -103,20 +105,20 @@
</div> </div>
</div> </div>
</div> </div>
</div> <div class="col6">
<div class="row">
<div class="col12">
<div class="block"> <div class="block">
<h4>Contenu avancé</h4> <h4>Contenu avancé</h4>
<div class="row"> <div class="row">
<div class="col3 offset2"> <div class="col6 offset3">
<?php echo template::button('pageEditCssEditor', [ <?php echo template::button('pageEditCssEditor', [
'href' => helper::baseUrl() . 'page/cssEditor/' . $this->getUrl(2), 'href' => helper::baseUrl() . 'page/cssEditor/' . $this->getUrl(2),
'value' => 'Editeur CSS', 'value' => 'Editeur CSS',
'help' => 'Feuille de style spécifique à la page.' 'help' => 'Feuille de style spécifique à la page.'
]); ?> ]); ?>
</div> </div>
<div class="col3 offset2"> </div>
<div class="row">
<div class="col6 offset3">
<?php echo template::button('pageEditJsEditor', [ <?php echo template::button('pageEditJsEditor', [
'href' => helper::baseUrl() . 'page/jsEditor/' . $this->getUrl(2), 'href' => helper::baseUrl() . 'page/jsEditor/' . $this->getUrl(2),
'value' => 'Editeur JS', 'value' => 'Editeur JS',