From 2eb944e80ce1d3b340621e34f6142e2a5c174f7b Mon Sep 17 00:00:00 2001 From: pdontthink Date: Wed, 5 Mar 2008 21:07:41 +0000 Subject: [PATCH] Make the caption for checkboxes a label for the checkbox git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@13003 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- templates/default/options.tpl | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/templates/default/options.tpl b/templates/default/options.tpl index e205bbaa..ecbb02a5 100644 --- a/templates/default/options.tpl +++ b/templates/default/options.tpl @@ -44,9 +44,19 @@ foreach ($options as $option) { foreach ($option['options'] as $opt) { if ($opt->type != SMOPT_TYPE_HIDDEN) { echo "\n" . - " \n" . - " ".$opt->caption."\n" . - " \n" . + " \n "; + +//FIXME: use the following two lines instead if we make the default boolean type checkbox + //if ($opt->type == SMOPT_TYPE_BOOLEAN_CHECKBOX + // || $opt->type == SMOPT_TYPE_BOOLEAN) { + if ($opt->type == SMOPT_TYPE_BOOLEAN_CHECKBOX) { + echo ''; + } else { + echo $opt->caption; + } + + echo "\n \n" . " \n" . " ".$opt->createWidget()."\n" . " \n" . -- 2.25.1