Add title back to non-DHTML form to maintain consistency

This commit is contained in:
Felix Rabinovich
2008-12-28 22:49:58 +00:00
parent 1161cefada
commit 1d76689e4b
2 changed files with 11 additions and 7 deletions
+5 -3
View File
@@ -63,7 +63,7 @@ class group_Core {
public static function get_edit_form_admin($group) {
$form = new Forge("admin/groups/edit/$group->id");
$form_group = $form->group("edit_group");
$form_group = $form->group("edit_group")->label(_("Edit Group"));
$form_group->input("name")->label(_("Name"))->id("gName")->value($group->name);
$form->add_rules_from($group);
return $form;
@@ -71,7 +71,7 @@ class group_Core {
public static function get_add_form_admin() {
$form = new Forge("admin/groups/add");
$form_group = $form->group("add_group");
$form_group = $form->group("add_group")->label(_("Add Group"));
$form_group->input("name")->label(_("Name"))->id("gName");
$group = ORM::factory("group");
$form->add_rules_from($group);
@@ -79,6 +79,8 @@ class group_Core {
}
public static function get_delete_form_admin($group) {
return new Forge("admin/groups/delete/$group->id");
$form = new Forge("admin/groups/delete/$group->id",
sprintf(_("Are you sure you want to delete %s"), $group->name));
print $form;
}
}