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

98 lines
3.0 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-02-18 12:43:48 +01:00
<div class="row">
<div class="col1">
<?php echo template::button('formConfigBack', [
'class' => 'buttonGrey',
'href' => helper::baseUrl() . 'page/edit/' . $this->getUrl(0),
'value' => template::ico('left')
]); ?>
</div>
<div class="col1 offset7">
<?php echo template::button('formConfigData', [
'href' => helper::baseUrl() . $this->getUrl(0) . '/data',
'value' => template::ico('code'),
'help' => 'Voir et exporter les données du formulaire'
]); ?>
</div>
<div class="col1">
<?php echo template::button('formConfigLayout', [
'href' => helper::baseUrl() . $this->getUrl(0) . '/option',
'value' => template::ico('sliders'),
'help' => 'Options de configuration'
]); ?>
</div>
<div class="col2">
2018-04-02 08:29:19 +02:00
<?php echo template::submit('formConfigSubmit'); ?>
</div>
2022-02-18 12:43:48 +01:00
</div>
<div class="block">
2023-01-19 14:05:25 +01:00
<h4><?php echo helper::translate('Liste des champs');?></h4></h4>
2022-02-18 12:43:48 +01:00
<div id="formConfigNoInput">
<?php echo template::speech('Le formulaire ne contient aucun champ.'); ?>
2018-04-02 08:29:19 +02:00
</div>
2022-02-18 12:43:48 +01:00
<div id="formConfigInputs"></div>
2018-04-02 08:29:19 +02:00
<div class="row">
2022-02-18 12:43:48 +01:00
<div class="col1 offset11">
<?php echo template::button('formConfigAdd', [
'value' => template::ico('plus'),
2022-09-27 08:54:08 +02:00
'class' => 'buttonGreen',
2022-02-18 12:43:48 +01:00
]); ?>
2018-04-02 08:29:19 +02:00
</div>
</div>
2022-02-18 12:43: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>