X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=templates%2Fdefault%2Fedit_list_widget.tpl;h=88a58d71b4cf1e0f9716019cbb3cda28bc827433;hb=1977ab5587905d225c6288141b82f7a6e3d29d02;hp=46d0f0be4d7137a91948dc5d0f58a3ac35249bfd;hpb=cb606dfd0fab7fc745ac98477d619012f2fdcc1f;p=squirrelmail.git diff --git a/templates/default/edit_list_widget.tpl b/templates/default/edit_list_widget.tpl index 46d0f0be..88a58d71 100644 --- a/templates/default/edit_list_widget.tpl +++ b/templates/default/edit_list_widget.tpl @@ -7,15 +7,22 @@ * * 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 + * 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 + * boolean $use_delete_widget Whether or not to present the $checkbox_widget + * string $select_widget A preconstructed select widget containing + * all the elements in the list + * string $checkbox_widget A preconstructed checkbox used for deleting + * elements from the edit list + * 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 + * @copyright 1999-2010 The SquirrelMail Project Team * @license http://opensource.org/licenses/gpl-license.php GNU Public License * @version $Id: select.tpl 12961 2008-02-24 22:35:08Z pdontthink $ * @package squirrelmail @@ -28,6 +35,11 @@ extract($t); -echo _("Add") . ' ' . $input_widget . '
' . $select_widget - . '
' . $checkbox_widget . ' '; +if ($use_input_widget) + echo _("Add") . ' ' . $input_widget . '
'; + +echo $select_widget; + +if (!empty($possible_values) && $use_delete_widget) + echo '
' . $checkbox_widget . ' ';