From: pdontthink Date: Wed, 5 Mar 2008 21:07:41 +0000 (+0000) Subject: Make the caption for checkboxes a label for the checkbox X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=commitdiff_plain;h=2eb944e80ce1d3b340621e34f6142e2a5c174f7b 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 --- 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" .