diff --git a/wcfsetup/install/files/acp/templates/captchaQuestionAdd.tpl b/wcfsetup/install/files/acp/templates/captchaQuestionAdd.tpl index 64d2d423e1e..636ce79406a 100644 --- a/wcfsetup/install/files/acp/templates/captchaQuestionAdd.tpl +++ b/wcfsetup/install/files/acp/templates/captchaQuestionAdd.tpl @@ -14,65 +14,6 @@ -{include file='shared_formNotice'} - -
+{unsafe:$form->getHtml()} {include file='footer'} diff --git a/wcfsetup/install/files/lib/acp/form/CaptchaQuestionAddForm.class.php b/wcfsetup/install/files/lib/acp/form/CaptchaQuestionAddForm.class.php index 502054afb5f..95df4f71481 100644 --- a/wcfsetup/install/files/lib/acp/form/CaptchaQuestionAddForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/CaptchaQuestionAddForm.class.php @@ -2,42 +2,35 @@ namespace wcf\acp\form; +use wcf\data\captcha\question\CaptchaQuestion; use wcf\data\captcha\question\CaptchaQuestionAction; -use wcf\data\captcha\question\CaptchaQuestionEditor; -use wcf\form\AbstractForm; -use wcf\system\exception\UserInputException; -use wcf\system\language\I18nHandler; +use wcf\data\language\Language; +use wcf\form\AbstractFormBuilderForm; +use wcf\system\form\builder\container\FormContainer; +use wcf\system\form\builder\field\BooleanFormField; +use wcf\system\form\builder\field\MultilineTextFormField; +use wcf\system\form\builder\field\TextFormField; +use wcf\system\form\builder\field\validation\FormFieldValidationError; +use wcf\system\form\builder\field\validation\FormFieldValidator; +use wcf\system\language\LanguageFactory; use wcf\system\Regex; -use wcf\system\request\LinkHandler; -use wcf\system\WCF; -use wcf\util\StringUtil; /** * Shows the form to create a new captcha question. * - * @author Matthias Schmidt - * @copyright 2001-2019 WoltLab GmbH - * @license GNU Lesser General Public License