Commit | Line | Data |
---|---|---|
7485c55b | 1 | {include file='header' pageTitle='wcf.acp.cronjob.'|concat:$action} |
158bd3ca | 2 | |
95961bdf | 3 | <header class="contentHeader"> |
b5c94e9e AE |
4 | <div class="contentHeaderTitle"> |
5 | <h1 class="contentTitle">{lang}wcf.acp.cronjob.{$action}{/lang}</h1> | |
6 | </div> | |
7 | ||
8 | <nav class="contentHeaderNavigation"> | |
9 | <ul> | |
10 | <li><a href="{link controller='CronjobList'}{/link}" class="button"><span class="icon icon16 fa-list"></span> <span>{lang}wcf.acp.menu.link.cronjob.list{/lang}</span></a></li> | |
11 | ||
12 | {event name='contentHeaderNavigation'} | |
13 | </ul> | |
14 | </nav> | |
158bd3ca TD |
15 | </header> |
16 | ||
184a8d6d | 17 | <p class="info">{lang}wcf.acp.cronjob.intro{/lang}</p> |
cb22bd32 | 18 | |
fa6a7e74 | 19 | {include file='formNotice'} |
158bd3ca | 20 | |
7991009f | 21 | <form method="post" action="{if $action == 'add'}{link controller='CronjobAdd'}{/link}{else}{link controller='CronjobEdit' id=$cronjobID}{/link}{/if}"> |
95961bdf MW |
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> | |
6f2bc235 | 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"> |
95961bdf MW |
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> | |
eee4c4ff | 38 | |
95961bdf MW |
39 | <dl{if $errorField == 'description'} class="formError"{/if}> |
40 | <dt><label for="description">{lang}wcf.acp.cronjob.description{/lang}</label></dt> | |
41 | <dd> | |
e5f9b56c | 42 | <input type="text" id="description" name="description" value="{$i18nPlainValues['description']}" class="long"> |
95961bdf MW |
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='multipleLanguageInputJavascript' elementIdentifier='description' forceSelection=false} | |
eee4c4ff | 55 | |
95961bdf | 56 | {event name='dataFields'} |
158bd3ca TD |
57 | </div> |
58 | ||
95961bdf MW |
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> | |
e5f9b56c | 65 | <input type="text" id="startMinute" name="startMinute" value="{$startMinute}" class="short"> |
95961bdf MW |
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> | |
e5f9b56c | 78 | <input type="text" id="startHour" name="startHour" value="{$startHour}" class="short"> |
95961bdf MW |
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> | |
e5f9b56c | 91 | <input type="text" id="startDom" name="startDom" value="{$startDom}" class="short"> |
95961bdf MW |
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> | |
e5f9b56c | 104 | <input type="text" id="startMonth" name="startMonth" value="{$startMonth}" class="short"> |
95961bdf MW |
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> | |
e5f9b56c | 117 | <input type="text" id="startDow" name="startDow" value="{$startDow}" class="short"> |
95961bdf MW |
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 | ||
184a8d6d | 132 | <div class="formSubmit"> |
e5f9b56c | 133 | <input type="submit" value="{lang}wcf.global.button.submit{/lang}" accesskey="s"> |
ee629b22 | 134 | {@SECURITY_TOKEN_INPUT_TAG} |
158bd3ca TD |
135 | </div> |
136 | </form> | |
137 | ||
3852f864 | 138 | {include file='footer'} |