forked from opencast/opencast
/
schedule-task-modal.html
164 lines (147 loc) · 8.81 KB
/
schedule-task-modal.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
<section ng-form="scheduleTaskForm" ng-show="open" ng-keyup="keyUp($event)" tabindex="1" class="modal wizard modal-animation ng-hide" ng-controller="ScheduleTaskCtrl">
<header>
<a class="fa fa-times close-modal" ng-click="close()"></a>
<h2 translate="BULK_ACTIONS.SCHEDULE_TASK.CAPTION"><!-- Template --></h2>
</header>
<wizard edit-mode="false" name="scheduleTaskWz" on-finish="submit()" template="shared/partials/wizardNav.html">
<wz-step wz-title="General" canexit="scheduleTaskForm.generalForm.$valid" wz-disabled="!scheduleTaskForm.generalForm.$valid" ng-form="generalForm" novalidate>
<!-- First Step: General -->
<div class="modal-content active">
<div class="modal-body">
<div class="row">
<div ng-show="scheduleTaskForm.generalForm.$error.taskStartable" class="alert sticky warning">
<p translate="BULK_ACTIONS.SCHEDULE_TASK.GENERAL.CANNOTSTART">
<!-- Cannot start -->
</p>
</div>
<div data-notifications="schedule-task"/>
</div>
<div class="full-col">
<div class="obj tbl-list">
<header translate="BULK_ACTIONS.SCHEDULE_TASK.GENERAL.CAPTION">
<span class="header-value" translate="BULK_ACTIONS.SCHEDULE_TASK.GENERAL.SUMMARY" translate-values='{ count: rows.length}'>
</span>
</header>
<div class="obj-container">
<table class="main-tbl">
<thead>
<tr>
<th class="small"><input type="checkbox" ng-model="allSelected" ng-change="allSelectedChanged(allSelected)" class="select-all-cbox"></th>
<th class="full-width" translate="EVENTS.EVENTS.TABLE.TITLE">
<!-- Title -->
</th>
<th class="full-width" translate="EVENTS.EVENTS.TABLE.SERIES">
<!-- Series -->
</th>
<th class="full-width" translate="EVENTS.EVENTS.TABLE.WORKFLOW_STATE">
<!-- Progress -->
</th>
</tr>
</thead>
<tbody >
<tr ng-repeat="row in rows" ng-form="rowsForm" ng-class="{error: rowsForm.selection.$error.taskStartable}">
<td><input name="selection" ng-required="!hasAnySelected()" type="checkbox" task-startable="{{row.source}}" ng-model="row.selected" ng-change="rowSelectionChanged($index)" class="child-cbox"></td>
<td>{{ row.title }}</td>
<td>{{ row.series_name}}</td>
<td>{{ row.source }}</td>
</tr>
</tbody>
</table>
</div><!-- obj-container -->
</div><!-- obj -->
</div>
</div>
</div><!-- modal-content [general] -->
<footer>
<a wz-next class="submit"
ng-class="{active: scheduleTaskForm.generalForm.$valid, disabled: scheduleTaskForm.generalForm.$invalid}">
{{ 'WIZARD.NEXT_STEP' | translate }}
</a>
</footer>
</wz-step>
<!-- Second Step: Task selection -->
<wz-step wz-title="{{ 'BULK_ACTIONS.SCHEDULE_TASK.TASKS.CAPTION' | translate }}" ng-form="taskForm" novalidate canexit="taskForm.$valid">
<div class="modal-content active">
<div class="modal-body">
<div class="full-col">
<div class="obj list-obj">
<header translate="BULK_ACTIONS.SCHEDULE_TASK.TASKS.SELECT"><!-- Select Task --></header>
<div class="obj-container">
<select chosen
data-width="'100%'"
ng-change="processing.changeWorkflow()"
data-disable-search-threshold="0"
not-empty-selection
ng-model="processing.ud.workflow"
ng-model-options="{ allowInvalid: true }"
ng-options="w.title for w in processing.workflows"
data-placeholder="{{ 'EVENTS.EVENTS.DETAILS.GENERAL.SELECT_WORKFLOW' | translate }}"
no-results-text="'{{ 'EVENTS.EVENTS.DETAILS.GENERAL.SELECT_WORKFLOW_EMPTY' | translate }}'"
>
<option value=""></option>
</select>
<div id="new-event-workflow-configuration"
class="checkbox-container"
ng-click="processing.save()"
ng-bind-html="processing.workflowConfiguration"
class="obj-container">
</div>
</div><!-- obj-container -->
</div><!--list-obj -->
</div><!-- full-col-->
</div><!-- modal-body -->
</div><!-- modal-content [task] -->
<footer>
<a wz-next class="submit"
ng-class="{active: taskForm.$valid, inactive: taskForm.$invalid}">
{{ 'WIZARD.NEXT_STEP' | translate }}
</a>
<a wz-previous translate="WIZARD.BACK" class="cancel">
</a>
</footer>
</wz-step>
<!-- Third step: Summary -->
<wz-step wz-title="{{ 'BULK_ACTIONS.SCHEDULE_TASK.SUMMARY.CAPTION' | translate }}" novalidate canexit="true">
<div class="modal-content active">
<div class="modal-body">
<div class="full-col">
<div class="obj list-obj">
<header translate="BULK_ACTIONS.SCHEDULE_TASK.SUMMARY.CAPTION"><!-- Summary --></header>
<div class="obj-container">
<ul>
<li>
<span translate="BULK_ACTIONS.SCHEDULE_TASK.SUMMARY.EVENTS">
<!-- Events -->
</span>
<p translate="BULK_ACTIONS.SCHEDULE_TASK.SUMMARY.EVENTS_SUMMARY" translate-values="{numberOfEvents: numSelected()}">
<!-- You have selected 44 events -->
</p>
</li>
<li>
<span translate="BULK_ACTIONS.SCHEDULE_TASK.SUMMARY.WORKFLOW">
<!-- Summary -->
</span>
<p>{{ processing.ud.workflow.selection.id }}</p>
</li>
<li>
<span translate="BULK_ACTIONS.SCHEDULE_TASK.SUMMARY.CONFIGURATION"></span>
<p ng-repeat="(key, value) in processing.getWorkflowConfig()">{{key}}: {{value}}</p>
</li>
</ul>
</div><!-- obj-container -->
</div>
</div>
</div>
</div><!-- modal-content [summary] -->
<footer>
<a wz-next class="submit"
ng-class="{active: scheduleTaskForm.$valid, inactive: scheduleTaskForm.$invalid, disabled: submitButton}">
{{ 'WIZARD.CREATE' | translate }}
</a>
<a wz-previous translate="WIZARD.BACK" class="cancel">
</a>
</footer>
</wz-step>
</wizard>
<div class="btm-spacer"></div>
</section>