diff options
author | Bharat Mediratta <bharat@menalto.com> | 2008-12-18 22:35:16 +0000 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2008-12-18 22:35:16 +0000 |
commit | f5bc55e72dbce5f8f1ffbf4e20d3ed806cfaa232 (patch) | |
tree | 51b36e6b6e576979ef2fd865feddea9266304db2 /modules/comment/helpers | |
parent | a74537ad59ff37defe9a1901b83200d96db73e7b (diff) |
Add labels to the form groups.
Diffstat (limited to 'modules/comment/helpers')
-rw-r--r-- | modules/comment/helpers/comment.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/comment/helpers/comment.php b/modules/comment/helpers/comment.php index 8db2bda5..2a742b70 100644 --- a/modules/comment/helpers/comment.php +++ b/modules/comment/helpers/comment.php @@ -59,7 +59,7 @@ class comment_Core { static function get_add_form($item_id) { $form = new Forge(url::site("comments"), "", "post"); - $group = $form->group(_("Add Comment")); + $group = $form->group("add_comment")->label(_("Add comment")); $group->input("author") ->label(_("Author")) ->id("gAuthor"); $group->input("email") ->label(_("Email")) ->id("gEmail"); $group->textarea("text")->label(_("Text")) ->id("gText"); @@ -72,7 +72,7 @@ class comment_Core { static function get_edit_form($comment) { $form = new Forge( url::site("comments/{$comment->id}?_method=put"), "", "post"); - $group = $form->group(_("Edit Comment")); + $group = $form->group("edit_comment")->label(_("Edit comment")); $group->input("author") ->label(_("Author")) ->id("gAuthor") ->value($comment->author); $group->input("email") ->label(_("Email")) ->id("gEmail") ->value($comment->email); $group->textarea("text")->label(_("Text")) ->id("gText") ->value($comment->text); |