mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-08-19 13:25:36 -04:00
Fully implement the user administration backend with drag/drop to add
users to groups.
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" => "gEditGroupForm"));
|
||||
$form = new Forge("admin/users/edit_group/$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" => "gAddGroupForm"));
|
||||
$form = new Forge("admin/users/add_group", "", "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(
|
||||
@@ -85,7 +85,7 @@ class group_Core {
|
||||
}
|
||||
|
||||
static function get_delete_form_admin($group) {
|
||||
$form = new Forge("admin/groups/delete/$group->id", "", "post",
|
||||
$form = new Forge("admin/users/delete_group/$group->id", "", "post",
|
||||
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)));
|
||||
|
||||
Reference in New Issue
Block a user