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/helpers | |
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/helpers')
-rw-r--r-- | core/helpers/photo.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/core/helpers/photo.php b/core/helpers/photo.php index 2edd8a4f..da4ab0ac 100644 --- a/core/helpers/photo.php +++ b/core/helpers/photo.php @@ -93,11 +93,11 @@ class photo_Core { static function get_add_form($parent) { $form = new Forge("albums/{$parent->id}", "", "post", array("id" => "gAddPhotoForm", "enctype" => "multipart/form-data")); - $group = $form->group(sprintf(_("Add Photo to %s"), $parent->title)); - $group->input("name")->label(true); - $group->input("title")->label(true); - $group->textarea("description")->label(true)->rules("length[0, 255"); - $group->upload("file")->label(true)->rules("allow[jpg,png,gif,tiff]"); + $group = $form->group("add_photo")->label(sprintf(_("Add Photo to %s"), $parent->title)); + $group->input("name")->label(_("Name")); + $group->input("title")->label(_("Title")); + $group->textarea("description")->label(_("Description"))->rules("length[0, 255"); + $group->upload("file")->label(_("File"))->rules("allow[jpg,png,gif,tiff]"); $group->hidden("type")->value("photo"); $group->submit(_("Upload")); $form->add_rules_from(ORM::factory("item")); |