[10.0.010.dev] Libellés + sélection homepageId

This commit is contained in:
fredtempez 2019-12-11 22:42:05 +01:00
parent f51c04b355
commit 933fd1be52
2 changed files with 5 additions and 6 deletions

View File

@ -373,6 +373,7 @@ class config extends common {
$this->setData([ $this->setData([
'config', 'config',
[ [
'homePageId' => $this->getInput('configHomePageId', helper::FILTER_ID, true),
'analyticsId' => $this->getInput('configAnalyticsId'), 'analyticsId' => $this->getInput('configAnalyticsId'),
'autoBackup' => $this->getInput('configAutoBackup', helper::FILTER_BOOLEAN), 'autoBackup' => $this->getInput('configAutoBackup', helper::FILTER_BOOLEAN),
'maintenance' => $this->getInput('configMaintenance', helper::FILTER_BOOLEAN), 'maintenance' => $this->getInput('configMaintenance', helper::FILTER_BOOLEAN),
@ -392,7 +393,6 @@ class config extends common {
'legalPageId' => $this->getInput('configLegalPageId'), 'legalPageId' => $this->getInput('configLegalPageId'),
'metaDescription' => $this->getInput('configMetaDescription', helper::FILTER_STRING_LONG, true), 'metaDescription' => $this->getInput('configMetaDescription', helper::FILTER_STRING_LONG, true),
'title' => $this->getInput('configTitle', helper::FILTER_STRING_SHORT, true), 'title' => $this->getInput('configTitle', helper::FILTER_STRING_SHORT, true),
'googTransLogo' => $this->getInput('configdGoogTransLogo', helper::FILTER_BOOLEAN),
'autoUpdate' => $this->getInput('configAutoUpdate', helper::FILTER_BOOLEAN) 'autoUpdate' => $this->getInput('configAutoUpdate', helper::FILTER_BOOLEAN)
] ]
]); ]);

View File

@ -27,22 +27,21 @@
<div class="col4"> <div class="col4">
<?php echo template::select('configHomePageId', helper::arrayCollumn($this->getData(['page']), 'title', 'SORT_ASC'), [ <?php echo template::select('configHomePageId', helper::arrayCollumn($this->getData(['page']), 'title', 'SORT_ASC'), [
'label' => 'Page d\'accueil', 'label' => 'Page d\'accueil',
'selected' =>$this->getData(['config', 'homePageId']), 'selected' =>$this->getData(['config', 'homePageId'])
'help' => 'La page d\'accueil doit être définie dans une des pages de la langue sélectionnée'
]); ?> ]); ?>
</div> </div>
<div class="col8"> <div class="col8">
<?php echo template::text('configTitle', [ <?php echo template::text('configTitle', [
'label' => 'Titre du site', 'label' => 'Titre du site',
'value' => $this->getData(['config', 'title']), 'value' => $this->getData(['config', 'title']),
'help' => 'Il apparaît dans la barre de titre et les partages sur les réseaux sociaux.' 'help' => 'Le titre apparaît dans la barre de titre et les partages sur les réseaux sociaux.'
]); ?> ]); ?>
</div> </div>
</div> </div>
<?php echo template::textarea('configMetaDescription', [ <?php echo template::textarea('configMetaDescription', [
'label' => 'Description du site', 'label' => 'Description du site',
'value' => $this->getData(['config', 'metaDescription']), 'value' => $this->getData(['config', 'metaDescription']),
'help' => 'Elle apparaît dans les partages sur les réseaux sociaux.' 'help' => 'La description apparaît dans les partages sur les réseaux sociaux.'
]); ?> ]); ?>
</div> </div>
</div> </div>
@ -108,7 +107,7 @@
<div class="col6"> <div class="col6">
<?php echo template::checkbox('configAutoUpdate', true, 'Mise à jour automatique', [ <?php echo template::checkbox('configAutoUpdate', true, 'Mise à jour automatique', [
'checked' => $this->getData(['config', 'autoUpdate']), 'checked' => $this->getData(['config', 'autoUpdate']),
'help' => 'Vérifie une fois par jour l\'existence d\'une mise à jour.' 'help' => 'Vérification quotidiene des mises à jour.'
]); ?> ]); ?>
</div> </div>
</div> </div>