1 {include file='userMenuSidebar'}
3 {include file='header' __disableAds=true __sidebarLeftHasMenu=true}
5 {include file='shared_formError'}
8 <woltlab-core-notice type="success">{lang}wcf.global.success.edit{/lang}</woltlab-core-notice>
11 {if $__wcf->user->disableSignature}
12 <woltlab-core-notice type="error">{lang}wcf.user.signature.error.disabled{/lang}</woltlab-core-notice>
15 <form method="post" action="{link controller='SignatureEdit'}{/link}">
17 <section class="section">
18 <h2 class="sectionTitle">{lang}wcf.user.signature.current{/lang}</h2>
20 <div class="htmlContent messageSignatureConstraints">{@$signatureCache}</div>
24 {if !$__wcf->user->disableSignature}
25 <section class="section" id="signatureContainer">
26 <h2 class="sectionTitle">{lang}wcf.user.signature{/lang}</h2>
28 <dl class="wide{if $errorField == 'text'} formError{/if}">
29 <dt><label for="text">{lang}wcf.user.signature{/lang}</label></dt>
30 <dd class="messageSignatureConstraints">
31 <textarea id="text" class="wysiwygTextarea" name="text" rows="20" cols="40"
32 data-disable-media="true"
34 {if $errorField == 'text'}
35 <small class="innerError">
36 {if $errorType == 'empty'}
37 {lang}wcf.global.form.error.empty{/lang}
38 {elseif $errorType == 'tooLong'}
39 {lang}wcf.message.error.tooLong{/lang}
40 {elseif $errorType == 'censoredWordsFound'}
41 {lang}wcf.message.error.censoredWordsFound{/lang}
42 {elseif $errorType == 'disallowedBBCodes'}
43 {lang}wcf.message.error.disallowedBBCodes{/lang}
45 {lang}wcf.user.signature.error.{@$errorType}{/lang}
55 {event name='sections'}
57 {include file='messageFormTabs'}
60 {if !$__wcf->user->disableSignature}
61 <div class="formSubmit">
62 <input type="submit" value="{lang}wcf.global.button.submit{/lang}" accesskey="s">
63 <button type="button" id="previewButton" class="button jsOnly" accesskey="p">{lang}wcf.global.button.preview{/lang}</button>
69 <script data-relocate="true">
71 WCF.Language.addObject({
72 'wcf.global.preview': '{jslang}wcf.global.preview{/jslang}'
75 new WCF.User.SignaturePreview('wcf\\data\\user\\UserProfileAction', 'text', 'previewButton');
79 {include file='shared_wysiwyg'}
80 {include file='footer' __disableAds=true}