X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=templates%2Fdefault%2Fedit_list_widget.tpl;h=1662bf13d8a2de95bed4cde9636b84a5347c3916;hb=316c380a2f5f3495fc8f95f304514d4082b0aa8b;hp=9c48bb2ab688250498ed5a879fdd1f1c195d55e8;hpb=b6a08d2dbd26a27ecc114fa5dd922f6de03e064d;p=squirrelmail.git
diff --git a/templates/default/edit_list_widget.tpl b/templates/default/edit_list_widget.tpl
index 9c48bb2a..1662bf13 100644
--- a/templates/default/edit_list_widget.tpl
+++ b/templates/default/edit_list_widget.tpl
@@ -11,17 +11,21 @@
* 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
+ * 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
+ * mixed $current_value The currently selected value(s)
*
- * @copyright © 1999-2008 The SquirrelMail Project Team
+ * @copyright 1999-2013 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 $
+ * @version $Id$
* @package squirrelmail
* @subpackage templates
*/
@@ -35,6 +39,8 @@ extract($t);
if ($use_input_widget)
echo _("Add") . ' ' . $input_widget . '
';
-echo $select_widget
- . '
' . $checkbox_widget . ' ';
+echo $select_widget;
+
+if (!empty($possible_values) && $use_delete_widget)
+ echo '
' . $checkbox_widget . ' ';