diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2008-12-07 21:24:50 +0000 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2008-12-07 21:24:50 +0000 |
commit | e518dafb19a0bb7dc3b1a1e4eea3326dd59806d9 (patch) | |
tree | 546a732ad0aed90eab81a0bdec7037460cc74de6 /themes | |
parent | 954fcf034238458f292c9f5ec72c6d4b101aac0d (diff) |
1) Revert the changes to Form_Upload and Form_Textarea, so we don't have to change third party code.
2) Change drawForm to check for a non empty $input->class in order to determime if the element should be wrapped in <li>...</li>. If $input->class is empty then treat as a hidden field.
Diffstat (limited to 'themes')
-rw-r--r-- | themes/default/views/form.html.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/themes/default/views/form.html.php b/themes/default/views/form.html.php index 41bdc0f9..6d527aed 100644 --- a/themes/default/views/form.html.php +++ b/themes/default/views/form.html.php @@ -27,10 +27,10 @@ if (!function_exists("DrawForm")) { } else { if ($input->error_messages()) { print "$prefix<li class=\"gError\">\n"; - } else if ($input->type) { + } else if ($input->class) { print "$prefix<li>\n"; } else { - // no type means its a "hidden" so don't wrap it in <li> + // no class means its a "hidden" so don't wrap it in <li> } if ($input->label()) { print "$prefix {$input->label()}\n"; @@ -46,7 +46,7 @@ if (!function_exists("DrawForm")) { print "$prefix </p>\n"; } } - if ($input->type) { + if ($input->class) { print "$prefix</li>\n"; } } |