From b409a376f3689e51bb50f9716c1384d9b2013832 Mon Sep 17 00:00:00 2001 From: Tim Almdal Date: Sun, 7 Dec 2008 17:09:21 +0000 Subject: 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
  • ...
  • html blocl --- core/helpers/photo.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/helpers') 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")); -- cgit v1.2.3