From a82f9b2c4feab9e8af72411a66a06978c3408c00 Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Sat, 11 May 2013 20:22:40 +0200 Subject: [PATCH] User bulk processing overhaul --- com.woltlab.wcf/acpMenu.xml | 4 +- .../acp/templates/userBulkProcessing.tpl | 291 +++++++++++++++++ .../acp/templates/usersMassProcessing.tpl | 292 ------------------ ...s.php => UserBulkProcessingForm.class.php} | 8 +- wcfsetup/install/lang/de.xml | 12 +- wcfsetup/install/lang/en.xml | 12 +- 6 files changed, 309 insertions(+), 310 deletions(-) create mode 100644 wcfsetup/install/files/acp/templates/userBulkProcessing.tpl delete mode 100644 wcfsetup/install/files/acp/templates/usersMassProcessing.tpl rename wcfsetup/install/files/lib/acp/form/{UsersMassProcessingForm.class.php => UserBulkProcessingForm.class.php} (98%) diff --git a/com.woltlab.wcf/acpMenu.xml b/com.woltlab.wcf/acpMenu.xml index 09dad4fbc5..e2f5f25089 100644 --- a/com.woltlab.wcf/acpMenu.xml +++ b/com.woltlab.wcf/acpMenu.xml @@ -173,8 +173,8 @@ 2 - - + + wcf.acp.menu.link.user.management.additional admin.user.canEditUser,admin.user.canDeleteUser,admin.user.canMailUser 1 diff --git a/wcfsetup/install/files/acp/templates/userBulkProcessing.tpl b/wcfsetup/install/files/acp/templates/userBulkProcessing.tpl new file mode 100644 index 0000000000..6b51ae3197 --- /dev/null +++ b/wcfsetup/install/files/acp/templates/userBulkProcessing.tpl @@ -0,0 +1,291 @@ +{include file='header' pageTitle='wcf.acp.user.bulkProcessing'} + + + +
+

{lang}wcf.acp.user.bulkProcessing{/lang}

+
+ +{if $errorField} +

{lang}wcf.global.form.error{/lang}

+{/if} + +

{lang}wcf.acp.user.bulkProcessing.warning{/lang}

+ +{if $affectedUsers|isset} +

{lang}wcf.acp.user.bulkProcessing.success{/lang}

+{/if} + +
+ {hascontent} + + {/hascontent} +
+ +
+
+ + +
+
+ {lang}wcf.acp.user.search.conditions.general{/lang} + +
+
+
+ +
+
+ + {if $__wcf->session->getPermission('admin.user.canEditMailAddress')} +
+
+
+ +
+
+ {/if} + + {if $availableGroups|count} +
+
+
+ {htmlCheckboxes options=$availableGroups name='groupIDArray' selected=$groupIDArray} + + +
+
+ {/if} + + {if $availableLanguages|count > 1} +
+
+
+ {htmlCheckboxes options=$availableLanguages name='languageIDArray' selected=$languageIDArray disableEncoding=true} +
+
+ {/if} + + {event name='generalFields'} +
+
+ + {if $options|count} +
+
+ {lang}wcf.acp.user.search.conditions.profile{/lang} + + {include file='optionFieldList' langPrefix='wcf.user.option.'} +
+
+ {/if} + +
+ + {lang}wcf.acp.user.bulkProcessing.action{/lang} + +
+
+ {if $__wcf->session->getPermission('admin.user.canMailUser')} + + + {/if} + {if $__wcf->session->getPermission('admin.user.canEditUser')} + + {/if} + {if $__wcf->session->getPermission('admin.user.canDeleteUser')} + + {/if} + + {event name='additionalActions'} + + {if $errorField == 'action'} + + {if $errorType == 'empty'}{lang}wcf.global.form.error.empty{/lang}{/if} + + {/if} +
+
+ + +
+
+ {lang}wcf.acp.user.sendMail.mail{/lang} + + +
+
+ + {if $errorField == 'from'} + + {if $errorType == 'empty'}{lang}wcf.global.form.error.empty{/lang}{/if} + + {/if} + {lang}wcf.acp.user.sendMail.from.description{/lang} +
+ + + +
+
+ + {if $errorField == 'subject'} + + {if $errorType == 'empty'}{lang}wcf.global.form.error.empty{/lang}{/if} + + {/if} + {lang}wcf.acp.user.sendMail.subject.description{/lang} +
+ + + +
+
+ + {if $errorField == 'text'} + + {if $errorType == 'empty'}{lang}wcf.global.form.error.empty{/lang}{/if} + + {/if} + {lang}wcf.acp.user.sendMail.text.description{/lang} +
+ + +
+
+ +
+
+
+
+ +
+
+ {lang}wcf.acp.user.exportEmailAddress.format{/lang} + +
+
+
+ + +
+
+ +
+
+
+ +
+
+ +
+
+
+ +
+
+
+
+ +
+
+ {lang}wcf.acp.user.groups{/lang} + +
+ + {htmlCheckboxes options=$availableGroups name=assignToGroupIDArray selected=$assignToGroupIDArray} + {if $errorField == 'assignToGroupIDArray'} + + {if $errorType == 'empty'}{lang}wcf.global.form.error.empty{/lang}{/if} + + {/if} + +
+
+
+ + {event name='actionSettings'} +
+
+ +
+ +
+
+ +{include file='footer'} diff --git a/wcfsetup/install/files/acp/templates/usersMassProcessing.tpl b/wcfsetup/install/files/acp/templates/usersMassProcessing.tpl deleted file mode 100644 index 5725649353..0000000000 --- a/wcfsetup/install/files/acp/templates/usersMassProcessing.tpl +++ /dev/null @@ -1,292 +0,0 @@ -{include file='header' pageTitle='wcf.acp.user.massProcessing'} - - - -
-

{lang}wcf.acp.user.massProcessing{/lang}

-
- -{if $errorField} -

{lang}wcf.global.form.error{/lang}

-{/if} - -

{lang}wcf.acp.user.massProcessing.warning{/lang}

- -{if $affectedUsers|isset} -

{lang}wcf.acp.user.massProcessing.success{/lang}

-{/if} - -
- {hascontent} - - {/hascontent} -
- -
-
-
- {lang}wcf.acp.user.search.conditions.general{/lang} - -
-
-
- -
-
- - {if $__wcf->session->getPermission('admin.user.canEditMailAddress')} -
-
-
- -
-
- {/if} - - {if $availableGroups|count} -
-
-
- {htmlCheckboxes options=$availableGroups name='groupIDArray' selected=$groupIDArray} - - -
-
- {/if} - - {if $availableLanguages|count > 1} -
-
-
- {htmlCheckboxes options=$availableLanguages name='languageIDArray' selected=$languageIDArray disableEncoding=true} -
-
- {/if} - - {event name='generalFields'} -
- - {event name='fieldsets'} - - {hascontent} -
- - - {if $options|count} - - {/if} - - {event name='tabMenuContents'} -
- {/hascontent} -
- -
- - {lang}wcf.acp.user.massProcessing.action{/lang} - -
-
- {if $__wcf->session->getPermission('admin.user.canMailUser')} - - - {/if} - {if $__wcf->session->getPermission('admin.user.canEditUser')} - - {/if} - {if $__wcf->session->getPermission('admin.user.canDeleteUser')} - - {/if} - - {event name='additionalActions'} - - {if $errorField == 'action'} - - {if $errorType == 'empty'}{lang}wcf.global.form.error.empty{/lang}{/if} - - {/if} -
-
- - -
-
- {lang}wcf.acp.user.sendMail.mail{/lang} - - -
-
- - {if $errorField == 'from'} - - {if $errorType == 'empty'}{lang}wcf.global.form.error.empty{/lang}{/if} - - {/if} - {lang}wcf.acp.user.sendMail.from.description{/lang} -
- - - -
-
- - {if $errorField == 'subject'} - - {if $errorType == 'empty'}{lang}wcf.global.form.error.empty{/lang}{/if} - - {/if} - {lang}wcf.acp.user.sendMail.subject.description{/lang} -
- - - -
-
- - {if $errorField == 'text'} - - {if $errorType == 'empty'}{lang}wcf.global.form.error.empty{/lang}{/if} - - {/if} - {lang}wcf.acp.user.sendMail.text.description{/lang} -
- - -
-
- -
-
-
-
- -
-
- {lang}wcf.acp.user.exportEmailAddress.format{/lang} - -
-
-
- - -
-
- -
-
-
- -
-
- -
-
-
- -
-
-
-
- -
-
- {lang}wcf.acp.user.groups{/lang} - -
- - {htmlCheckboxes options=$availableGroups name=assignToGroupIDArray selected=$assignToGroupIDArray} - {if $errorField == 'assignToGroupIDArray'} - - {if $errorType == 'empty'}{lang}wcf.global.form.error.empty{/lang}{/if} - - {/if} - -
-
-
- - {event name='actionSettings'} -
- -
- -
-
- -{include file='footer'} diff --git a/wcfsetup/install/files/lib/acp/form/UsersMassProcessingForm.class.php b/wcfsetup/install/files/lib/acp/form/UserBulkProcessingForm.class.php similarity index 98% rename from wcfsetup/install/files/lib/acp/form/UsersMassProcessingForm.class.php rename to wcfsetup/install/files/lib/acp/form/UserBulkProcessingForm.class.php index 2bdffc3d54..9a42489fe6 100644 --- a/wcfsetup/install/files/lib/acp/form/UsersMassProcessingForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/UserBulkProcessingForm.class.php @@ -18,16 +18,16 @@ use wcf\util\ArrayUtil; use wcf\util\StringUtil; /** - * Shows the users mass processing form. + * Shows the user bulk processing form. * * @author Marcel Werk - * @copyright 2001-2012 WoltLab GmbH + * @copyright 2001-2013 WoltLab GmbH * @license GNU Lesser General Public License * @package com.woltlab.wcf * @subpackage acp.form * @category Community Framework */ -class UsersMassProcessingForm extends UserOptionListForm { +class UserBulkProcessingForm extends UserOptionListForm { /** * @see wcf\page\AbstractPage::$neededPermissions */ @@ -418,7 +418,7 @@ class UsersMassProcessingForm extends UserOptionListForm { */ public function show() { // set active menu item - ACPMenu::getInstance()->setActiveMenuItem('wcf.acp.menu.link.user.massProcessing'); + ACPMenu::getInstance()->setActiveMenuItem('wcf.acp.menu.link.user.bulkProcessing'); // check master password WCFACP::checkMasterPassword(); diff --git a/wcfsetup/install/lang/de.xml b/wcfsetup/install/lang/de.xml index f691b0725a..f5935f2f82 100644 --- a/wcfsetup/install/lang/de.xml +++ b/wcfsetup/install/lang/de.xml @@ -264,7 +264,7 @@ - + @@ -708,11 +708,11 @@ - - - - - ohne zusätzliche Sicherheitsabfrage auf alle Benutzer aus, die unter die eingestellten Bedingungen fallen. Die Bearbeitungen können unter Umständen sehr rechenintensiv werden und sollten deshalb möglichst nur dann ausgeführt werden, wenn sich die Seite im Wartungsmodus befindet! Die Veränderungen können nicht rückgängig gemacht werden. Bitte benutzen Sie diese Funktion mit der nötigen Vorsicht!]]> + + + + + ohne zusätzliche Sicherheitsabfrage auf alle Benutzer aus, die unter die eingestellten Bedingungen fallen. Die Bearbeitungen können unter Umständen sehr rechenintensiv werden und sollten deshalb möglichst nur dann ausgeführt werden, wenn sich die Seite im Wartungsmodus befindet! Die Veränderungen können nicht rückgängig gemacht werden. Bitte benutzen Sie diese Funktion mit der nötigen Vorsicht!]]> diff --git a/wcfsetup/install/lang/en.xml b/wcfsetup/install/lang/en.xml index 0e2729538c..535f2532e8 100644 --- a/wcfsetup/install/lang/en.xml +++ b/wcfsetup/install/lang/en.xml @@ -264,7 +264,7 @@ - + @@ -708,11 +708,11 @@ - - - - - + + + + + -- 2.20.1