Boutons courts dans les modules

This commit is contained in:
fredtempez 2022-01-20 10:50:40 +01:00
parent 69150cb4db
commit f22298a113
14 changed files with 38 additions and 49 deletions

View File

@ -502,7 +502,7 @@ class blog extends common {
} else {
// Valeurs en sortie
$this->addOutput([
'title' => 'Mise en page',
'title' => 'Options de configuration',
'view' => 'option'
]);
}

View File

@ -1,17 +1,16 @@
<?php echo template::formOpen('blogAddForm'); ?>
<div class="row">
<div class="col2">
<div class="col1">
<?php echo template::button('blogAddBack', [
'class' => 'buttonGrey',
'href' => helper::baseUrl() . $this->getUrl(0) . '/config',
'ico' => 'left',
'value' => 'Retour'
'value' => template::ico('left')
]); ?>
</div>
<div class="col3 offset5">
<div class="col2 offset7">
<?php echo template::button('blogAddDraft', [
'uniqueSubmission' => true,
'value' => 'Enregistrer en brouillon'
'value' => 'Brouillon'
]); ?>
<?php echo template::hidden('blogAddState', [
'value' => true

View File

@ -1,14 +1,13 @@
<?php echo template::formOpen('blogConfig'); ?>
<div class="row">
<div class="col2">
<div class="col1">
<?php echo template::button('blogConfigBack', [
'class' => 'buttonGrey',
'href' => helper::baseUrl() . 'page/edit/' . $this->getUrl(0), 'posts',
'ico' => 'left',
'value' => 'Retour'
'value' => template::ico('left')
]); ?>
</div>
<div class="col1 offset8">
<div class="col1 offset9">
<?php echo template::button('blogConfigOption', [
'href' => helper::baseUrl() . $this->getUrl(0) . '/option',
'value' => template::ico('cogs')

View File

@ -1,14 +1,13 @@
<?php echo template::formOpen('blogOption'); ?>
<div class="row">
<div class="col2">
<div class="col1">
<?php echo template::button('blogOptionBack', [
'class' => 'buttonGrey',
'href' => helper::baseUrl() . $this->getUrl(0) . '/config',
'ico' => 'left',
'value' => 'Retour'
'value' => template::ico('left')
]); ?>
</div>
<div class="col2 offset8">
<div class="col2 offset9">
<?php echo template::submit('blogOptionSubmit'); ?>
</div>
</div>

View File

@ -208,7 +208,7 @@ class form extends common {
}
// Valeurs en sortie
$this->addOutput([
'title' => 'Paramètres',
'title' => 'Options de configuration',
'vendor' => [
'html-sortable',
'flatpickr'

View File

@ -50,15 +50,14 @@
</div>
<?php echo template::formOpen('formConfigForm'); ?>
<div class="row">
<div class="col2">
<div class="col1">
<?php echo template::button('formConfigBack', [
'class' => 'buttonGrey',
'href' => helper::baseUrl() . 'page/edit/' . $this->getUrl(0),
'ico' => 'left',
'value' => 'Retour'
'value' => template::ico('left')
]); ?>
</div>
<div class="col1 offset6">
<div class="col1 offset7">
<?php echo template::button('formConfigData', [
'href' => helper::baseUrl() . $this->getUrl(0) . '/data',
'value' => template::ico('code')

View File

@ -1,14 +1,13 @@
<?php echo template::formOpen('galleryConfigForm'); ?>
<div class="row">
<div class="col2">
<div class="col1">
<?php echo template::button('galleryConfigBack', [
'class' => 'buttonGrey',
'href' => helper::baseUrl() . 'page/edit/' . $this->getUrl(0),
'ico' => 'left',
'value' => 'Retour'
'value' => template::ico('left')
]); ?>
</div>
<div class="col1 offset9">
<div class="col1 offset10">
<?php echo template::button('galleryConfigBack', [
'href' => helper::baseUrl() . $this->getUrl(0) . '/theme/' . $_SESSION['csrf'],
'value' => template::ico('brush')

View File

@ -1,14 +1,13 @@
<?php echo template::formOpen('galleryEditForm'); ?>
<div class="row">
<div class="col2">
<div class="col1">
<?php echo template::button('galleryEditBack', [
'class' => 'buttonGrey',
'href' => helper::baseUrl() . $this->getUrl(0) . '/config',
'ico' => 'left',
'value' => 'Retour'
'value' => template::ico('left')
]); ?>
</div>
<div class="col2 offset8">
<div class="col2 offset9">
<?php echo template::submit('galleryEditSubmit'); ?>
</div>
</div>

View File

@ -290,7 +290,7 @@ class news extends common {
} else {
// Valeurs en sortie
$this->addOutput([
'title' => 'Mise en page',
'title' => 'Options de configuration',
'view' => 'option',
'vendor' => [
'tinycolorpicker'

View File

@ -1,17 +1,16 @@
<?php echo template::formOpen('newsAddForm'); ?>
<div class="row">
<div class="col2">
<div class="col1">
<?php echo template::button('newsAddBack', [
'class' => 'buttonGrey',
'href' => helper::baseUrl() . $this->getUrl(0) . '/config',
'ico' => 'left',
'value' => 'Retour'
'value' => template::ico('left')
]); ?>
</div>
<div class="col3 offset5">
<div class="col2 offset7">
<?php echo template::button('newsAddDraft', [
'uniqueSubmission' => true,
'value' => 'Enregistrer en brouillon'
'value' => 'Brouillon'
]); ?>
<?php echo template::hidden('newsAddState', [
'value' => true

View File

@ -1,14 +1,13 @@
<?php echo template::formOpen('newsConfig'); ?>
<div class="row">
<div class="col2">
<div class="col1">
<?php echo template::button('newsConfigBack', [
'class' => 'buttonGrey',
'href' => helper::baseUrl() . 'page/edit/' . $this->getUrl(0),'posts',
'ico' => 'left',
'value' => 'Retour'
'value' => template::ico('left')
]); ?>
</div>
<div class="col1 offset8">
<div class="col1 offset9">
<?php echo template::button('newsConfigAdd', [
'href' => helper::baseUrl() . $this->getUrl(0) . '/add',
'value' => template::ico('plus')

View File

@ -1,14 +1,13 @@
<?php echo template::formOpen('newsOption'); ?>
<div class="row">
<div class="col2">
<div class="col1">
<?php echo template::button('newsOptionBack', [
'class' => 'buttonGrey',
'href' => helper::baseUrl() . $this->getUrl(0) . '/config',
'ico' => 'left',
'value' => 'Retour'
'value' => template::ico('left')
]); ?>
</div>
<div class="col2 offset8">
<div class="col2 offset9">
<?php echo template::submit('newsOptionSubmit'); ?>
</div>
</div>

View File

@ -1,14 +1,13 @@
<?php echo template::formOpen('redirectionConfig'); ?>
<div class="row">
<div class="col2">
<div class="col1">
<?php echo template::button('redirectionConfigBack', [
'class' => 'buttonGrey',
'href' => helper::baseUrl() . 'page/edit/' . $this->getUrl(0),
'ico' => 'left',
'value' => 'Retour'
'value' => template::ico('left')
]); ?>
</div>
<div class="col2 offset8">
<div class="col2 offset9">
<?php echo template::submit('redirectionConfigSubmit'); ?>
</div>
</div>

View File

@ -1,14 +1,13 @@
<?php echo template::formOpen('searchConfig'); ?>
<div class="row">
<div class="col2">
<div class="col1">
<?php echo template::button('searchConfigBack', [
'class' => 'buttonGrey',
'href' => helper::baseUrl() . 'page/edit/' . $this->getUrl(0),
'ico' => 'left',
'value' => 'Retour'
'value' => template::ico('left')
]); ?>
</div>
<div class="col2 offset8">
<div class="col2 offset9">
<?php echo template::submit('searchConfigSubmit'); ?>
</div>
</div>