-
Notifications
You must be signed in to change notification settings - Fork 0
/
mvp_allocate_tasks_to_groups.html
289 lines (257 loc) · 12.8 KB
/
mvp_allocate_tasks_to_groups.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
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
<link href="css/Task Manager/allocate.css" rel="stylesheet" />
<style>
#groupModal .modal-footer {
padding: 10px;
}
#groupModal .modal-header {
padding: 10px;
}
#groupModal .modal-body {
padding: 10px;
}
#groupModal #inputGroupName {
padding: 8px;
border-radius: 5px;
border: 1px solid #D4C9C9;
width: 94.5%;
}
#groupModal .modal-footer {
padding: 10px;
}
</style>
<!-- START OF MAIN CONTENTS -->
<div id="main" set-height-allocate>
<div class="container" style="width:960px; height: 100%; overflow-x:hidden;overflow-y:scroll;">
<div class="TaskAndGroupContainer" style="width:80%;height: 100%;" ng-init="initEl()">
<!-- <input type="button" class="save-c" value="Save" style="margin-bottom: 2%;margin-right: 0px;"> -->
<!-- Allocate Tasks Start-->
<div id="wrapper" style="height: 100%;">
<!-- Page Content -->
<div id="page-content-wrapper" style="height: 100%;">
<!-- <div class="container-fluid allocate" style="height: 100%;"> -->
<div class="container-fluid allocate" style="height:100%;">
<div class="scrollbar tasksParent" style="width:50%;height:100%;float:left;border-color: #EEF2F3; ">
<div class="taskHead" ng-click="isCollapsed = !isCollapsed">Tasks</div>
<div class="tasks" ollapse="isCollapsed"
style=" height: 100%; background-color:white;overflow:auto;padding: 30px 15px;border-right: 1px solid #F1F4F5;">
<div class="clearfix"></div>
<ul id="groupItems1" class="itemsList ui-sortable" as-sortable="dragControlListeners" ng-model="unassignedGroup.groupTasks">
<li class="left1 ui-sortable-handle" style="position: relative;"
ng-repeat="task in unassignedGroup.groupTasks" as-sortable-item>
<div class="inner-addon left-addon col-md-12" as-sortable-item-handle
ng-mousedown="mousedown()">
<i class="glyphicon">
<img src="images/drag_handle.png">
</i>
<div class="taskDesc" style="display:inline-block;">
<label>{{task.name}}</label>
<span>{{priorityOptions[task.priority]}} {{task.duration}}</span>
<img src="images/rolling.gif" height="18" width="18" style="position:absolute;right: 0;top: 0;" ng-show="task.activeRequest">
</div>
</div>
</li>
</ul>
</div>
</div>
<div class="taskGroupParent" style="width:50%;height: 100%; float:left;">
<div class="taskGroupHead">Task Groups</div>
<div class="addNewTaskGroup">
<h3>
<a href id="btnadd" ng-click="openGroupModal()">+ Add New Task Group</a>
</h3>
</div>
<div style="background-color:white;padding:2px 15px;overflow:auto;padding-bottom: 30px;">
<ul id="report-template" class="groupsList ui-sortable" as-sortable="dragGroupControlListeners" ng-model="groups">
<li class="taskGroup " ng-repeat="group in groups" as-sortable-item>
<div id="report-template" class="groupsList" >
<div class="col-md-8">
<div style="float:left">
<img as-sortable-item-handle src="images/drag_handle.png" style="display: inline-block;">
<img src="images/rolling.gif" style="display: inline-block;" height="18" width="18" ng-show="group.activeRequest">
<h3 ng-click="singleClick($index)"
ng-dblclick="doubleClick($index)"
style="color:#3ea3c1;padding:5px;display:inline-block;cursor:pointer;">
{{group.name}}
</h3>
<div style="clear:both;"></div>
</div>
</div>
<div class="col-md-4">
<span>
Duration:
<input class="dur col-md-5 setRight" type="number" ng-model="group.duration" ng-keyup="$event.keyCode == 13 && editGroupDuration(group)" ng-blur="editGroupDuration(group)">
</span>
<span>
<img id="1" class="min" ng-src="{{ $localStorage.isCollapsed[$index].isCollapsed?'images/maximize.png':'images/minimize3.png'}}"
ng-click="$localStorage.isCollapsed[$index].isCollapsed = !$localStorage.isCollapsed[$index].isCollapsed">
</span>
<span>
<img style="cursor:pointer;" src="images/delete.png" ng-click="confirmDeleteGroup(group)">
</span>
</div>
<div class="clearfix"></div>
</div>
<ul id="groupItems1" class="itemsList ui-sortable" as-sortable="dragControlListeners" ng-model="group.groupTasks" ng-style="{'display': $localStorage.isCollapsed[$index].isCollapsed?'none':'block'}">
<li class="left1 ui-sortable-handle" ng-repeat="grouptask in group.groupTasks"
as-sortable-item ng-mouseup="mouseup()">
<div class="inner-addon left-addon col-md-12" ng-mousedown="mousedown()"
as-sortable-item-handle>
<i class="glyphicon">
<img src="images/drag_handle.png">
</i>
<div class="taskDesc" style="position:relative;">
<label>{{grouptask.name}}</label>
<span>{{priorityOptions[grouptask.priority]}} {{grouptask.duration}}</span>
<img src="images/rolling.gif" height="18" width="18" style="position:absolute;right: 0;top: 0;" ng-show="grouptask.activeRequest">
</div>
</div>
</li>
</ul>
</li>
</ul>
</div>
</div>
</div>
</div>
</div>
<!-- /#page-content-wrapper -->
<script src="http://code.jquery.com/jquery-1.10.2.min.js"></script>
<script src="js/Task Manager/bootstrap.min.js"></script>
<script src="js/Task Manager/sidebar.js"></script>
<!-- Allocate Tasks Ends-->
<div style="clear:both;"></div>
</div>
</div>
</div>
<!-- END OF MAIN CONTENTS -->
<div class="clear"></div>
<script type="text/ng-template" id="save-group">
<div class="modal fade" id="groupModal">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h3 class="modal-title">Group Name</h3>
</div>
<div class="modal-body">
<div class="row">
<div class="col-md-5">
<input type="hidden" id="inputHidden" />
<input type="text" required class="form-control" id="inputGroupName" ng-model="groupName"/>
</div>
</div>
</div>
<div class="modal-footer">
<button class="btn btn-primary" type="button" ng-click="saveGroup(groupName)">OK</button>
<button class="btn btn-warning" type="button" ng-click="closeThisDialog()">Cancel</button>
</div>
</div>
</div>
</div>
</script>
<script type="text/ng-template" id="delete-confirm">
<div class="ngdialog-message">
<h2>Confirm Delete</h2>
<div>Are you sure, you want to delete?
<button type="button" class="ngdialog-button ngdialog-button-primary" ng-click="deleteGroup()"> Delete </button>
</div>
</div>
</script>
<style>
.addNewTaskGroup #btnadd{
text-decoration: none;
color: #2590af;
}
.addNewTaskGroup h3{
background-color: #f0f0f0;
max-height: 240px;
overflow: auto;
padding: 10px;
border-radius: 5px;
}
.column{
min-height: 30px;
border-style: solid;
border-width: 1px;
border-color: #D2D2D3;
padding: 2px;
cursor: move;
border-radius: 0px;
border-radius: 5px;
margin-bottom: 6px;
color: #475565;
background: white;
}
/*
* STYLE 1
*/
.taskGroup::-webkit-scrollbar-track, .tasks::-webkit-scrollbar-track
{
-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
border-radius: 10px;
background-color: #F5F5F5;
}
.taskGroup .col-md-4{
text-align: right;margin-bottom: 9px;
}
.taskGroup .col-md-4 input{
border-radius: 5px; border-style: solid; border-width: 1px; border-color: DarkGray; padding: 5px; max-width: 50px;
}
.taskGroup::-webkit-scrollbar, .tasks::-webkit-scrollbar
{
width: 7px;
background-color: #F5F5F5;
}
.taskGroup::-webkit-scrollbar-thumb, .tasks::-webkit-scrollbar-thumb
{
border-radius: 10px;
-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,.3);
background-color: #B3A4A4;
}
@media screen and (max-width: 1200px) {
.TaskAndGroupContainer{
width: 100% !important;
}
.taskGroupParent, .tasksParent {
width: 45% !important;
}
.save-c{
margin-right: 10% !important;;
}
}
@media screen and (max-width: 700px) {
.taskGroupParent, .tasksParent {
width: 85% !important;
}
.save-c{
margin-right: 15% !important;;
}
}
.taskHead{
margin-bottom: 10px; font-size: 15px;
}
.taskGroupHead{
margin-bottom: 10px; font-size: 15px;
padding-left:15px;
}
.tasksParent .tasks ul li, .taskGroupParent.tasks ul li {
min-height: 30px;
border-style: solid;
border-width: 1px;
border-color: #D2D2D3;
padding: 2px;
cursor: move;
border-radius: 0px;
border-radius: 5px;
color: #475565;
background: white;
list-style: none;
padding: 0;
margin: 0;
margin-bottom: 6px;
}
.tasksParent .tasks ul, .taskGroupParent ul{
list-style: none;
padding: 0;
margin: 0;
}
</style>