X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=templates%2Fdefault%2Fedit_list_widget.tpl;h=9c48bb2ab688250498ed5a879fdd1f1c195d55e8;hp=372e2a6a8f9640106bdad854079e29574801a4ed;hb=b6a08d2dbd26a27ecc114fa5dd922f6de03e064d;hpb=10d827083dc9d85324d79b2dce8244af6de700e0 diff --git a/templates/default/edit_list_widget.tpl b/templates/default/edit_list_widget.tpl index 372e2a6a..9c48bb2a 100644 --- a/templates/default/edit_list_widget.tpl +++ b/templates/default/edit_list_widget.tpl @@ -7,16 +7,17 @@ * * The following variables are available in this template: * - * string $name The name of the edit list - * string $input_widget A preconstructed input text box used - * for adding new elements to the edit list - * string $select_widget A preconstructed input text box used - * string $checkbox_widget A preconstructed input text box used - * string $trailing_text Any text given by the caller to be displayed - * after the edit list input - * array $possible_values The original list of options in the edit list, - * for use constructing layouts alternative to - * the select widget + * string $name The name of the edit list + * string $input_widget A preconstructed input text box used + * for adding new elements to the edit list + * boolean $use_input_widget Whether or not to present the $input_widget + * string $select_widget A preconstructed input text box used + * string $checkbox_widget A preconstructed input text box used + * string $trailing_text Any text given by the caller to be displayed + * after the edit list input + * array $possible_values The original list of options in the edit list, + * for use constructing layouts alternative to + * the select widget * * @copyright © 1999-2008 The SquirrelMail Project Team * @license http://opensource.org/licenses/gpl-license.php GNU Public License @@ -31,6 +32,9 @@ extract($t); -echo _("Add") . ' ' . $input_widget . '
' . $select_widget +if ($use_input_widget) + echo _("Add") . ' ' . $input_widget . '
'; + +echo $select_widget . '
' . $checkbox_widget . ' ';