Page de configuration du mode de recherche

This commit is contained in:
Fred Tempez 2020-08-16 10:43:09 +02:00
parent 59e42e81d8
commit 67707f36ed
3 changed files with 43 additions and 1 deletions

View File

@ -20,7 +20,8 @@
class search extends common {
public static $actions = [
'index' => self::GROUP_VISITOR
'index' => self::GROUP_VISITOR,
'config' => self::GROUP_MODERATOR
];
public static $resultList = '';
@ -35,6 +36,16 @@ class search extends common {
const SEARCH_VERSION = '1.1';
// Configuration vide
public function config() {
// Valeurs en sortie, affichage du formulaire
$this->addOutput([
'view' => 'config',
'showBarEditButton' => true,
'showPageContent' => true
]);
}
public function index() {
if($this->isPost()) {

View File

@ -0,0 +1,16 @@
/**
* This file is part of Zwii.
*
* For full copyright and license information, please see the LICENSE
* file that was distributed with this source code.
*
* @author Rémi Jean <remi.jean@outlook.com>
* @copyright Copyright (C) 2008-2018, Rémi Jean
* @author Frédéric Tempez <frederic.tempez@outlook.com>
* @copyright Copyright (C) 2018-2020, Frédéric Tempez
* @license GNU General Public License, version 3
* @link http://zwiicms.com/
*/
@import url("site/data/admin.css");

View File

@ -0,0 +1,15 @@
<div class="row">
<div class="col2">
<?php echo template::button('newsConfigBack', [
'class' => 'buttonGrey',
'href' => helper::baseUrl() . 'page/edit/' . $this->getUrl(0),
'ico' => 'left',
'value' => 'Retour'
]); ?>
</div>
</div>
<div class="row">
<div class="col12">
<h2 class="textAlignCenter">Aucun paramètre de configuration</h2>
</div>
</div>