[FEATURE] EXT:Scheduler: Create task group from add/edit task form
[Packages/TYPO3.CMS.git] / typo3 / sysext / scheduler / Resources / Private / Templates / Backend / SchedulerModule / EditTask.html
index 9be2e64..d5518d8 100644 (file)
@@ -1,3 +1,5 @@
+{namespace sched = TYPO3\CMS\Scheduler\ViewHelpers}
+
 <input type="hidden" name="tx_scheduler[uid]" value="{uid}" />
 <input type="hidden" name="previousCMD" value="{cmd}" />
 
     <div class="form-group">
         <f:be.labels.csh table="{csh}" field="task_group" label="{lang}label.group"/>
         <div class="form-control-wrap">
-            <select name="tx_scheduler[task_group]" id="task_class" class="form-control">
-                <option value="0" title=""></option>
-                <f:for each="{registeredTaskGroups}" as="registeredTaskGroup">
-                    <option value="{registeredTaskGroup.uid}" title="{registeredTaskGroup.groupName}" {registeredTaskGroup.selected}>
-                    {registeredTaskGroup.groupName}
-                    </option>
-                </f:for>
-            </select>
+            <div class="input-group">
+                <select name="tx_scheduler[task_group]" id="task_class" class="form-control">
+                    <option value="0" title=""></option>
+                    <f:for each="{registeredTaskGroups}" as="registeredTaskGroup">
+                        <option value="{registeredTaskGroup.uid}" title="{registeredTaskGroup.groupName}" {registeredTaskGroup.selected}>
+                        {registeredTaskGroup.groupName}
+                        </option>
+                    </f:for>
+                </select>
+                <div class="input-group-btn" role="group">
+                    <a class="btn btn-default" href="{sched:editRecord(parameters: 'edit[tx_scheduler_task_group][0]=new&returnUrl={returnUrl}')}" ><core:icon identifier="actions-add" /></a>
+                </div>
+            </div>
         </div>
     </div>
 </div>