|
16 | 16 |
|
17 | 17 | <woltlab-core-notice type="info">{lang}wcf.acp.cronjob.intro{/lang}</woltlab-core-notice> |
18 | 18 |
|
19 | | -{include file='shared_formNotice'} |
20 | | - |
21 | | -<form method="post" action="{if $action == 'add'}{link controller='CronjobAdd'}{/link}{else}{link controller='CronjobEdit' id=$cronjobID}{/link}{/if}"> |
22 | | - <div class="section"> |
23 | | - <dl{if $errorField == 'className'} class="formError"{/if}> |
24 | | - <dt><label for="className">{lang}wcf.acp.cronjob.className{/lang}</label></dt> |
25 | | - <dd> |
26 | | - <input type="text" id="className" name="className" value="{$className}" required autofocus pattern="^\\?([a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*\\)*[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*$" class="long"> |
27 | | - {if $errorField == 'className'} |
28 | | - <small class="innerError"> |
29 | | - {if $errorType == 'empty'} |
30 | | - {lang}wcf.global.form.error.empty{/lang} |
31 | | - {else} |
32 | | - {lang}wcf.acp.cronjob.className.error.{@$errorType}{/lang} |
33 | | - {/if} |
34 | | - </small> |
35 | | - {/if} |
36 | | - </dd> |
37 | | - </dl> |
38 | | - |
39 | | - <dl{if $errorField == 'description'} class="formError"{/if}> |
40 | | - <dt><label for="description">{lang}wcf.acp.cronjob.description{/lang}</label></dt> |
41 | | - <dd> |
42 | | - <input type="text" id="description" name="description" value="{$i18nPlainValues['description']}" class="long"> |
43 | | - {if $errorField == 'description'} |
44 | | - <small class="innerError"> |
45 | | - {if $errorType == 'empty' || $errorType == 'multilingual'} |
46 | | - {lang}wcf.global.form.error.{@$errorType}{/lang} |
47 | | - {else} |
48 | | - {lang}wcf.acp.cronjob.className.error.{@$errorType}{/lang} |
49 | | - {/if} |
50 | | - </small> |
51 | | - {/if} |
52 | | - </dd> |
53 | | - </dl> |
54 | | - {include file='shared_multipleLanguageInputJavascript' elementIdentifier='description' forceSelection=false} |
55 | | - |
56 | | - {event name='dataFields'} |
57 | | - </div> |
58 | | - |
59 | | - <section class="section"> |
60 | | - <h2 class="sectionTitle">{lang}wcf.acp.cronjob.timing{/lang}</h2> |
61 | | - |
62 | | - <dl{if $errorField == 'startMinute'} class="formError"{/if}> |
63 | | - <dt><label for="startMinute">{lang}wcf.acp.cronjob.startMinute{/lang}</label></dt> |
64 | | - <dd> |
65 | | - <input type="text" id="startMinute" name="startMinute" value="{$startMinute}" class="short"> |
66 | | - {if $errorField == 'startMinute'} |
67 | | - <small class="innerError"> |
68 | | - {lang}wcf.acp.cronjob.timing.error.{@$errorType}{/lang} |
69 | | - </small> |
70 | | - {/if} |
71 | | - <small>{lang}wcf.acp.cronjob.startMinute.description{/lang}</small> |
72 | | - </dd> |
73 | | - </dl> |
74 | | - |
75 | | - <dl{if $errorField == 'startHour'} class="formError"{/if}> |
76 | | - <dt><label for="startHour">{lang}wcf.acp.cronjob.startHour{/lang}</label></dt> |
77 | | - <dd> |
78 | | - <input type="text" id="startHour" name="startHour" value="{$startHour}" class="short"> |
79 | | - {if $errorField == 'startHour'} |
80 | | - <small class="innerError"> |
81 | | - {lang}wcf.acp.cronjob.timing.error.{@$errorType}{/lang} |
82 | | - </small> |
83 | | - {/if} |
84 | | - <small>{lang}wcf.acp.cronjob.startHour.description{/lang}</small> |
85 | | - </dd> |
86 | | - </dl> |
87 | | - |
88 | | - <dl{if $errorField == 'startDom'} class="formError"{/if}> |
89 | | - <dt><label for="startDom">{lang}wcf.acp.cronjob.startDom{/lang}</label></dt> |
90 | | - <dd> |
91 | | - <input type="text" id="startDom" name="startDom" value="{$startDom}" class="short"> |
92 | | - {if $errorField == 'startDom'} |
93 | | - <small class="innerError"> |
94 | | - {lang}wcf.acp.cronjob.timing.error.{@$errorType}{/lang} |
95 | | - </small> |
96 | | - {/if} |
97 | | - <small>{lang}wcf.acp.cronjob.startDom.description{/lang}</small> |
98 | | - </dd> |
99 | | - </dl> |
100 | | - |
101 | | - <dl{if $errorField == 'startMonth'} class="formError"{/if}> |
102 | | - <dt><label for="startMonth">{lang}wcf.acp.cronjob.startMonth{/lang}</label></dt> |
103 | | - <dd> |
104 | | - <input type="text" id="startMonth" name="startMonth" value="{$startMonth}" class="short"> |
105 | | - {if $errorField == 'startMonth'} |
106 | | - <small class="innerError"> |
107 | | - {lang}wcf.acp.cronjob.timing.error.{@$errorType}{/lang} |
108 | | - </small> |
109 | | - {/if} |
110 | | - <small>{lang}wcf.acp.cronjob.startMonth.description{/lang}</small> |
111 | | - </dd> |
112 | | - </dl> |
113 | | - |
114 | | - <dl{if $errorField == 'startDow'} class="formError"{/if}> |
115 | | - <dt><label for="startDow">{lang}wcf.acp.cronjob.startDow{/lang}</label></dt> |
116 | | - <dd> |
117 | | - <input type="text" id="startDow" name="startDow" value="{$startDow}" class="short"> |
118 | | - {if $errorField == 'startDow'} |
119 | | - <small class="innerError"> |
120 | | - {lang}wcf.acp.cronjob.timing.error.{@$errorType}{/lang} |
121 | | - </small> |
122 | | - {/if} |
123 | | - <small>{lang}wcf.acp.cronjob.startDow.description{/lang}</small> |
124 | | - </dd> |
125 | | - </dl> |
126 | | - |
127 | | - {event name='timingFields'} |
128 | | - </section> |
129 | | - |
130 | | - {event name='sections'} |
131 | | - |
132 | | - <div class="formSubmit"> |
133 | | - <input type="submit" value="{lang}wcf.global.button.submit{/lang}" accesskey="s"> |
134 | | - {csrfToken} |
135 | | - </div> |
136 | | -</form> |
| 19 | +{unsafe:$form->getHtml()} |
137 | 20 |
|
138 | 21 | {include file='footer'} |
0 commit comments