From 5da92f1bc7d059ec6c8c8dc6ab2eec3a8ca67518 Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Fri, 26 Apr 2013 02:12:50 +0200 Subject: [PATCH] Small style optimization --- .../install/files/acp/templates/userAdd.tpl | 294 +++++++++--------- 1 file changed, 146 insertions(+), 148 deletions(-) diff --git a/wcfsetup/install/files/acp/templates/userAdd.tpl b/wcfsetup/install/files/acp/templates/userAdd.tpl index c8314f7f50..3b146d0efb 100644 --- a/wcfsetup/install/files/acp/templates/userAdd.tpl +++ b/wcfsetup/install/files/acp/templates/userAdd.tpl @@ -38,174 +38,172 @@
-
-
- {lang}wcf.acp.user.general{/lang} - - -
-
- - {if $errorType.username|isset} - - {if $errorType.username == 'empty'} - {lang}wcf.global.form.error.empty{/lang} - {else} - {lang}wcf.user.username.error.{@$errorType.username}{/lang} - {/if} - - {/if} -
- - - {if $availableGroups|count} -
-
- -
-
- {htmlCheckboxes options=$availableGroups name=groupIDs selected=$groupIDs} -
-
- {/if} - - {event name='generalFields'} -
+
+ - {if $action == 'add' || $__wcf->session->getPermission('admin.user.canEditMailAddress')} + - {if $action == 'add' || $__wcf->session->getPermission('admin.user.canEditPassword')} -
- {lang}wcf.user.password{/lang} - - -
-
- - {if $errorType.password|isset} - - {if $errorType.password == 'empty'} - {lang}wcf.global.form.error.empty{/lang} - {else} - {lang}wcf.user.password.error.{@$errorType.password}{/lang} - {/if} - + {foreach from=$optionTree item=categoryLevel1} +
- - - -
-
- - {if $errorType.confirmPassword|isset} - - {lang}wcf.user.confirmPassword.error.{@$errorType.confirmPassword}{/lang} - + + {event name='categoryFields'} + + {include file='optionFieldList' options=$categoryLevel2[options] langPrefix='wcf.user.option.'} + + {if $categoryLevel2[categories]|count} + {foreach from=$categoryLevel2[categories] item=categoryLevel3} + {include file='optionFieldList' options=$categoryLevel3[options] langPrefix='wcf.user.option.'} + {/foreach} {/if} -
- - - {event name='passwordFields'} -
- {/if} - - {event name='fieldsets'} - - {if $optionTree|count || $additionalTabs|isset} -
- - - {foreach from=$optionTree item=categoryLevel1} - + {/foreach}
- {/if} + {/foreach}
-- 2.20.1