2021-06-18 10:03:03 +02:00
|
|
|
<?php
|
|
|
|
$this->extend('LocalTool/GenericRequest');
|
|
|
|
$form = $this->element('genericElements/Form/genericForm', [
|
|
|
|
'entity' => null,
|
|
|
|
'ajax' => false,
|
|
|
|
'raw' => true,
|
|
|
|
'data' => [
|
|
|
|
'model' => 'Inbox',
|
|
|
|
'fields' => [
|
|
|
|
[
|
|
|
|
'field' => 'is_discard',
|
|
|
|
'type' => 'checkbox',
|
|
|
|
'default' => false
|
|
|
|
]
|
|
|
|
],
|
|
|
|
'submit' => [
|
|
|
|
'action' => $this->request->getParam('action')
|
|
|
|
]
|
|
|
|
]
|
|
|
|
]);
|
2021-06-21 14:30:32 +02:00
|
|
|
echo sprintf('<div class="d-none">%s</div><div class="form-error-container"></div>', $form);
|