[FEATURE] Backend ViewHelpers for edit creation and editing
[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 <input type="text" name="tx_scheduler[frequency]" class="form-control" id="task_frequency" value="{frequency}">
101 </div>
102 </div>
103 </div>
104 <div class="form-section" id="task_multiple_row">
105 <div class="form-group">
106 <f:be.labels.csh table="{csh}" field="task_multiple" label="{lang}label.parallel.long"/>
107 <div class="form-control-wrap">
108 <input type="hidden" name="tx_scheduler[multiple]" value="0">
109 <input class="checkbox" type="checkbox" name="tx_scheduler[multiple]" value="1" id="task_multiple" {multiple}>
110 </div>
111 </div>
112 </div>
113 <div class="form-section" id="task_description_row">
114 <div class="form-group">
115 <f:be.labels.csh table="{csh}" field="task_description" label="{lang}label.description"/>
116 <div class="form-control-wrap">
117 <textarea class="form-control" name="tx_scheduler[description]">{description}</textarea>
118 </div>
119 </div>
120 </div>
121
122 <f:for each="{additionalFields}" as="field">
123 <f:render section="additionalField" arguments="{field: field}" />
124 </f:for>
125
126 <f:format.raw>{table}</f:format.raw>
127
128
129 <f:render partial="ServerTime" arguments="{now: now}" />
130
131 <f:section name="additionalField">
132 <div class="form-section extraFields extra_fields_{field.htmlClassName}" {field.additionalFieldsStyle} id="{field.fieldID}_row">
133 <div class="form-group">
134 <f:be.labels.csh table="{field.cshKey}" field="{field.cshLabel}" label="{field.langLabel}"/>
135 <div class="form-control-wrap">
136 {field.code -> f:format.raw()}
137 </div>
138 {field.browseButton -> f:format.raw()}
139 </div>
140 </div>
141 </f:section>