[FEATURE] Add interval presets for cron command field of scheduler task
[Packages/TYPO3.CMS.git] / typo3 / sysext / scheduler / Resources / Private / Templates / Backend / SchedulerModule / EditTask.html
1 {namespace be = TYPO3\CMS\Backend\ViewHelpers}
2
3 <input type="hidden" name="tx_scheduler[uid]" value="{uid}" />
4 <input type="hidden" name="previousCMD" value="{cmd}" />
5
6 <div class="form-section" id="task_disable_row">
7 <div class="form-group">
8 <f:be.labels.csh table="{csh}" field="task_disable" label="{task_disable_label}"/>
9 <div class="form-control-wrap">
10 <input type="hidden" name="tx_scheduler[disable]" value="0">
11 <input class="checkbox" type="checkbox" name="tx_scheduler[disable]" value="1" id="task_disable" {task_disable}>
12 </div>
13 </div>
14 </div>
15 <div class="form-section" id="task_class_row">
16 <div class="form-group">
17 <f:be.labels.csh table="{csh}" field="task_class" label="{lang}label.class"/>
18 <div class="form-control-wrap">
19 <f:if condition="{task_class}">
20 <f:then>
21 <div>{task_class_title} ({task_class_extension})</div>
22 <input type="hidden" name="tx_scheduler[class]" id="task_class" value="{task_class}">
23 </f:then>
24 <f:else>
25 <select name="tx_scheduler[class]" id="task_class" class="form-control">
26 <f:for each="{groupedClasses}" as="classGroup" key="extension">
27 <optgroup label="{extension}">
28 <f:for each="{classGroup}" as="classInfo" key="class">
29 <option value="{class}" title="{classInfo.description}" {classInfo.selected}>{classInfo.title}</option>
30 </f:for>
31 </optgroup>
32 </f:for>
33 </select>
34 </f:else>
35 </f:if>
36 </div>
37 </div>
38 </div>
39 <div class="form-section" id="task_type_row">
40 <div class="form-group">
41 <f:be.labels.csh table="{csh}" field="task_type" label="{lang}label.type"/>
42 <div class="form-control-wrap">
43 <select name="tx_scheduler[type]" id="task_type" class="form-control">
44 <option value="1" {task_type_selected_1}><f:translate key="{lang}label.type.single" /></option>
45 <option value="2" {task_type_selected_2}><f:translate key="{lang}label.type.recurring" /></option>
46 </select>
47 </div>
48 </div>
49 </div>
50 <div class="form-section" id="task_group_row">
51 <div class="form-group">
52 <f:be.labels.csh table="{csh}" field="task_group" label="{lang}label.group"/>
53 <div class="form-control-wrap">
54 <div class="input-group">
55 <select name="tx_scheduler[task_group]" id="task_class" class="form-control">
56 <option value="0" title=""></option>
57 <f:for each="{registeredTaskGroups}" as="registeredTaskGroup">
58 <option value="{registeredTaskGroup.uid}" title="{registeredTaskGroup.groupName}" {registeredTaskGroup.selected}>
59 {registeredTaskGroup.groupName}
60 </option>
61 </f:for>
62 </select>
63 <div class="input-group-btn" role="group">
64 <be:link.newRecord class="btn btn-default" table="tx_scheduler_task_group" returnUrl="{returnUrl}">
65 <core:icon identifier="actions-add" />
66 </be:link.newRecord>
67 </div>
68 </div>
69 </div>
70 </div>
71 </div>
72 <div class="form-section">
73 <div class="row">
74 <div class="form-group col-sm-6" id="task_start_col">
75 <f:be.labels.csh table="{csh}" field="task_start" label="{lang}label.start"/>
76 <div class="form-control-wrap">
77 <div class="input-group" id="tceforms-datetimefield-task_start_row-wrapper">
78 <input name="tx_scheduler[start]_hr" value="{start_value_hr}" class="form-control t3js-datetimepicker t3js-clearable" data-date-type="datetime" data-date-offset="0" type="text" id="tceforms-datetimefield-task_start_row">
79 <input name="tx_scheduler[start]" value="{start_value}" type="hidden">
80 <span class="input-group-btn"><label class="btn btn-default" for="tceforms-datetimefield-task_start_row"><core:icon identifier="actions-edit-pick-date" /></label></span>
81 </div>
82 </div>
83 </div>
84 <div class="form-group col-sm-6" id="task_end_col">
85 <f:be.labels.csh table="{csh}" field="task_end" label="{lang}label.end"/>
86 <div class="form-control-wrap">
87 <div class="input-group" id="tceforms-datetimefield-task_end_row-wrapper">
88 <input name="tx_scheduler[end]_hr" value="{end_value_hr}" class="form-control t3js-datetimepicker t3js-clearable" data-date-type="datetime" data-date-offset="0" type="text" id="tceforms-datetimefield-task_end_row">
89 <input name="tx_scheduler[end]" value="{end_value}" type="hidden">
90 <span class="input-group-btn"><label class="btn btn-default" for="tceforms-datetimefield-task_end_row"><core:icon identifier="actions-edit-pick-date" /></label></span>
91 </div>
92 </div>
93 </div>
94 </div>
95 </div>
96 <div class="form-section" id="task_frequency_row">
97 <div class="form-group">
98 <f:be.labels.csh table="{csh}" field="task_frequency" label="{lang}label.frequency.long"/>
99 <div class="form-control-wrap">
100 <div class="form-wizards-wrap">
101 <div class="form-wizards-element">
102 <input type="text" name="tx_scheduler[frequency]" class="form-control" id="task_frequency" value="{frequency}">
103 </div>
104 <f:if condition="{frequencyOptions}">
105 <div class="form-wizards-items-aside">
106 <div class="btn-group">
107 <select
108 class="form-control tceforms-select tceforms-wizardselect"
109 onchange="document.getElementById('task_frequency').value=this.options[this.selectedIndex].value;this.blur();this.selectedIndex=0;">
110 <option></option>
111 <f:for each="{frequencyOptions}" as="label" key="command">
112 <option value="{command}">{f:translate(key:label,default:label)} ({command})</option>
113 </f:for>
114 </select>
115 </div>
116 </div>
117 </f:if>
118 </div>
119 </div>
120 </div>
121 </div>
122 <div class="form-section" id="task_multiple_row">
123 <div class="form-group">
124 <f:be.labels.csh table="{csh}" field="task_multiple" label="{lang}label.parallel.long"/>
125 <div class="form-control-wrap">
126 <input type="hidden" name="tx_scheduler[multiple]" value="0">
127 <input class="checkbox" type="checkbox" name="tx_scheduler[multiple]" value="1" id="task_multiple" {multiple}>
128 </div>
129 </div>
130 </div>
131 <div class="form-section" id="task_description_row">
132 <div class="form-group">
133 <f:be.labels.csh table="{csh}" field="task_description" label="{lang}label.description"/>
134 <div class="form-control-wrap">
135 <textarea class="form-control" name="tx_scheduler[description]">{description}</textarea>
136 </div>
137 </div>
138 </div>
139
140 <f:for each="{additionalFields}" as="field">
141 <f:render section="additionalField" arguments="{field: field}" />
142 </f:for>
143
144 <f:format.raw>{table}</f:format.raw>
145
146
147 <f:render partial="ServerTime" arguments="{now: now}" />
148
149 <f:section name="additionalField">
150 <div class="form-section extraFields extra_fields_{field.htmlClassName}" {field.additionalFieldsStyle} id="{field.fieldID}_row">
151 <div class="form-group">
152 <f:be.labels.csh table="{field.cshKey}" field="{field.cshLabel}" label="{field.langLabel}"/>
153 <div class="form-control-wrap">
154 {field.code -> f:format.raw()}
155 </div>
156 {field.browseButton -> f:format.raw()}
157 </div>
158 </div>
159 </f:section>