Skip to main content
summaryrefslogtreecommitdiffstats
blob: 62dfd4dc484d897a2b94844f395a01c3e601d855 (plain) (blame)
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
<!doctype html>
<html>
   <head>
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <title>Dispo User</title>
   </head>
   <body>
      <div class="container-fluid" id="content">
            <div class="row">
                <div id="refresh" class="col-md-1">
                   <button  ng-show="items.length>0" class="btn btn-primary active" ng-click="updateSet()">Refresh</button>
                </div>   
                <div class="col-md-2">
                  ATS Version:
                  <select class="form-control" ng-show="programs" ng-model="programSelection" ng-disabled="isSearchView" ng-change="updateProgram()" ng-options="obj.value as obj.text for obj in programs"></select>
               </div>
                <div class="col-md-2">
                  Set:
                  <select ng-show="programSelection != null" class="form-control" ng-show="sets" ng-disabled="isSearchView" ng-model="setSelection" ng-change="updateSet()" ng-options="obj.guid as obj.name for obj in sets">
                  </select>
               </div>
                <div id="multItemEditDiv" class="col-md-5">
                    <div ng-show="items.length>0" class="btn-group">
                     <button class="btn btn-primary active" ng-click="toggleEditItems()">Edit Multiple Items</button>
                     <button type="button" class="btn btn-default" ng-show="editItems" ng-disabled="selectedItems.length == 0" ng-click="showAssigneeModal()">Assignee</button>
                     <button type="button" class="btn btn-default" ng-show="editItems" ng-disabled="selectedItems.length == 0" ng-click="showCategoryModal()">Category</button>
                     <button type="button" class="btn btn-default" ng-show="editItems" ng-disabled="selectedItems.length == 0" ng-click="showNeedsRerunModal()">Needs Rerun</button>
                  </div>
               </div>
                <div id="search" class="col-md-1 col-md-offset-1">
                   <button class="btn btn-primary active" ng-show="items.length>0 && !isSearchView" ng-click="showAdvSearchModal()">Adv Search</button>
                   <button class="btn btn-primary active" ng-show="items.length>0 && isSearchView" ng-click="showAdvSearchModal()">Searching: {{ searchValue }}</button>
                </div> 
            </div>
            <div id="top-content" class="row">
                <div style='height: 500px;' id="itemsGrid" class="gridStyle" ng-grid="gridOptions"></div>
            </div>
         </div>
         <div id="bottom-content">
            <div ng-dblclick="getSourceFlie()" id="itemSelectedBar">
               Item: {{ selectedItem.name || "Select an Item"}} Failures: {{ selectedItem.discrepanciesAsRanges || "N/A"}}
            </div>
            <div id="annotationsGrid">
               <table class="table subTable">
                  <th ng-click="sort()">{{ annotationHeaders.locationRefs }}</th>
                  <th>{{ annotationHeaders.resolutionType }}</th>
                  <th>{{ annotationHeaders.resolution }}</th>
                  <th>Developer Notes</th>
                  <th ng-show="type != 'codeCoverage'"Customer Notes</th>
                  <th ng-show="type == 'codeCoverage'">Text</th>                 
                  <th width="50px;">Delete</th>
                  <tr ng-repeat="annotation in annotations">
                     <td>
                        <textarea ng-class="{annotationInput: true, invalid: getInvalidLocRefs(annotation), details: annotation.showDeets}" ng-disabled="isDefaultResolution(annotation);" ng-model="annotation.locationRefs" type=text ng-model-onblur ng-change="editAnnotation(annotation); saveLastFocused(this);" ng-dblclick="toggleDetails(annotation)"></textarea>
                     </td>
                     <td>
                        <select ng-class="{annotationInput: true, details: annotation.showDeets}" focus-me="annotation.guid !=null" ng-options="obj.value as obj.text for obj in getResolutionTypes();" options-disabled="option.isDefault for option in getResolutionTypes();" ng-disabled="annotation.guid == null || isDefaultResolution(annotation);" ng-model="annotation.resolutionType" ng-change="editAnnotation(annotation)" ng-dblclick="toggleDetails(annotation)"></select>
                     </td>
                     <td>
                        <textarea ng-class="{annotationInput: true, invalid: getInvalidRes(annotation), details: annotation.showDeets}" ng-disabled="annotation.guid == null || isDefaultResolution(annotation);" ng-model="annotation.resolution" type=text ng-model-onblur ng-change="editAnnotation(annotation)" ng-dblclick="toggleDetails(annotation)"></textarea>
                     </td>
                     <td>
                        <textarea ng-class="{annotationInput: true, details: annotation.showDeets}" ng-disabled="annotation.guid == null" ng-model="annotation.developerNotes" type=text ng-model-onblur ng-change="editAnnotation(annotation)" ng-dblclick="toggleDetails(annotation)"></textarea>
                     </td>
                     <td ng-show="type != 'codeCoverage'">
                        <textarea ng-class="{annotationInput: true, details: annotation.showDeets}" ng-disabled="annotation.guid == null || type == 'codeCoverage'" ng-model="annotation.customerNotes" type=text ng-model-onblur ng-change="editAnnotation(annotation)" ng-dblclick="toggleDetails(annotation)"></textarea>
                     </td>
                     <td ng-show="type == 'codeCoverage'">
                        <textarea ng-class="{annotationInput: true, details: annotation.showDeets}" ng-disabled="true" type=text ng-dblclick="getText(annotation)">{{ getText(annotation) }}</textarea>
                     </td>
                     <td>
                        <button ng-class="{annotationDelete: true, details: annotation.showDeets}" ng-disabled="annotation.guid == null || isDefaultResolution(annotation);" ng-click="deleteAnnotation(annotation)">X</button>
                     </td>
                  </tr>
               </table>
            </div>
         </div>
      </div>
      <div id="content-resizer" resizer="horizontal" resizer-height="6" resizer-top="#top-content" resizer-bottom="#bottom-content">
      </div>
      <!--  definitions for modal forms -->
      <script type="text/ng-template" id="assigneeModal.html">
         <div class="modal-header">
             <h3 class="modal-title">Edit Assignees</h3>
         </div>
         <div class="modal-body" style="height: 300px; overflow: auto;">
             <div class="form-group">
                <label for="setAssignee">Assignee</label>
                 <input ng-model="multiAssignee" class="form-control" name="setMultiAssignee" placeholder="Enter Assignee" required>
             </div>
         </div>
         
         <div class="modal-footer">
             <button class="btn btn-primary" ng-click="ok()">OK</button>
             <button class="btn btn-warning" ng-click="cancel()">Cancel</button>
         </div>
         
      </script>
      <script type="text/ng-template" id="categoryModal.html">
         <div class="modal-header">
             <h3 class="modal-title">Edit Category</h3>
         </div>
         <div class="modal-body" style="height: 300px; overflow: auto;">
             <div class="form-group">
                 <label for="setCategory">Category</label>
                 <input ng-model="multiCategory" class="form-control" name="setMultiCategory" placeholder="Enter Category" required>
             </div>
         </div>
         
         <div class="modal-footer">
             <button class="btn btn-primary" ng-click="ok()">OK</button>
             <button class="btn btn-warning" ng-click="cancel()">Cancel</button>
         </div>
         
      </script>
      <script type="text/ng-template" id="needsRerunModal.html">
         <div class="modal-header">
            <h3 class="modal-title">Edit Rerun Flag</h3>
         </div>
         <div class="modal-body" style="height: 300px; overflow: auto;">
            <label>Needs Rerun?</label>
            <div class="form-group">
               <div class="radio">
                  <label>
                  <input ng-checked="true" type="radio" name="needsRerun" value="true" ng-model="formData.multiNeedsRerun">
                  TRUE
                  </label>
               </div>
               <div class="radio">
                  <label>
                  <input type="radio" name="needsRerun" value="false" ng-model="formData.multiNeedsRerun">
                  FALSE
                  </label>
               </div>
            </div>
         </div>
         <div class="modal-footer">
            <button class="btn btn-primary" ng-click="ok()">OK</button>
            <button class="btn btn-warning" ng-click="cancel()">Cancel</button>
         </div>
       </script>
    
    <script type="text/ng-template" id="advSearchModal.html">
         <div class="modal-header">
            <h3 class="modal-title">Advanced Search</h3>
         </div>
         <div class="modal-body" style="height: 300px; overflow: auto;">
            <label>Disposition Keyword</label>
            <input ng-model="searchValue" class="form-control" name="setMultiCategory" placeholder="Enter Search Value" required>
         </div>
         <div class="modal-footer">
             <button class="btn btn-primary" ng-click="ok()">OK</button>
             <button class="btn btn-warning" ng-click="cancel()">Cancel</button>
         </div>
       </script>
    
    <script type="text/ng-template" id="loadingModal.html">
        <div id="loadingModal" class="alert alert-info">
				Loading...
        </div>
    </script>   
             
   </body>
</html>

Back to the top