Commit | Line | Data |
---|---|---|
96714cab MS |
1 | {include file='header' pageTitle='wcf.acp.captcha.question.'|concat:$action} |
2 | ||
95961bdf | 3 | <header class="contentHeader"> |
94a2f918 MS |
4 | <div class="contentHeaderTitle"> |
5 | <h1 class="contentTitle">{lang}wcf.acp.captcha.question.{$action}{/lang}</h1> | |
6 | </div> | |
7 | ||
8 | <nav class="contentHeaderNavigation"> | |
9 | <ul> | |
10 | <li><a href="{link controller='CaptchaQuestionList'}{/link}" class="button"><span class="icon icon16 fa-list"></span> <span>{lang}wcf.acp.menu.link.captcha.question.list{/lang}</span></a></li> | |
11 | ||
12 | {event name='contentHeaderNavigation'} | |
13 | </ul> | |
14 | </nav> | |
96714cab MS |
15 | </header> |
16 | ||
fa6a7e74 | 17 | {include file='formNotice'} |
96714cab | 18 | |
96714cab | 19 | <form id="adForm" method="post" action="{if $action == 'add'}{link controller='CaptchaQuestionAdd'}{/link}{else}{link controller='CaptchaQuestionEdit' id=$captchaQuestion->questionID}{/link}{/if}"> |
95961bdf MW |
20 | <div class="section"> |
21 | <dl{if $errorField == 'question'} class="formError"{/if}> | |
22 | <dt><label for="question">{lang}wcf.acp.captcha.question.question{/lang}</label></dt> | |
23 | <dd> | |
6f2bc235 | 24 | <input type="text" id="question" name="question" value="{$i18nPlainValues[question]}" required autofocus class="long"> |
95961bdf MW |
25 | {if $errorField == 'question'} |
26 | <small class="innerError"> | |
27 | {if $errorType == 'empty'} | |
28 | {lang}wcf.global.form.error.empty{/lang} | |
29 | {elseif $errorType == 'multilingual'} | |
30 | {lang}wcf.global.form.error.multilingual{/lang} | |
31 | {else} | |
32 | {lang}wcf.acp.captcha.question.question.error.{$errorType}{/lang} | |
33 | {/if} | |
34 | </small> | |
35 | {/if} | |
36 | </dd> | |
37 | </dl> | |
38 | {include file='multipleLanguageInputJavascript' elementIdentifier='question' forceSelection=false} | |
96714cab | 39 | |
95961bdf MW |
40 | <dl{if $errorField == 'answers'} class="formError"{/if}> |
41 | <dt><label for="answers">{lang}wcf.acp.captcha.question.answers{/lang}</label></dt> | |
42 | <dd> | |
43 | <textarea id="answers" name="answers" cols="40" rows="10">{$i18nPlainValues[answers]}</textarea> | |
44 | <small>{lang}wcf.acp.captcha.question.answers.description{/lang}</small> | |
45 | {if $errorField == 'answers'} | |
46 | <small class="innerError"> | |
47 | {if $errorType == 'empty'} | |
48 | {lang}wcf.global.form.error.empty{/lang} | |
49 | {elseif $errorType == 'multilingual'} | |
50 | {lang}wcf.global.form.error.multilingual{/lang} | |
51 | {else} | |
52 | {lang}wcf.acp.captcha.question.answers.error.{$errorType}{/lang} | |
53 | {/if} | |
54 | </small> | |
55 | {/if} | |
56 | </dd> | |
57 | </dl> | |
58 | {include file='multipleLanguageInputJavascript' elementIdentifier='answers' forceSelection=false} | |
59 | ||
60 | <dl> | |
61 | <dt></dt> | |
62 | <dd> | |
6f2bc235 | 63 | <label><input type="checkbox" name="isDisabled" value="1"{if $isDisabled} checked{/if}> {lang}wcf.acp.captcha.question.isDisabled{/lang}</label> |
95961bdf MW |
64 | </dd> |
65 | </dl> | |
66 | ||
67 | {event name='dataFields'} | |
96714cab MS |
68 | </div> |
69 | ||
95961bdf MW |
70 | {event name='sections'} |
71 | ||
96714cab | 72 | <div class="formSubmit"> |
e5f9b56c | 73 | <input type="submit" value="{lang}wcf.global.button.submit{/lang}" accesskey="s"> |
96714cab MS |
74 | {@SECURITY_TOKEN_INPUT_TAG} |
75 | </div> | |
76 | </form> | |
77 | ||
78 | {include file='footer'} |