From b61a470845ba9c38f7554650944597e4f3b473e6 Mon Sep 17 00:00:00 2001 From: Happy-melon Date: Sat, 5 Mar 2011 16:51:13 +0000 Subject: [PATCH] HTMLFormField class to build a select-dropdown-with-additional-text-field structure, with the select options maybe parsed from a system message as is done for the protect, block, delete, fileupload, etc, dialogues. Serves as a replacement vector for Xml::listDropDown(). --- includes/HTMLForm.php | 147 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 147 insertions(+) diff --git a/includes/HTMLForm.php b/includes/HTMLForm.php index f71c7d3e7f..56577f6176 100644 --- a/includes/HTMLForm.php +++ b/includes/HTMLForm.php @@ -69,6 +69,7 @@ class HTMLForm { 'float' => 'HTMLFloatField', 'info' => 'HTMLInfoField', 'selectorother' => 'HTMLSelectOrOtherField', + 'selectandother' => 'HTMLSelectAndOtherField', 'submit' => 'HTMLSubmitField', 'hidden' => 'HTMLHiddenField', 'edittools' => 'HTMLEditTools', @@ -1456,6 +1457,152 @@ class HTMLMultiSelectField extends HTMLFormField { } } +/** + * Double field with a dropdown list constructed from a system message in the format + * * Optgroup header + * **