Display of validation errors for signatures
authorAlexander Ebert <ebert@woltlab.com>
Sat, 2 Nov 2019 23:57:22 +0000 (00:57 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Sat, 2 Nov 2019 23:57:22 +0000 (00:57 +0100)
wcfsetup/install/files/acp/templates/userAdd.tpl

index e9b5b817f9c4befe83d6d0fafdb9d569f9adf9e3..770e726466fb1fb531e401ca3cfde830b1b81b79 100644 (file)
                                                <dt><label for="signature">{lang}wcf.user.signature{/lang}</label></dt>
                                                <dd>
                                                        <textarea name="signature" id="signature" cols="40" rows="10" class="wysiwygTextarea" data-disable-attachments="true">{$signature}</textarea>
+                                                       {if $errorField == 'signature'}
+                                                               <small class="innerError">
+                                                                       {if $errorType == 'empty'}
+                                                                               {lang}wcf.global.form.error.empty{/lang}
+                                                                       {elseif $errorType == 'tooLong'}
+                                                                               {lang}wcf.message.error.tooLong{/lang}
+                                                                       {elseif $errorType == 'censoredWordsFound'}
+                                                                               {lang}wcf.message.error.censoredWordsFound{/lang}
+                                                                       {elseif $errorType == 'disallowedBBCodes'}
+                                                                               {lang}wcf.message.error.disallowedBBCodes{/lang}
+                                                                       {else}
+                                                                               {lang}wcf.user.signature.error.{@$errorType}{/lang}
+                                                                       {/if}
+                                                               </small>
+                                                       {/if}
+                                                       
                                                        {include file='wysiwyg' wysiwygSelector='signature'}
                                                </dd>
                                        </dl>