Commit | Line | Data |
---|---|---|
320f4a6d MW |
1 | <div class="containerPadding"> |
2 | {foreach from=$optionTree item=categoryLevel1} | |
3 | {foreach from=$categoryLevel1[categories] item=categoryLevel2} | |
4 | <fieldset> | |
5 | <legend>{lang}wcf.user.option.category.{@$categoryLevel2[object]->categoryName}{/lang}</legend> | |
6 | ||
7 | {if $categoryLevel2[object]->categoryName == 'profile.personal' && MODULE_USER_RANK && $__wcf->session->getPermission('user.profile.canEditUserTitle')} | |
8 | <dl> | |
9 | <dt><label for="__userTitle">{lang}wcf.user.userTitle{/lang}</label></dt> | |
10 | <dd> | |
11 | <input type="text" id="__userTitle" name="values[__userTitle]" value="{$__userTitle}" class="long" maxlength="{@USER_TITLE_MAX_LENGTH}" /> | |
12 | {if $errorType[__userTitle]|isset} | |
13 | <small class="innerError"> | |
14 | {lang}wcf.user.userTitle.error.{@$errorType[__userTitle]}{/lang} | |
15 | </small> | |
16 | {/if} | |
17 | <small>{lang}wcf.user.userTitle.description{/lang}</small> | |
18 | </dd> | |
19 | </dl> | |
20 | {/if} | |
21 | ||
22 | {include file='userProfileOptionFieldList' options=$categoryLevel2[options] langPrefix='wcf.user.option.'} | |
23 | </fieldset> | |
24 | {/foreach} | |
25 | {/foreach} | |
26 | ||
27 | <div class="formSubmit"> | |
28 | <button class="buttonPrimary" accesskey="s" data-type="save">{lang}wcf.global.button.save{/lang}</button> | |
29 | <button data-type="restore">{lang}wcf.global.button.cancel{/lang}</button> | |
30 | </div> | |
0adad627 AE |
31 | </div> |
32 | <script data-relocate="true"> | |
33 | $(function() { | |
34 | new WCF.Option.Handler(); | |
35 | }); | |
36 | </script> |