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