ZwiiCMS/module/form/view/config/config.php

98 lines
2.9 KiB
PHP
Raw Normal View History

2018-04-02 08:29:19 +02:00
<div id="formConfigCopy" class="displayNone">
<div class="formConfigInput">
<?php echo template::hidden('formConfigPosition[]', [
'class' => 'formConfigPosition'
]); ?>
<div class="row">
<div class="col1">
<?php echo template::button('formConfigMove[]', [
'value' => template::ico('sort'),
'class' => 'formConfigMove'
]); ?>
</div>
<div class="col5">
<?php echo template::text('formConfigName[]', [
'placeholder' => 'Intitulé'
]); ?>
</div>
<div class="col4">
<?php echo template::select('formConfigType[]', $module::$types, [
'class' => 'formConfigType'
]); ?>
</div>
<div class="col1">
<?php echo template::button('formConfigMoreToggle[]', [
'value' => template::ico('gear'),
'class' => 'formConfigMoreToggle'
]); ?>
</div>
<div class="col1">
<?php echo template::button('formConfigDelete[]', [
'value' => template::ico('minus'),
'class' => 'formConfigDelete'
]); ?>
</div>
</div>
2019-11-26 19:22:30 +01:00
<div class="formConfigMoreLabel displayNone">
<?php echo template::label('formConfigLabel', 'Aucune option pour une étiquette', [
'class' => 'displayNone formConfigLabelWrapper'
]); ?>
2020-08-16 15:59:37 +02:00
</div>
2018-04-02 08:29:19 +02:00
<div class="formConfigMore displayNone">
<?php echo template::text('formConfigValues[]', [
'placeholder' => 'Liste des valeurs séparées par des virgules (valeur1,valeur2,...)',
'class' => 'formConfigValues',
'classWrapper' => 'displayNone formConfigValuesWrapper'
2020-08-16 15:59:37 +02:00
]); ?>
2018-04-02 08:29:19 +02:00
<?php echo template::checkbox('formConfigRequired[]', true, 'Champ obligatoire'); ?>
</div>
</div>
</div>
<?php echo template::formOpen('formConfigForm'); ?>
2022-01-18 16:55:48 +01:00
<div class="row">
<div class="col2">
<?php echo template::button('formConfigBack', [
'class' => 'buttonGrey',
'href' => helper::baseUrl() . 'page/edit/' . $this->getUrl(0),
'ico' => 'left',
'value' => 'Retour'
]); ?>
</div>
<div class="col2 offset4">
<?php echo template::button('formConfigData', [
'href' => helper::baseUrl() . $this->getUrl(0) . '/data',
'value' => 'Données'
]); ?>
</div>
<div class="col2">
<?php echo template::button('formConfigLayout', [
2022-01-19 11:43:16 +01:00
'href' => helper::baseUrl() . $this->getUrl(0) . '/option',
'value' => 'Options',
2022-01-18 16:55:48 +01:00
'ico' => 'cog-alt'
]); ?>
</div>
<div class="col2">
2018-04-02 08:29:19 +02:00
<?php echo template::submit('formConfigSubmit'); ?>
</div>
2022-01-18 16:55:48 +01:00
</div>
<div class="block">
<h4>Liste des champs</h4>
<div id="formConfigNoInput">
<?php echo template::speech('Le formulaire ne contient aucun champ.'); ?>
2018-04-02 08:29:19 +02:00
</div>
2022-01-18 16:55:48 +01:00
<div id="formConfigInputs"></div>
2018-04-02 08:29:19 +02:00
<div class="row">
2022-01-18 16:55:48 +01:00
<div class="col1 offset11">
<?php echo template::button('formConfigAdd', [
'value' => template::ico('plus'),
'class' => 'buttonGreen'
]); ?>
2018-04-02 08:29:19 +02:00
</div>
</div>
2022-01-18 16:55:48 +01:00
</div>
</div>
2019-02-14 15:17:03 +01:00
<?php echo template::formClose(); ?>
2019-11-26 19:22:30 +01:00
<div class="moduleVersion">Version
2021-02-09 18:04:24 +01:00
<?php echo $module::VERSION; ?>
2019-02-14 17:54:02 +01:00
</div>