From: Happy-melon Date: Sat, 5 Mar 2011 16:51:13 +0000 (+0000) Subject: HTMLFormField class to build a select-dropdown-with-additional-text-field structure... X-Git-Tag: 1.31.0-rc.0~31630 X-Git-Url: http://git.cyclocoop.org/%40spipnet%40?a=commitdiff_plain;h=b61a470845ba9c38f7554650944597e4f3b473e6;p=lhc%2Fweb%2Fwiklou.git 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(). --- 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 + * **