mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-07-29 03:04:08 -04:00
Undo the adding underscores to the id on forge generated forms
This commit is contained in:
@@ -70,7 +70,7 @@ class comment_Core {
|
||||
}
|
||||
|
||||
static function get_add_form($item) {
|
||||
$form = new Forge("comments", "", "post", array("id" => "gAdd_Comment_Form"));
|
||||
$form = new Forge("comments", "", "post", array("id" => "gAddCommentForm"));
|
||||
$group = $form->group("add_comment")->label(t("Add comment"));
|
||||
$group->input("name") ->label(t("Name")) ->id("gAuthor");
|
||||
$group->input("email") ->label(t("Email (hidden)")) ->id("gEmail");
|
||||
@@ -94,7 +94,7 @@ class comment_Core {
|
||||
|
||||
static function get_edit_form($comment) {
|
||||
$form = new Forge("comments/{$comment->id}?_method=put", "", "post",
|
||||
array("id" => "gEdit_Comment_Form"));
|
||||
array("id" => "gEditCommentForm"));
|
||||
$group = $form->group("edit_comment")->label(t("Edit comment"));
|
||||
$group->input("name") ->label(t("Author")) ->id("gAuthor");
|
||||
$group->input("email") ->label(t("Email (hidden)")) ->id("gEmail");
|
||||
|
||||
Reference in New Issue
Block a user