diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2008-12-07 17:09:21 +0000 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2008-12-07 17:09:21 +0000 |
commit | b409a376f3689e51bb50f9716c1384d9b2013832 (patch) | |
tree | e110f6b538193b440749ce20bab087a5632652d3 /core/helpers | |
parent | 5d23a6515d8c62f158c6369fafc6fc9bf0092775 (diff) |
1) Change the photo description field to a text area
2) Added a 'type' data element to both forge/Form_Textarea and forge/Form_Upload
The second change allows the drawForm to correctly render both of these elements enclosed in a <li>...</li> html blocl
Diffstat (limited to 'core/helpers')
-rw-r--r-- | core/helpers/photo.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/helpers/photo.php b/core/helpers/photo.php index 0c098c84..aea568ba 100644 --- a/core/helpers/photo.php +++ b/core/helpers/photo.php @@ -94,7 +94,7 @@ class photo_Core { $group = $form->group(sprintf(_("Add Photo to %s"), $parent->title)); $group->input("name")->label(true); $group->input("title")->label(true); - $group->input("description")->label(true)->rules("length[0, 255"); + $group->textarea("description")->label(true)->rules("length[0, 255"); $group->upload("file")->label(true)->rules("allow[jpg,png,gif,tiff]"); $group->hidden("type")->value("photo"); $group->submit(_("Upload")); |