JUnits for coverage
[portal.git] / ecomp-portal-FE-common / client / app / views / role / bulk-upload-dialogs / bulk-upload-functions-confirm.html
1 <!--
2   ============LICENSE_START==========================================
3   ONAP Portal
4   ===================================================================
5   Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
6   ===================================================================
7  
8   Unless otherwise specified, all software contained herein is licensed
9   under the Apache License, Version 2.0 (the "License");
10   you may not use this software except in compliance with the License.
11   You may obtain a copy of the License at
12  
13               http://www.apache.org/licenses/LICENSE-2.0
14  
15   Unless required by applicable law or agreed to in writing, software
16   distributed under the License is distributed on an "AS IS" BASIS,
17   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18   See the License for the specific language governing permissions and
19   limitations under the License.
20  
21   Unless otherwise specified, all documentation contained herein is licensed
22   under the Creative Commons License, Attribution 4.0 Intl. (the "License");
23   you may not use this documentation except in compliance with the License.
24   You may obtain a copy of the License at
25  
26               https://creativecommons.org/licenses/by/4.0/
27  
28   Unless required by applicable law or agreed to in writing, documentation
29   distributed under the License is distributed on an "AS IS" BASIS,
30   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
31   See the License for the specific language governing permissions and
32   limitations under the License.
33  
34   ============LICENSE_END============================================
35  
36   
37   -->
38 <div>
39         <div class="b2b-modal-header">
40                 <h2 class="heading-medium" id="newAdmin">Bulk Upload Functions
41                         Confirmation</h2>
42                 <div class="corner-button in">
43                         <button type="button" class="close" aria-label="Close"
44                                 id="bulk-user-button-close" ng-click="$dismiss('cancel')"></button>
45                 </div>
46         </div>
47         <div class="b2b-modal-body">
48
49                 <!-- progress indicator -->
50                 <div class="upload-instructions" ng-show="isProcessing">
51                         {{progressMsg}} <br> <br> <span class="ecomp-spinner"></span>
52                 </div>
53                 
54                 <div class="upload-instructions"
55                                 ng-show="isProcessedRecords">
56                                 {{conformMsg}}
57                         </div>
58
59                 <div ng-hide="isProcessing || isProcessedRecords">
60                         <div class="upload-instructions">Click OK to upload the valid
61                                 functions. Invalid or existing functions will be ignored.</div>
62                         <p>
63                                 <span id="required" style="color: Red; font-size: 180%;"
64                                         visible="false">*</span>Type can only contain alphanumeric
65                                 characters, dots(.) and underscores(_)
66                         </p>
67                         <p>
68                                 <span id="required" style="color: Red; font-size: 180%;"
69                                         visible="false">*</span>Action can only contain alphanumeric
70                                 characters, hyphens(-), dots(.) and underscores(_) and single
71                                 asterisk character(*)
72                         </p>
73                         <p>
74                                 <span id="required" style="color: Red; font-size: 180%;"
75                                         visible="false">*</span>Instance/Code can only contain alphanumeric
76                                 characters, hyphens(-), dots(.), colons(:), forwardSlash(/) ,
77                                 asterisk(*) and underscores(_)
78                         </p>
79                         <p>
80                                 <span id="required" style="color: Red; font-size: 180%;"
81                                         visible="false">*</span>Name can only contain alphanumeric
82                                 characters, spaces, hyphens(-), dots(.) and underscores(_)
83                         </p>
84                 </div>
85                 <div ng-hide="isProcessing || isProcessedRecords" class="c-ecomp-portal-abs-table default"
86                         style="height: 250px !important">
87                         <table b2b-table table-data="uploadFile"
88                                 search-string="bulkRoleAndFunctions.searchString"
89                                 view-per-page="bulkRoleAndFunctions.viewPerPageIgnored"
90                                 current-page="bulkRoleAndFunctions.currentPageIgnored"
91                                 total-page="bulkRoleAndFunctions.totalPageIgnored">
92                                 <thead b2b-table-row type="header">
93                                         <tr>
94                                                 <th id="th-line" b2b-table-header sortable="false">Line</th>
95                                                 <th id="th-type" b2b-table-header sortable="false">Type</th>
96                                                 <th id="th-instance" b2b-table-header sortable="false">Instance/Code</th>
97                                                 <th id="th-action" b2b-table-header sortable="false">Action</th>
98                                                 <th id="th-name" b2b-table-header sortable="false">Name</th>
99                                                 <th id="th-status" b2b-table-header sortable="false">Status</th>
100                                         </tr>
101                                 </thead>
102                                 <!-- Use track-by="UNIQUE KEY HERE" or leave out if no unique keys in data -->
103                                 <tbody b2b-table-row type="body" class="table-body"
104                                         row-repeat="rowData in uploadFile">
105                                         <tr id="tr-rowData">
106                                                 <td class="td-first" b2b-table-body>
107                                                         <div ng-bind="rowData.line"></div>
108                                                 </td>
109                                                 <td b2b-table-body>
110                                                         <div ng-bind="rowData.type"></div>
111                                                 </td>
112                                                 <td b2b-table-body>
113                                                         <div ng-bind="rowData.instance"></div>
114                                                 </td>
115                                                 <td b2b-table-body>
116                                                         <div ng-bind="rowData.action"></div>
117                                                 </td>
118                                                 <td b2b-table-body>
119                                                         <div ng-bind="rowData.name"></div>
120                                                 </td>
121                                                 <td b2b-table-body>
122                                                         <div ng-bind="rowData.status"></div>
123                                                 </td>
124                                         </tr>
125                                 </tbody>
126                         </table>
127                 </div>
128
129         </div>
130
131 </div>
132 <div class="b2b-modal-footer">
133         <div class="cta-button-group in">
134                 <button id="bulk-user-ok-button" class="btn btn-alt btn-small"
135                         ng-disabled="isProcessedRecords" ng-class="{disabled: isValidating}" ng-click="updateFunctionsInDB()">Ok</button>
136                 <button id="bulk-user-cancel-button" class="btn btn-alt btn-small"
137                         ng-click="$dismiss('cancel')">Cancel</button>
138         </div>
139 </div>
140 </div>