diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2008-12-14 03:19:31 +0000 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2008-12-14 03:19:31 +0000 |
commit | fc1e7a933372929d32f2d56a23b3c79e6e72439b (patch) | |
tree | 46dfd9581ae529271ddacea73cbf7df5864e5794 /core/views | |
parent | 23343fc4f61f25a66f9c2ae6f17683ce3bfb922d (diff) |
1) fix Forge_Group to display the label (will raise a bug with Kohana)
2) Change form.html.php to use the group label instead of the name
3) Converted the add photo to explicity set the label of the field (new coding standard)
Diffstat (limited to 'core/views')
-rw-r--r-- | core/views/form.html.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/views/form.html.php b/core/views/form.html.php index 86f1e38a..cde80709 100644 --- a/core/views/form.html.php +++ b/core/views/form.html.php @@ -17,8 +17,9 @@ if (!function_exists("DrawForm")) { foreach ($inputs as $input) { if ($input->type == 'group') { + print "$prefix<fieldset>\n"; - print "$prefix <legend>$input->name</legend>\n"; + print "$prefix <legend>{$input->label}</legend>\n"; print "$prefix <ul>\n"; DrawForm($input->inputs, $level + 2); |