Show error message if poll has no question
[GitHub/WoltLab/WCF.git] / com.woltlab.wcf / templates / __messageFormPoll.tpl
index 78a905e7294af87271acdea327a370cafac947f3..42aa7e716142aa4302f40b78688fd2f8cade5085 100644 (file)
                                </dt>
                                <dd>
                                        <input type="text" name="pollQuestion" id="pollQuestion" value="{$pollQuestion}" class="long" maxlength="255" />
+                                       {if $errorField == 'pollQuestion'}
+                                               <small class="innerError">
+                                                       {lang}wcf.global.form.error.empty{/lang}
+                                               </small>
+                                       {/if}
                                </dd>
                                <dt>
                                        <label>{lang}wcf.poll.options{/lang}</label>