From c6d240266dc0c13bf3e4efc5979b2d28226f23f4 Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Mon, 22 Apr 2013 02:04:19 +0200 Subject: [PATCH] Added user option administration (WIP) --- com.woltlab.wcf/acpMenu.xml | 35 +++ com.woltlab.wcf/userGroupOption.xml | 15 + .../files/acp/templates/userOptionAdd.tpl | 228 ++++++++++++++ .../acp/templates/userOptionCategoryAdd.tpl | 68 +++++ .../acp/templates/userOptionCategoryList.tpl | 84 +++++ .../files/acp/templates/userOptionList.tpl | 87 ++++++ .../acp/templates/userOptionSetDefaults.tpl | 62 ++++ .../lib/acp/form/UserOptionAddForm.class.php | 287 ++++++++++++++++++ .../form/UserOptionCategoryAddForm.class.php | 124 ++++++++ .../form/UserOptionCategoryEditForm.class.php | 96 ++++++ .../form/UserOptionSetDefaultsForm.class.php | 128 ++++++++ .../page/UserOptionCategoryListPage.class.php | 50 +++ .../lib/acp/page/UserOptionListPage.class.php | 49 +++ .../user/option/UserOptionAction.class.php | 15 + .../user/option/UserOptionEditor.class.php | 14 +- .../UserOptionCategoryAction.class.php | 15 + 16 files changed, 1351 insertions(+), 6 deletions(-) create mode 100644 wcfsetup/install/files/acp/templates/userOptionAdd.tpl create mode 100644 wcfsetup/install/files/acp/templates/userOptionCategoryAdd.tpl create mode 100644 wcfsetup/install/files/acp/templates/userOptionCategoryList.tpl create mode 100644 wcfsetup/install/files/acp/templates/userOptionList.tpl create mode 100644 wcfsetup/install/files/acp/templates/userOptionSetDefaults.tpl create mode 100644 wcfsetup/install/files/lib/acp/form/UserOptionAddForm.class.php create mode 100644 wcfsetup/install/files/lib/acp/form/UserOptionCategoryAddForm.class.php create mode 100644 wcfsetup/install/files/lib/acp/form/UserOptionCategoryEditForm.class.php create mode 100644 wcfsetup/install/files/lib/acp/form/UserOptionSetDefaultsForm.class.php create mode 100644 wcfsetup/install/files/lib/acp/page/UserOptionCategoryListPage.class.php create mode 100644 wcfsetup/install/files/lib/acp/page/UserOptionListPage.class.php diff --git a/com.woltlab.wcf/acpMenu.xml b/com.woltlab.wcf/acpMenu.xml index db13987056..e2b0691afe 100644 --- a/com.woltlab.wcf/acpMenu.xml +++ b/com.woltlab.wcf/acpMenu.xml @@ -242,6 +242,41 @@ + + + wcf.acp.menu.link.user + 3 + + + + + wcf.acp.menu.link.user.option + admin.user.canManageUserOption + + + + wcf.acp.menu.link.user.option + admin.user.canManageUserOption + + + + + wcf.acp.menu.link.user.option + admin.user.canManageUserOptionCategory + + + + wcf.acp.menu.link.user.option + admin.user.canManageUserOptionCategory + + + + + wcf.acp.menu.link.user.option + admin.user.canManageUserOption + + + 3 diff --git a/com.woltlab.wcf/userGroupOption.xml b/com.woltlab.wcf/userGroupOption.xml index b3b11e2078..faafa5c716 100644 --- a/com.woltlab.wcf/userGroupOption.xml +++ b/com.woltlab.wcf/userGroupOption.xml @@ -34,6 +34,9 @@ admin.user + + admin.user + admin @@ -171,6 +174,18 @@ 0 1 + +