cerebrate/templates/LocalTools/add.php

36 lines
1.1 KiB
PHP
Raw Normal View History

2021-04-30 23:59:53 +02:00
<?php
echo $this->element('genericElements/Form/genericForm', [
'data' => [
'description' => __('Add connections to local tools via any of the available connectors below.'),
'model' => 'LocalTools',
'fields' => [
[
'field' => 'name'
],
[
'field' => 'connector',
'options' => $dropdownData['connectors'],
'type' => 'dropdown'
],
2021-06-01 07:45:58 +02:00
[
'field' => 'exposed',
'type' => 'checkbox'
],
2021-04-30 23:59:53 +02:00
[
'field' => 'settings',
'type' => 'textarea'
2021-06-01 07:45:58 +02:00
],
[
'field' => 'description',
'type' => 'textarea'
],
2021-04-30 23:59:53 +02:00
],
'submit' => [
'action' => $this->request->getParam('action')
2021-06-01 07:45:58 +02:00
],
'url' => empty($redirect) ? null : $redirect
2021-04-30 23:59:53 +02:00
]
]);
?>
</div>