| 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> |
| 10 | <input type="text" id="__userTitle" name="values[__userTitle]" value="{$__userTitle}" class="long" maxlength="{@USER_TITLE_MAX_LENGTH}" /> |
| 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> |
| 23 | {/foreach} |
| 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> |
| 29 | </div> |
| 30 | |
| 31 | <script data-relocate="true"> |
| 32 | $(function() { |
| 33 | new WCF.Option.Handler(); |
| 34 | }); |
| 35 | </script> |