Revert "Revert "Removed obsolete trailing slashes from void elements""
[GitHub/WoltLab/WCF.git] / com.woltlab.wcf / templates / signatureEdit.tpl
CommitLineData
320f4a6d
MW
1{include file='userMenuSidebar'}
2
95961bdf 3{include file='header'}
320f4a6d 4
ee629b22 5{include file='formError'}
320f4a6d
MW
6
7{if $success|isset}
8 <p class="success">{lang}wcf.global.success.edit{/lang}</p>
9{/if}
10
11{if $__wcf->user->disableSignature}
12 <p class="error">{lang}wcf.user.signature.error.disabled{/lang}</p>
13{/if}
14
320f4a6d 15<form method="post" action="{link controller='SignatureEdit'}{/link}">
95961bdf
MW
16 {if $signatureCache}
17 <section class="section">
18 <h2 class="sectionTitle">{lang}wcf.user.signature.current{/lang}</h2>
320f4a6d 19
95961bdf
MW
20 {@$signatureCache}
21 </section>
22 {/if}
23
24 {if !$__wcf->user->disableSignature}
25 <section class="section" id="signatureContainer">
26 <h2 class="sectionTitle">{lang}wcf.user.signature{/lang}</h2>
27
28 <dl class="wide{if $errorField == 'text'} formError{/if}">
29 <dt><label for="text">{lang}wcf.user.signature{/lang}</label></dt>
30 <dd>
31 <textarea id="text" name="text" rows="20" cols="40">{$text}</textarea>
32 {if $errorField == 'text'}
33 <small class="innerError">
34 {if $errorType == 'empty'}
35 {lang}wcf.global.form.error.empty{/lang}
36 {elseif $errorType == 'tooLong'}
37 {lang}wcf.message.error.tooLong{/lang}
38 {elseif $errorType == 'censoredWordsFound'}
39 {lang}wcf.message.error.censoredWordsFound{/lang}
40 {elseif $errorType == 'disallowedBBCodes'}
41 {lang}wcf.message.error.disallowedBBCodes{/lang}
42 {else}
43 {lang}wcf.user.signature.error.{@$errorType}{/lang}
44 {/if}
45 </small>
46 {/if}
47 </dd>
48 </dl>
320f4a6d 49
95961bdf
MW
50 {event name='fields'}
51 </section>
52
53 {event name='sections'}
54
55 {include file='messageFormTabs'}
56 {/if}
320f4a6d
MW
57
58 {if !$__wcf->user->disableSignature}
59 <div class="formSubmit">
e5f9b56c 60 <input type="submit" value="{lang}wcf.global.button.submit{/lang}" accesskey="s">
320f4a6d 61 <button id="previewButton" class="jsOnly" accesskey="p">{lang}wcf.global.button.preview{/lang}</button>
ee629b22 62 {@SECURITY_TOKEN_INPUT_TAG}
320f4a6d
MW
63 </div>
64 {/if}
65</form>
66
3e93caf9
MW
67<script data-relocate="true">
68 //<![CDATA[
69 $(function() {
70 WCF.Language.addObject({
71 'wcf.global.preview': '{lang}wcf.global.preview{/lang}'
72 });
73
74 new WCF.User.SignaturePreview('wcf\\data\\user\\UserProfileAction', 'text', 'previewButton');
75 });
76 //]]>
77</script>
320f4a6d 78
3e93caf9
MW
79{include file='wysiwyg'}
80{include file='footer'}