Add button form field and is not clicked condition
authorMatthias Schmidt <gravatronics@live.com>
Sat, 7 Nov 2020 11:53:50 +0000 (12:53 +0100)
committerGitHub <noreply@github.com>
Sat, 7 Nov 2020 11:53:50 +0000 (12:53 +0100)
commit4ab68398032c7ea07933709bb3eaca15cfb1a8ec
tree33ccc210228f800b953f2c47a3c4f01a47fdf814
parent1126d78b3f3fa21622be7b59a8fc2455b314eb4c
Add button form field and is not clicked condition

* Add button form field

Close #3693

* Add public method to submit `Ui/Dialog`

* Support additional submit buttons in `Form/Builder/Dialog`

* Support `ButtonFormField` in AJAX forms

* Fix identifier of data processor in `ButtonFormField`

* Fix data processor for `ButtonFormField`

* Add condition for form builder buttons not being clicked

* Simplify button form field-related TypeScript code

Co-authored-by: Alexander Ebert <ebert@woltlab.com>
* Add missing semicolon

* Unify condition to checked if form field button has been clicked

Co-authored-by: Alexander Ebert <ebert@woltlab.com>
15 files changed:
com.woltlab.wcf/templates/__buttonFormField.tpl [new file with mode: 0644]
com.woltlab.wcf/templates/__isNotClickedFormFieldDependency.tpl [new file with mode: 0644]
syncTemplates.json
wcfsetup/install/files/acp/templates/__buttonFormField.tpl [new file with mode: 0644]
wcfsetup/install/files/acp/templates/__isNotClickedFormFieldDependency.tpl [new file with mode: 0644]
wcfsetup/install/files/js/WoltLabSuite/Core/Form/Builder/Dialog.js
wcfsetup/install/files/js/WoltLabSuite/Core/Form/Builder/Field/Button.js [new file with mode: 0644]
wcfsetup/install/files/js/WoltLabSuite/Core/Form/Builder/Field/Dependency/IsNotClicked.js [new file with mode: 0644]
wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Dialog.js
wcfsetup/install/files/lib/system/form/builder/field/ButtonFormField.class.php [new file with mode: 0644]
wcfsetup/install/files/lib/system/form/builder/field/dependency/IsNotClickedFormFieldDependency.class.php [new file with mode: 0644]
wcfsetup/install/files/ts/WoltLabSuite/Core/Form/Builder/Dialog.js
wcfsetup/install/files/ts/WoltLabSuite/Core/Form/Builder/Field/Button.js [new file with mode: 0644]
wcfsetup/install/files/ts/WoltLabSuite/Core/Form/Builder/Field/Dependency/IsNotClicked.js [new file with mode: 0644]
wcfsetup/install/files/ts/WoltLabSuite/Core/Ui/Dialog.ts