Undo the adding underscores to the id on forge generated forms

This commit is contained in:
Tim Almdal
2009-01-25 06:28:04 +00:00
parent b0ad4e0222
commit a8233ed979
12 changed files with 27 additions and 27 deletions
+3 -3
View File
@@ -62,7 +62,7 @@ class group_Core {
}
static function get_edit_form_admin($group) {
$form = new Forge("admin/groups/edit/$group->id", "", "post", array("id" => "gEdit_Group_Form"));
$form = new Forge("admin/groups/edit/$group->id", "", "post", array("id" => "gEditGroupForm"));
$form_group = $form->group("edit_group")->label(t("Edit Group"));
$form_group->input("name")->label(t("Name"))->id("gName")->value($group->name);
$form_group->inputs["name"]->error_messages(
@@ -73,7 +73,7 @@ class group_Core {
}
static function get_add_form_admin() {
$form = new Forge("admin/groups/add", "", "post", array("id" => "gAdd_Group_Form"));
$form = new Forge("admin/groups/add", "", "post", array("id" => "gAddGroupForm"));
$form_group = $form->group("add_group")->label(t("Add Group"));
$form_group->input("name")->label(t("Name"))->id("gName");
$form_group->inputs["name"]->error_messages(
@@ -86,7 +86,7 @@ class group_Core {
static function get_delete_form_admin($group) {
$form = new Forge("admin/groups/delete/$group->id", "", "post",
array("id" => "gDelete_Group_Form"));
array("id" => "gDeleteGroupForm"));
$form_group = $form->group("delete_group")->label(
t("Are you sure you want to delete group %group_name?", array("group_name" => $group->name)));
$form_group->submit("")->value(t("Delete"));