-
Notifications
You must be signed in to change notification settings - Fork 2
/
showtask.aspx
597 lines (594 loc) · 38.4 KB
/
showtask.aspx
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
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
<%@ Page Title="Task" Language="C#" MasterPageFile="~/Master.Master" AutoEventWireup="true" CodeFile="showtask.aspx.cs" Inherits="Showtask" %>
<%@ Register Src="~/controls/CommitsControl.ascx" TagName="commits" TagPrefix="uc" %>
<%@ Register Src="~/controls/BuildsControl.ascx" TagName="builds" TagPrefix="uc" %>
<%@ Register Src="~/controls/UsrControl.ascx" TagName="usr" TagPrefix="uc" %>
<%@ Register Src="~/controls/SelectUser.ascx" TagName="usrlist" TagPrefix="uc" %>
<asp:Content ID="HeadContentData" ContentPlaceHolderID="HeaddContent" runat="server">
<%=System.Web.Optimization.Styles.Render("~/bundles/showtask_css")%>
<%=System.Web.Optimization.Scripts.Render("~/bundles/buildshelper_js")%>
<%=System.Web.Optimization.Scripts.Render("~/bundles/showtask_js")%>
<script src="<%=Settings.CurrentSettings.ANGULARCDN.ToString()%>angular.min.js"></script>
<script src="scripts/jquery.signalR-2.3.0.min.js"></script>
<script src="signalr/hubs"></script>
<script src="Scripts/taskmessage.js"></script>
<link rel="stylesheet" href="<%=Settings.CurrentSettings.MD2HTML.ToString()%>css/editormd.preview.css" />
<script src="<%=Settings.CurrentSettings.MD2HTML.ToString()%>editormd.js"></script>
<script src="<%=Settings.CurrentSettings.MD2HTML.ToString()%>lib/marked.min.js"></script>
<script src="<%=Settings.CurrentSettings.MD2HTML.ToString()%>lib/prettify.min.js"></script>
</asp:Content>
<asp:Content ID="BodyContent" ContentPlaceHolderID="MainContent" runat="server" EnableViewState="false">
<input type="hidden" id="deflist" value="<%=Settings.CurrentSettings.DEFLISTENERS.ToString()%>" />
<input type="hidden" id="buildtime" value="<%=Settings.CurrentSettings.BUILDTIME.ToString()%>" />
<input type="hidden" id="testlink" value="<%=Settings.CurrentSettings.TESTREQUESTLINK.ToString()%>" />
<input type="hidden" id="releasettid" value="<%=Settings.CurrentSettings.RELEASETTID.ToString()%>" />
<input type="hidden" id="defectdefaults" value='<%=Newtonsoft.Json.JsonConvert.SerializeObject(DefectDefaults.CurrentDefaults)%>' />
<input type="hidden" id="trackers" value='<%=Newtonsoft.Json.JsonConvert.SerializeObject(SimpleTrackWrapper.GetSimpleTrackers())%>' />
<input type="hidden" id="buildbroker" value='<%=Settings.CurrentSettings.BUILDMICROSEVICE%>' />
<input type="hidden" id="buildbrokerapi" value='<%=Settings.CurrentSettings.BUILDMICROSEVICEKEY%>' />
<div ng-app="mpsapplication" ng-controller="mpscontroller" ng-cloak>
<uc:usrlist runat="server" />
<button ng-show="false" type="submit">for autocomplete</button>
<div class="row">
<div class="col-lg-2 text-center">
<div class="btn-group-vertical btn-block" ng-cloak ng-show="changed">
<button type="button" class="btn btn-success" ng-click="saveDefect()">Save</button>
<button type="button" class="btn btn-danger" ng-click="discardDefect()">Discard</button>
</div>
<div class="d-flex flex-wrap shadow">
<button onclick="copyurl()" type="button" class="btn btn-outline-secondary btn-sm flex-fill"><span class="d-none d-md-inline">Copy link</span> <i class="fas fa-link"></i></button>
<button ng-click="duplicate()" type="button" class="btn btn-outline-secondary btn-sm flex-fill"><span class="d-none d-md-inline">Duplicate</span> <i class="fas fa-clone"></i></button>
<button ng-click="resettask()" ng-disabled="!canChangeDefect()" type="button" class="btn btn-outline-secondary btn-sm flex-fill"><span class="d-none d-md-inline">Reset To Re-Use</span> <i class="fas fa-recycle"></i></button>
<button ng-click="normtext()" ng-disabled="!canChangeDefect()" type="button" class="btn btn-outline-secondary btn-sm flex-fill"><span class="d-none d-md-inline">Normalize Details Text</span> <i class="fab fa-wpforms"></i></button>
</div>
<div class="d-flex flex-wrap shadow">
<button ng-click="adddesc('Comment', '', '')" ng-disabled="!canChangeDefect()" type="button" class="btn btn-outline-secondary btn-sm flex-fill"><span class="d-none d-md-inline">Add Comment</span> <i class="fas fa-comments"></i></button>
<button ng-click="adddesc('Tested', 'taskokay.png', 'green')" ng-disabled="!canChangeDefect()" type="button" class="btn btn-outline-secondary btn-sm flex-fill"><span class="d-none d-md-inline">Add Tested Comment</span> <i class="fas fa-check"></i></button>
<button ng-click="adddesc('Rejected', 'taskfail.png', 'red')" ng-disabled="!canChangeDefect()" type="button" class="btn btn-outline-secondary btn-sm flex-fill"><span class="d-none d-md-inline">Add Rejected Comment</span> <i class="fas fa-window-close"></i></button>
<button type="button" class="btn btn-outline-secondary btn-sm flex-fill dropdown-toggle" data-toggle="dropdown">
Add Tracker Tag
</button>
<div class="dropdown-menu" style="height: auto !important; position: relative !important; transform: translate3d(0,0,10px) !important;">
<div ng-disabled="!canChangeDefect()" class="dropdown-item" style="cursor: pointer" ng-repeat="t in trackers" ng-click="addComment(t.HASH, false, '')">
<img data-toggle="tooltip" title="<img src='{{'getUserImg.ashx?sz=50&ttid=' + t.USER}}' />" class="rounded-circle" ng-src="{{'getUserImg.ashx?sz=25&ttid=' + t.USER}}" alt="Smile" height="25" width="25" />
{{t.NAME}}
</div>
</div>
</div>
<div class="alert alert-info mt-2 shadow" style="text-align: center" ng-show="!canChangeDefect()">
<button data-toggle="tooltip" title="Ask to release!" type="button" class="btn btn-light btn-sm float-left" ng-click="releaseRequest()"><i class="fas fa-bell text-info"></i></button>
<button data-toggle="tooltip" title="FORCE to release!" type="button" class="btn btn-light btn-sm float-right" ng-click="releaseForce()"><i class="fas fa-jedi text-danger"></i></button>
<a data-toggle="tooltip" title="Click to see full plan for the person" target="_blank" href="editplan.aspx?userid={{lockedby}}">
<img class="rounded-circle" ng-src="{{'getUserImg.ashx?sz=60&id=' + lockedby}}" alt="Smile" height="60" width="60" />
<div>
<strong>Locked by: {{getMPSUserName(lockedby)}}</strong>
</div>
</a>
<i class="fas fa-unlock-alt"></i>
</div>
<div ng-show="defect.FIRE" id="firealarm" class="alert alert-info mt-2 shadow" style="text-align: center; cursor: pointer" ng-click="gotoAlarm()">
<strong>The task is on fire<br />
It is urgently requested<br />
You can check alarm tab for deadline</strong>
</div>
<div class="alert alert-success mt-2" style="text-align: center" ng-show="commented">
<div class="custom-control custom-switch">
<input type="checkbox" class="custom-control-input" id="switchAusr" ng-model="commented_alarmuser">
<label class="custom-control-label" for="switchAusr">Alarm {{defect.AUSER | getUserById:this}}</label>
</div>
<div class="custom-control custom-switch">
<input type="checkbox" class="custom-control-input" id="switchAGrp" ng-model="commented_alarmgroup">
<label class="custom-control-label" for="switchAGrp">Alarm Team</label>
</div>
</div>
</div>
<div class="col-lg-8">
<div class="input-group input-group-sm mb-1">
<div class="input-group-prepend">
<button title="Copy task label to clipboard" data-toggle="tooltip" class="btn btn-secondary btn-sm pr-1" type="button" ng-click="cliplabl()">TT{{defect.ID}}</button>
</div>
<input title="Task summary" data-toggle="tooltip" type="text" class="form-control" ng-disabled="!canChangeDefect()" ng-change="updateDefSum()" ng-model="defectsumm">
<input list="tasksourcelist" type="text" name="tasksource" id="tasksource" autocomplete="on" title="Task source: e.g. email subject<br/>Type 'nolog' to avoid adding to public change logs" data-toggle="tooltip" class="form-control" ng-disabled="!canChangeDefect()" ng-change="updateDefEml()" ng-model="defecteml">
<datalist id="tasksourcelist">
<option ng-repeat="ts in tasksources">{{ts}}</option>
</datalist>
<button type="button" class="btn btn-sm btn-outline-secondary" ng-click="toggleDisplay();"><span ng-show="defdetailsclass">>></span><span ng-show="!defdetailsclass"><<</span></button>
</div>
<div id="deskrow" class="{{defdetailsclass}} row toolbar mb-1" ng-style="defect.DISPO | getDispoColorById:this">
<div class="col-sm-3 pl-0">
<div class="input-group input-group-sm">
<div class="input-group-prepend w-25">
<span class="input-group-text w-100"><a href="types.aspx" target="_blank">Type</a></span>
</div>
<select class="form-control" id="type" ng-disabled="!canChangeDefect()" ng-model="defect.TYPE">
<option value="{{t.ID}}" ng-repeat="t in types">{{t.DESCR}}</option>
</select>
</div>
<div class="input-group input-group-sm">
<div class="input-group-prepend w-25">
<span class="input-group-text w-100"><a href="products.aspx" target="_blank">Product</a></span>
</div>
<select class="form-control" id="product" ng-disabled="!canChangeDefect()" ng-model="defect.PRODUCT">
<option value="{{p.ID}}" ng-repeat="p in products">{{p.DESCR}}</option>
</select>
</div>
<div class="input-group input-group-sm">
<div class="input-group-prepend w-25" title="Reference" data-toggle="tooltip">
<span class="input-group-text w-100">Ref</span>
</div>
<input type="text" class="form-control" id="reference" ng-disabled="!canChangeDefect()" ng-model="defect.REFERENCE">
</div>
</div>
<div class="col-sm-3">
<div class="input-group input-group-sm">
<div class="input-group-prepend w-25" title="Disposition" data-toggle="tooltip">
<span class="input-group-text w-100"><a href="dispositions.aspx" target="_blank">Dispo</a></span>
</div>
<select class="form-control" id="dispo" ng-disabled="!canChangeDefect()" ng-model="defect.DISPO">
<option ng-repeat="d in dispos | orderBy:'FORDER'" value="{{d.ID}}" style="background-color: {{d.COLOR}}">{{d.DESCR}}</option>
</select>
</div>
<div class="input-group input-group-sm">
<div class="input-group-prepend w-25">
<span class="input-group-text w-100"><a href="priorities.aspx" target="_blank">Priority</a></span>
</div>
<select class="form-control" id="prio" ng-disabled="!canChangeDefect()" ng-model="defect.PRIO">
<option ng-repeat="p in priorities | orderBy:'FORDER'" value="{{p.ID}}">{{p.DESCR}}</option>
</select>
</div>
<div class="input-group input-group-sm">
<div class="input-group-prepend w-25" title="Component" data-toggle="tooltip">
<span class="input-group-text w-100"><a href="components.aspx" target="_blank">Comp</a></span>
</div>
<select class="form-control" id="comp" ng-disabled="!canChangeDefect()" ng-model="defect.COMP">
<option ng-repeat="c in comps | orderBy:'FORDER'" value="{{c.ID}}">{{c.DESCR}}</option>
</select>
</div>
</div>
<div class="col-sm-3">
<div class="input-group input-group-sm">
<div class="input-group-prepend w-25">
<span class="input-group-text w-100"><a href="severities.aspx" target="_blank">Severity</a></span>
</div>
<select class="form-control" id="dispo" ng-disabled="!canChangeDefect()" ng-model="defect.SEVE">
<option ng-repeat="s in severs" value="{{s.ID}}">{{s.DESCR}}</option>
</select>
</div>
<div class="input-group input-group-sm">
<div class="input-group-prepend w-25">
<span class="input-group-text w-100">Date</span>
</div>
<input type="date" id="date" class="form-control" ng-disabled="!canChangeDefect()" ng-model="defect.DATE">
</div>
<div class="input-group input-group-sm">
<div class="input-group-prepend w-25">
<span class="input-group-text w-100">Created</span>
</div>
<div class="input-group-prepend w-75">
<div class="dropdown w-100">
<button type="button" class="overflow-hidden w-100 btn btn-light btn-sm dropdown-toggle" data-toggle="dropdown" ng-disabled="!canChangeDefect()">
<img async class="rounded-circle" ng-src="{{'getUserImg.ashx?sz=15&ttid=' + defect.CREATEDBY}}" alt="Smile" height="15" width="15">
{{defect.CREATEDBY | getUserById:this}}
</button>
<div class="dropdown-menu w-100">
<div ng-show="u.ACTIVE" ng-repeat="u in users | orderBy:'FULLNAME'">
<button style="text-align: left" type="button" class="btn btn-light btn-block btn-sm" ng-click="defect.CREATEDBY = u.ID">
<img async class="rounded-circle" ng-src="{{'getUserImg.ashx?sz=30&ttid=' + u.ID}}" alt="Smile" height="30" width="30">
<span>{{u.FULLNAME}}</span>
</button>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="col-sm-3 pr-0">
<div class="input-group input-group-sm">
<div class="input-group-prepend w-25">
<span class="input-group-text w-100"><a href="editplan.aspx?userid={{defect.AUSER | getUserTRIDById:this}}" target="_blank">Assigned</a></span>
</div>
<div class="input-group-prepend w-75">
<div class="dropdown w-100">
<button type="button" class="overflow-hidden w-100 btn btn-light btn-sm dropdown-toggle" data-toggle="dropdown" ng-disabled="!canChangeDefect()">
<img async class="rounded-circle" ng-src="{{'getUserImg.ashx?sz=15&ttid=' + defect.AUSER}}" alt="Smile" height="15" width="15">
{{defect.AUSER | getUserById:this}}
</button>
<div class="dropdown-menu w-100">
<div ng-show="u.ACTIVE" ng-repeat="u in users | orderBy:'FULLNAME'">
<button style="text-align: left" type="button" class="btn btn-light btn-block btn-sm" ng-click="defect.AUSER = u.ID">
<img async class="rounded-circle" ng-src="{{'getUserImg.ashx?sz=30&ttid=' + u.ID}}" alt="Smile" height="30" width="30">
<span>{{u.FULLNAME}}</span>
</button>
</div>
</div>
</div>
</div>
</div>
<div class="input-group input-group-sm">
<div class="input-group-prepend w-25">
<span class="input-group-text w-100">Effort</span>
</div>
<input type="number" min="1" max="999" id="estim" class="form-control w-25 pr-0" ng-disabled="!canChangeDefect()" ng-model="defect.ESTIM">
<div class="input-group-prepend w-50">
<div class="dropdown w-100">
<button type="button" class="overflow-hidden w-100 btn btn-light btn-sm dropdown-toggle" data-toggle="dropdown" ng-disabled="!canChangeDefect()">
<img async class="rounded-circle" ng-src="{{'getUserImg.ashx?sz=15&ttid=' + defect.ESTIMBY}}" alt="Smile" height="15" width="15">
{{defect.ESTIMBY | getUserById:this}}
</button>
<div class="dropdown-menu w-100">
<div ng-show="u.ACTIVE" ng-repeat="u in users | orderBy:'FULLNAME'">
<button style="text-align: left" type="button" class="btn btn-light btn-block btn-sm" ng-click="defect.ESTIMBY = u.ID">
<img async class="rounded-circle" ng-src="{{'getUserImg.ashx?sz=30&ttid=' + u.ID}}" alt="Smile" height="30" width="30">
<span>{{u.FULLNAME}}</span>
</button>
</div>
</div>
</div>
</div>
</div>
<div class="input-group input-group-sm">
<div class="input-group-prepend w-25">
<span class="input-group-text w-100">Order</span>
</div>
<input type="number" min="0" id="order" class="form-control" onkeydown="allowPosNumbers(event)" ng-disabled="!canChangeDefect()" ng-model="defect.ORDER">
<button ng-disabled="!canChangeDefect()" type="button" class="bnt btn-outline-default" ng-click="chgOrder(false)"><i class="fas fa-arrow-up"></i></button>
<button ng-disabled="!canChangeDefect()" type="button" class="bnt btn-outline-default" ng-click="chgOrder(true)"><i class="fas fa-arrow-down"></i></button>
<button ng-disabled="!canChangeDefect()" type="button" class="bnt btn-outline-default" ng-click="chgOrder(undefined)"><i class="fas fa-times"></i></button>
</div>
</div>
</div>
<ul id="tasktabs" class="nav nav-tabs nav-justified" role="tablist">
<li class="{{specsStyle()}} nav-item"><a class="nav-link small active" data-toggle="tab" href="#specification"><i class="far fa-list-alt"></i>{{tab_specs}}</a></li>
<li class="nav-item"><a class="nav-link small" data-toggle="tab" href="#detail"><i class="fas fa-search-plus"></i> Details</a></li>
<li class="nav-item" ng-click="changetab($event)"><a class="nav-link small" data-toggle="tab" href="#messages"><i class="fas fa-comments"></i>{{tab_mess}}</a></li>
<li class="nav-item" ng-click="changetab($event)"><a class="nav-link small" data-toggle="tab" href="#workflow"><i class="fas fa-sync"></i>{{tab_workflow}}</a></li>
<li class="nav-item" ng-click="changetab($event)"><a class="nav-link small" data-toggle="tab" href="#history"><i class="fas fa-history"></i>{{tab_history}}</a></li>
<li class="nav-item" ng-click="changetab($event)"><a class="nav-link small" data-toggle="tab" href="#attachments"><i class="fas fa-paperclip"></i>{{tab_attachs}}</a></li>
<li class="nav-item" ng-click="changetab($event)" id="gittab"><a class="nav-link small" data-toggle="tab" href="#taskgit"><i class="fas fa-code-branch"></i>Git</a></li>
<li class="nav-item" ng-click="changetab($event)" id="buildstab"><a class="nav-link small" data-toggle="tab" href="#taskbuilds"><i class="fas fa-tools"></i>{{tab_builds}}</a></li>
<li class="nav-item" ng-click="changetab($event)"><a class="nav-link small" data-toggle="tab" href="#bst"><i class="fa fa-link"></i>{{tab_bst}}</a></li>
<li class="nav-item"><a class="nav-link small" data-toggle="tab" href="#alarm"><i class="fas fa-envelope"></i> Alarm</a></li>
</ul>
<div class="tab-content">
<div id="specification" class="tab-pane active">
<div class="custom-control custom-switch" style="position: absolute; right: 0; z-index: 100;">
<input type="checkbox" class="custom-control-input" id="showSpecEditor" ng-model="showSpecEditor" ng-change="generateHTMLSpecs()">
<label class="custom-control-label" for="showSpecEditor">Edit</label>
</div>
<div class="m-0 p-0">
<div ng-show="showSpecEditor" class="m-0 p-0" id="sptab">
<div class="d-flex">
<div class="flex-grow-1">
<textarea class="form-control form-control-sm" id="spec" rows="30" ng-disabled="!canChangeDefect()" ng-model="defect.SPECS"></textarea>
</div>
<div class="">
<div class="btn-group-vertical pt-5">
<button type="button" class="btn btn-sm btn-outline-secondary" ng-click="editSurround('**')">
<i class="fas fa-bold"></i>
</button>
<button type="button" class="btn btn-sm btn-outline-secondary" ng-click="editSurround('*')">
<i class="fas fa-italic"></i>
</button>
<button type="button" class="btn btn-sm btn-outline-secondary" ng-click="insertText('\n|head1|head2|\n|---|---|\n|data1|data2|\n')">
<i class="fas fa-table"></i>
</button>
<button type="button" class="btn btn-sm btn-outline-secondary" ng-click="replaceText('\n', '\n> ')">
<i class="fas fa-chevron-right"></i>
</button>
<button type="button" class="btn btn-sm btn-outline-secondary" ng-click="insertText('\n---\n')">
<i class="far fa-window-minimize"></i>
</button>
<button type="button" class="btn btn-sm btn-outline-secondary" ng-click="replaceText('\n', '\n ')">
<i class="far fa-file-code"></i>
</button>
<button type="button" class="btn btn-sm btn-outline-secondary" ng-click="editSurround('[TT$sel](showtask.aspx?ttid=',')')">
TT
</button>
<div class="btn-group">
<button type="button" class="btn btn-sm btn-outline-secondary dropdown-toggle" data-toggle="dropdown">
<i class="far fa-image"></i>
</button>
<div class="dropdown-menu">
<a ng-repeat="a in attachs" class="dropdown-item" href ng-click="insertText('![](getTaskAttachment.ashx?idrecord=' + a.ID + '&ext=png)')">{{a.FILENAME}}</a>
</div>
</div>
<div class="btn-group">
<button type="button" class="btn btn-sm btn-outline-secondary dropdown-toggle" data-toggle="dropdown">
<i class="fas fa-link"></i>
</button>
<div class="dropdown-menu">
<a ng-repeat="a in attachs" class="dropdown-item" href ng-click="insertText('['+a.FILENAME+'](getTaskAttachment.ashx?idrecord=' + a.ID+')')">{{a.FILENAME}}</a>
</div>
</div>
<a href="https://www.markdownguide.org/basic-syntax/" class="btn btn-sm btn-outline-secondary" target="_blank"><i class="far fa-question-circle"></i></a>
</div>
</div>
</div>
</div>
<div ng-show="!showSpecEditor" class="active m-0 p-0" id="sptab2">
</div>
</div>
</div>
<div id="detail" class="tab-pane fade">
<textarea class="form-control form-control-sm" id="Description" rows="30" ng-disabled="!canChangeDefect()" ng-model="defect.DESCR"></textarea>
</div>
<div id="messages" class="tab-pane fade">
<div class="d-flex">
<textarea class="form-control form-control-sm flex-grow-1" id="msgcurr" rows="{{messrows}}" ng-disabled="!canChangeDefect()" ng-model="currMessage" ng-keyup="messageKey($event)"></textarea>
<div class="btn-group">
<div ng-click="messageSubmit()" class="btn btn-sm btn-outline-secondary"><i class="fas fa-paper-plane"></i></div>
<button type="button" class="btn btn-sm btn-outline-secondary dropdown-toggle dropdown-toggle-split" data-toggle="dropdown">
<span class="caret"></span>
</button>
<div class="dropdown-menu">
<div ng-click="messageSubmit('green', 'taskokay.png')" class="dropdown-item" style="cursor: pointer"><span class="text-success"><i class="fas fa-paper-plane"></i>Tested</span></div>
<div ng-click="messageSubmit('red', 'taskfail.png')" class="dropdown-item" style="cursor: pointer"><span class="text-danger"><i class="fas fa-paper-plane"></i>Rejected</span></div>
</div>
</div>
</div>
<div ng-bind-html="defect.DESCR | rawHtml">
</div>
</div>
<div id="bst" class="tab-pane fade">
<div class="input-group input-group-sm mb-1">
<div class="input-group-prepend">
<span class="input-group-text">BST Branch:</span>
</div>
<input type="text" class="form-control" ng-disabled="!canChangeDefect()" ng-model="defect.BRANCHBST">
</div>
<div class="row">
<div class="col-md-3 pr-0">
<div class="input-group input-group-sm">
<div class="input-group-prepend">
<span class="input-group-text"><i class="fas fa-search"></i></span>
</div>
<input class="form-control" ng-model="batchsearch" type="text" />
</div>
<ul class="nav nav-pills nav-justified">
<li class="nav-item" ng-repeat="s in batchesslots">
<a data-toggle="pill" class="nav-link p-0 {{$index==0?'active':''}}" href="#batches{{$index}}">{{$index+1}}</a>
</li>
</ul>
<div class="tab-content">
<div id="batches{{$index}}" class="tab-pane {{$index==0?'active':'fade'}}" ng-repeat="s in batchesslots">
<div class="list-group">
<a href="#" ng-click="add2Bst(batch)" class="list-group-item py-1" ng-repeat="batch in s">{{batch}}</a>
</div>
</div>
</div>
</div>
<div class="col-md-9">
<ul id="bsttabs" class="nav nav-pills">
<li class="nav-item"><a id="{{bsttab_bat}}" class="nav-link py-1 active" data-toggle="tab" href="#batches">Batches <span ng-show="defect.BSTBATCHES !== ''" class="badge badge-pill badge-secondary">{{defect.BSTBATCHES.split("\n").length}}</span></a></li>
<li class="nav-item"><a id="{{bsttab_com}}" class="nav-link py-1" data-toggle="tab" href="#commands">Commands <span ng-show="defect.BSTCOMMANDS !== ''" class="badge badge-pill badge-secondary">{{defect.BSTCOMMANDS.split("\n").length}}</span></a></li>
<li class="nav-item"><a id="{{bsttab_his}}" class="nav-link py-1" data-toggle="tab" href="#bsthistory">History <span ng-show="builds.length > 0" class="badge badge-pill badge-secondary">{{builds.length}}</span></a></li>
</ul>
<div class="tab-content">
<div id="batches" class="tab-pane active">
<textarea id="bstbatches" class="form-control form-control-sm" rows="27" ng-disabled="!canChangeDefect()" ng-model="defect.BSTBATCHES"></textarea>
</div>
<div id="commands" class="tab-pane fade">
<textarea id="bstcommands" class="form-control form-control-sm" rows="27" ng-disabled="!canChangeDefect()" ng-model="defect.BSTCOMMANDS"></textarea>
</div>
<div id="bsthistory" class="tab-pane fade">
<ul class="list-group">
<li class="list-group-item py-1" ng-repeat="b in builds">
<div class="btn-group d-flex py-0">
<a class="btn btn-outline-primary flex-fill" href ng-click="showTests(b.TESTGUID)">History for {{b.DATEUP}}</a>
<a class="btn btn-outline-primary flex-fill" href="getinstall.ashx?type=devfipMSI&version={{b.TESTGUID}}"><i class="fas fa-cloud-download-alt"></i>Fieldpro MSI</a>
<a class="btn btn-outline-primary flex-fill" href="getinstall.ashx?type=devfip&version={{b.TESTGUID}}"><i class="fas fa-cloud-download-alt"></i>Fieldpro ZIP</a>
<a class="btn btn-outline-primary flex-fill" href="getinstall.ashx?type=devmxMSI&version={{b.TESTGUID}}"><i class="fas fa-cloud-download-alt"></i>Modules MSI</a>
<a class="btn btn-outline-primary flex-fill" href="getinstall.ashx?type=devmx&version={{b.TESTGUID}}"><i class="fas fa-cloud-download-alt"></i>Modules ZIP</a>
</div>
</li>
</ul>
</div>
</div>
</div>
</div>
</div>
<div id="workflow" class="tab-pane fade">
<label ng-show="!events">loading...</label>
<div class="list-group">
<div class="list-group-item list-group-item-action" ng-repeat="h in events | orderBy : 'ORDER'">
<div class="media">
<div class="media-left">
<img class="rounded-circle" ng-src="{{'getUserImg.ashx?sz=30&ttid=' + h.IDUSER}}" alt="Smile" height="30" width="30">
</div>
<div class="media-body">
<h6 class="media-heading"><b>{{h.IDUSER | getUserById:this}}</b> <small style="float: right"><i>{{h.DATE}}</i></small></h6>
</div>
</div>
{{h.EVENT}}:
<img ng-show="h.ASSIGNUSERID > 0" class="rounded-circle" ng-src="{{'getUserImg.ashx?sz=20&ttid=' + h.ASSIGNUSERID}}" alt="Smile" height="20" width="20" />
{{h.ASSIGNUSERID | getUserById:this}} <span class="badge {{h.EVENT == 'worked' ? 'badge-warning' : 'badge-danger'}}">{{h.TIME}}</span>
<a ng-show="h.EVENT == '<%=DefectEvent.Eventtype.versionIncluded.ToString()%>'" href="versionchanges.aspx?version={{h.NOTES}}">
<span class="badge badge-light">{{h.NOTES}}</span>
</a>
<span ng-show="h.EVENT != '<%=DefectEvent.Eventtype.versionIncluded.ToString()%>'">{{h.NOTES}}</span>
<i ng-show="h.EVENT == '<%=DefectEvent.Eventtype.QualityAssurance.ToString()%>'" class="fa fa-link"></i>
<span ng-show="h.EVENT != '<%=DefectEvent.Eventtype.QualityAssurance.ToString()%>'">{{h.NOTES}}</span>
</div>
</div>
</div>
<div id="history" class="tab-pane fade">
<label ng-show="!history">loading...</label>
<div class="list-group">
<a href class="p-2 list-group-item list-group-item-action" ng-repeat="h in history">
<div class="media">
<div class="media-left">
<img class="media-object rounded-circle" ng-src="{{'getUserImg.ashx?sz=30&ttid=' + h.IDUSER}}" alt="Smile" height="30" width="30">
</div>
<div class="media-body">
<h6 class="media-heading"><b>{{h.IDUSER | getUserById:this}}</b> <small style="float: right"><i>{{h.DATE}}</i></small></h6>
<p class="mb-0">{{h.NOTES}}</p>
</div>
</div>
</a>
</div>
</div>
<div id="attachments" class="tab-pane fade">
<label ng-show="!attachs">loading...</label>
<div class="d-flex justify-content-end">
<div class="alert alert-light mb-0 pb-0">
You can paste images from clipboard right here or click add file button.
</div>
<button type="button" ng-disabled="!canChangeDefect()" ng-click="addFile()" id="button" class="btn btn-outline-secondary btn-xs">Add File...</button>
</div>
<ul>
<li ng-style="a.deleted ? {'text-decoration':'line-through'} : ''" ng-repeat="a in attachs">
<a target="_blank" href="getTaskAttachment.ashx?idrecord={{a.ID+'&ext='+getfileext(a.FILENAME)}}">
<img ng-src="getAttachImg.ashx?idrecord={{a.ID+'&ext='+getfileext(a.FILENAME)}}" style="max-width: 100%" />
<img ng-src="{{a.newblob}}" style="max-width: 100%" />
<span>{{a.FILENAME}}</span>
</a> 
<button ng-disabled="!canChangeDefect()" ng-click="deleteAttach(a.ID)" type="button" class="btn btn-danger btn-xs">Delete</button>
</li>
</ul>
</div>
<div id="taskgit" class="tab-pane fade">
<ul class="nav nav-tabs" role="tablist">
<li class="nav-item">
<a class="nav-link active small" data-toggle="tab" href="#localbranch">Task branch</a>
</li>
<li class="nav-item">
<a class="nav-link small" data-toggle="tab" href="#masterbranch">Master</a>
</li>
</ul>
<div class="tab-content">
<div id="localbranch" class="container tab-pane active">
<div class="d-flex mb-1">
<div class="input-group input-group-sm">
<div class="input-group-prepend">
<span class="input-group-text">Branch:</span>
</div>
<input type="text" class="form-control" ng-disabled="!canChangeDefect()" ng-model="defect.BRANCH">
<div class="input-group-append">
<button type="button" ng-show="!isrelease()" class="btn btn-success" ng-click="loadCommits()">Scan Branch</button>
<button type="button" ng-show="!isrelease()" class="btn btn-danger" ng-disabled="!gitbranchhash" ng-click="deleteBranch()">Delete Branch</button>
<button type="button" ng-show="!isrelease() && (!commits || commits.length < 1)" class="btn btn-warning" ng-click="nameBranch()">Name</button>
<a href="merger.aspx?branch={{defect.BRANCH | encodeURIComponent}}&ttid={{defect.ID}}" ng-show="!isrelease()" class="btn btn-sm btn-outline-dark" ng-disabled="!gitbranchhash"><i class="fas fa-file-export"></i><i class="fab fa-joomla"></i></a>
<a href="builder.aspx" ng-show="isrelease()" class="btn btn-secondary" role="button">Release Marker</a>
</div>
</div>
</div>
<uc:commits runat="server" />
</div>
<div id="masterbranch" class="container tab-pane fade">
<button ng-click="loadMasterCommits()" type="button" class="btn btn-outline-dark btn-sm">Query Mater Branch</button>
<uc:commits dataset="mastercommits" hide="" runat="server" />
</div>
</div>
</div>
<div id="taskbuilds" class="tab-pane fade">
<div class="input-group input-group-sm mb-1">
<div class="input-group-prepend">
<span class="input-group-text">Test Priority</span>
</div>
<select class="form-control form-control-sm" ng-disabled="!canChangeDefect()" ng-model="defect.TESTPRIORITY">
<option value="{{t.ID}}" ng-repeat="t in buildpriorities">{{t.DESCR}}</option>
</select>
<button type="button" class="btn btn-sm btn-success btn-right-align" ng-disabled="!canBuild()" ng-click="buildVersion(isrelease())">Build Version</button>
<button type="button" class="btn btn-sm btn-danger btn-right-align" ng-disabled="!canBuild()" ng-click="abortBuild()">Abort Building</button>
</div>
<uc:builds runat="server" />
<div ng-show="!commits||commits.length<1" class="panel-footer"><strong>Info!</strong> Please commit your changes to git and push your branch named with TTxxxxxx where xxxxxx is the task number.</div>
</div>
<div id="alarm" class="tab-pane fade">
<div class="jumbotron">
<h5><i class="far fa-comment"></i> In order to receive messages from the system you have to:</h5>
<a class="btn btn-outline-secondary btn-sm" href="<%=Settings.CurrentSettings.TELEGRAMTASKSURL.ToString()%>">Subscribe To Telegram Tasks Bot</a>
<hr />
<h5><i class="fas fa-hourglass-start"></i> Set Fire alarm timer:</h5>
<div class="input-group input-group-sm">
<div class="input-group-prepend">
<span class="input-group-text">Date time:</span>
</div>
<input type="date" class="form-control" ng-disabled="!canChangeDefect()" ng-model="defect.TIMER">
<div class="input-group-append">
<button type="button" class="btn btn-sm btn-outline-secondary" ng-disabled="!canChangeDefect()" ng-click="defect.TIMER = today"><i class="fas fa-check"></i></button>
<button type="button" class="btn btn-sm btn-outline-secondary" ng-disabled="!canChangeDefect()" ng-click="defect.TIMER = null"><i class="fas fa-times"></i></button>
</div>
</div>
<hr />
<h3>Email will alarm all the persons indicated below</h3>
<h4 class="{{changed ? 'blink_me' : ''}}">Please save the task indicating your questions in the top of details section</h4>
<label for="emailaddr">Addresses (comma separated):</label>
<input type="text" class="form-control" id="emailaddr" ng-model="addresses">
<button ng-click="sendEmail()" ng-disabled="changed" type="button" class="btn btn-primary">Send Alarm Email</button>
</div>
</div>
</div>
</div>
<div class="col-lg-2">
<div class="toast" data-autohide="false">
<div class="toast-header">
<uc:usr size="20" runat="server" userid="defect.CREATEDBY" style="float: left" />
<strong class="mr-auto"> Creator</strong>
<button data-toggle="tooltip" title="Invite person to see this task." type="button" class="btn btn-light btn-sm float-right" ng-click="invite(defect.CREATEDBY)"><i class="fas fa-bell"></i></button>
</div>
<div class="toast-body text-center">
<h5>{{defect.CREATEDBY | getUserById:this}}</h5>
</div>
</div>
<div class="toast" data-autohide="false" ng-style="defect.DISPO | getDispoColorById:this">
<div class="toast-header">
<strong class="mr-auto">Disposition</strong>
</div>
<div class="toast-body text-center">
<select class="form-control form-control-sm" id="dispo" ng-disabled="!canChangeDefect()" ng-model="defect.DISPO">
<option ng-repeat="d in dispos | orderBy:'FORDER'" value="{{d.ID}}" style="background-color: {{d.COLOR}}">{{d.DESCR}}</option>
</select>
</div>
</div>
<div class="toast" data-autohide="false">
<div class="toast-header">
<uc:usr size="20" runat="server" userid="defect.ESTIMBY" style="float: left" />
<strong class="mr-auto"> Estimated</strong>
<button data-toggle="tooltip" title="Invite person to see this task." type="button" class="btn btn-light btn-sm float-right" ng-click="invite(defect.ESTIMBY)"><i class="fas fa-bell"></i></button>
</div>
<div class="toast-body text-center">
<button ng-disabled="!canChangeDefect()" ng-click="estimateTask()" type="button" class="btn btn-outline-secondary btn-sm">
{{defect.ESTIM}} hours
<span class="badge bg-danger text-dark">{{defect.PRIMARYESTIM ? 'Primary: ' + defect.PRIMARYESTIM : ''}}</span>
</button>
</div>
</div>
<div class="toast" data-autohide="false">
<div class="toast-header">
<strong class="mr-auto">Order</strong>
</div>
<div class="toast-body text-center">
<div class="input-group mb-3 input-group-sm">
<input type="number" min="0" id="order" class="form-control" onkeydown="allowPosNumbers(event)" ng-disabled="!canChangeDefect()" ng-model="defect.ORDER">
<div class="input-group-append">
<button ng-disabled="!canChangeDefect()" type="button" class="bnt btn-outline-default" ng-click="chgOrder(false)"><i class="fas fa-arrow-up"></i></button>
<button ng-disabled="!canChangeDefect()" type="button" class="bnt btn-outline-default" ng-click="chgOrder(true)"><i class="fas fa-arrow-down"></i></button>
<button ng-disabled="!canChangeDefect()" type="button" class="bnt btn-outline-default" ng-click="chgOrder(undefined)"><i class="fas fa-times"></i></button>
</div>
</div>
</div>
</div>
<div class="toast" data-autohide="false">
<div class="toast-header">
<uc:usr size="20" runat="server" userid="defect.AUSER" style="float: left" />
<strong class="mr-auto"> Worked for</strong>
<button data-toggle="tooltip" title="Invite person to see this task." type="button" class="btn btn-light btn-sm float-right" ng-click="invite(defect.AUSER)"><i class="fas fa-bell"></i></button>
</div>
<div class="toast-body text-center">
<h5 class="float-center">{{defect.SPENT}} hours{{defect.PRIMARYHOURS ? ' (Primary: ' + defect.PRIMARYHOURS + ')' : ''}}</h5>
</div>
</div>
<div class="toast" data-autohide="false">
<div class="toast-header">
<strong class="mr-auto">Included into version</strong>
</div>
<div class="toast-body text-center">
<h4 class="float-center"><a href="versionchanges.aspx?version={{defect.VERSION}}"><span class="badge badge-light">{{defect.VERSION}}</span></a></h4>
<button ng-disabled="!canChangeDefect()" type="button" class="btn btn btn-outline-light text-dark btn-sm" ng-click="setVersion()">...</button>
</div>
</div>
</div>
</div>
</div>
</asp:Content>