mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-08-22 23:05:18 -04:00
Undo the adding underscores to the id on forge generated forms
This commit is contained in:
@@ -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"));
|
||||
|
||||
Reference in New Issue
Block a user