diff options
author | Bharat Mediratta <bharat@menalto.com> | 2008-12-18 22:29:49 +0000 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2008-12-18 22:29:49 +0000 |
commit | a74537ad59ff37defe9a1901b83200d96db73e7b (patch) | |
tree | dae75d64a769964b2bfcc08e20609d11768ca87b | |
parent | 052bb79d68b7b9aba782b69dfbcca4b831464d70 (diff) |
Don't wrap hidden inputs in <li/>
-rw-r--r-- | core/views/form.html.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/core/views/form.html.php b/core/views/form.html.php index cde80709..b3a779fe 100644 --- a/core/views/form.html.php +++ b/core/views/form.html.php @@ -16,8 +16,9 @@ if (!function_exists("DrawForm")) { $prefix = str_repeat(" ", $level); foreach ($inputs as $input) { - if ($input->type == 'group') { - + if ($input->type == 'hidden') { + print $input->render(); + } else if ($input->type == 'group') { print "$prefix<fieldset>\n"; print "$prefix <legend>{$input->label}</legend>\n"; print "$prefix <ul>\n"; |