mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-08-01 12:40:45 -04:00
Add title back to non-DHTML form to maintain consistency
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user