projects
/
squirrelmail.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Allow control over white space wrapping of auto-generated SquirrelMail option widgets
[squirrelmail.git]
/
templates
/
default
/
options.tpl
diff --git
a/templates/default/options.tpl
b/templates/default/options.tpl
index e9cf2d5a92a9631ceaa5d26cb203c658c63a5dbc..03e23d4488d2536bdcddf7f5fcf3b1cca679a39d 100644
(file)
--- a/
templates/default/options.tpl
+++ b/
templates/default/options.tpl
@@
-41,10
+41,11
@@
foreach ($options as $option) {
" </tr>\n";
}
" </tr>\n";
}
+ $hidden_widgets = '';
foreach ($option['options'] as $opt) {
if ($opt->type != SMOPT_TYPE_HIDDEN) {
echo "<tr>\n" .
foreach ($option['options'] as $opt) {
if ($opt->type != SMOPT_TYPE_HIDDEN) {
echo "<tr>\n" .
- " <td class=\"optionName\">\n ";
+ " <td class=\"optionName\"
" . ($opt->caption_wrap ? '' : ' style="white-space:nowrap"') . "
>\n ";
if ($opt->type == SMOPT_TYPE_BOOLEAN_CHECKBOX
|| $opt->type == SMOPT_TYPE_BOOLEAN) {
if ($opt->type == SMOPT_TYPE_BOOLEAN_CHECKBOX
|| $opt->type == SMOPT_TYPE_BOOLEAN) {
@@
-60,12
+61,12
@@
foreach ($options as $option) {
" </td>\n" .
"</tr>\n";
} else {
" </td>\n" .
"</tr>\n";
} else {
-
echo
$opt->createWidget();
+
$hidden_widgets .=
$opt->createWidget();
}
}
echo " <tr>\n <td colspan=\"2\" align=\"right\">\n"
}
}
echo " <tr>\n <td colspan=\"2\" align=\"right\">\n"
- . " <input type=\"submit\" value=\"" . _("Submit")
+ .
$hidden_widgets .
" <input type=\"submit\" value=\"" . _("Submit")
. "\" name=\"" . $submit_name . "\" /> \n </td>\n </tr>\n";
echo "</table>\n";
. "\" name=\"" . $submit_name . "\" /> \n </td>\n </tr>\n";
echo "</table>\n";