Add a dedicated form field for plain select fields
authorMarcel Werk <burntime@woltlab.com>
Wed, 3 May 2023 16:06:10 +0000 (18:06 +0200)
committerMarcel Werk <burntime@woltlab.com>
Wed, 3 May 2023 16:06:10 +0000 (18:06 +0200)
commit0cb2234e773f237c2469482860fd9ec58799de5c
treebcff39f6925da02209a92a53f24d3d05f6111b31
parent7f8694c68776dfc9c1e2db9907fc0a9f96353e29
Add a dedicated form field for plain select fields

The existing `SingleSelectionFormField` has multiple design flaws that are difficult to solve in a backward compatible way. The main issue with the existing implementation is that it tries to solve too many problems at once, creating an API that is inconsistent and difficult to use / easy to misuse.

This is the first implementation with more to follow that will eventually allow us to phase out the `SingleSelectionFormField`.

Closes #5265
Closes #4789
com.woltlab.wcf/templates/__selectFormField.tpl [new file with mode: 0644]
wcfsetup/install/files/acp/templates/__selectFormField.tpl [new file with mode: 0644]
wcfsetup/install/files/lib/system/form/builder/field/SelectFormField.class.php [new file with mode: 0644]