summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2008-12-29 23:36:58 +0000
committerBharat Mediratta <bharat@menalto.com>2008-12-29 23:36:58 +0000
commit1b53073b5584a2671d20ba9ec6bed91007ab0df9 (patch)
tree896dd8c8ef041a6aa1aad2307f982c176731c238
parentaed1b08019c9e3f6b60c66c8e3c99530b728bed4 (diff)
Mark the "website" field as hidden.
-rw-r--r--modules/comment/helpers/comment.php16
1 files changed, 8 insertions, 8 deletions
diff --git a/modules/comment/helpers/comment.php b/modules/comment/helpers/comment.php
index d6c3bd48..22f9e740 100644
--- a/modules/comment/helpers/comment.php
+++ b/modules/comment/helpers/comment.php
@@ -96,10 +96,10 @@ class comment_Core {
static function get_add_form($item) {
$form = new Forge("comments", "", "post");
$group = $form->group("add_comment")->label(_("Add comment"));
- $group->input("author") ->label(_("Author")) ->id("gAuthor");
- $group->input("email") ->label(_("Email")) ->id("gEmail");
- $group->input("url") ->label(_("Website")) ->id("gUrl");
- $group->textarea("text")->label(_("Text")) ->id("gText");
+ $group->input("author") ->label(_("Author")) ->id("gAuthor");
+ $group->input("email") ->label(_("Email")) ->id("gEmail");
+ $group->input("url") ->label(_("Website (hidden)"))->id("gUrl");
+ $group->textarea("text") ->label(_("Text")) ->id("gText");
$group->hidden("item_id")->value($item->id);
$group->submit(_("Add"));
$form->add_rules_from(ORM::factory("comment"));
@@ -109,10 +109,10 @@ class comment_Core {
static function get_edit_form($comment) {
$form = new Forge("comments/{$comment->id}?_method=put", "", "post");
$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->input("url") ->label(_("Website")) ->id("gUrl") ->value($comment->url);
- $group->textarea("text")->label(_("Text")) ->id("gText") ->value($comment->text);
+ $group->input("author") ->label(_("Author")) ->id("gAuthor")->value($comment->author);
+ $group->input("email") ->label(_("Email")) ->id("gEmail") ->value($comment->email);
+ $group->input("url") ->label(_("Website (hidden)"))->id("gUrl") ->value($comment->url);
+ $group->textarea("text")->label(_("Text")) ->id("gText") ->value($comment->text);
$group->submit(_("Edit"));
$form->add_rules_from($comment);
return $form;