Deliver centralized role management feature
[portal.git] / ecomp-portal-FE-common / client / app / views / users / new-user-dialogs / bulk-user.modal.html
1 <!--
2   ================================================================================
3   ECOMP Portal
4   ================================================================================
5   Copyright (C) 2017 AT&T Intellectual Property
6   ================================================================================
7   Licensed under the Apache License, Version 2.0 (the "License");
8   you may not use this file except in compliance with the License.
9   You may obtain a copy of the License at
10   
11        http://www.apache.org/licenses/LICENSE-2.0
12   
13   Unless required by applicable law or agreed to in writing, software
14   distributed under the License is distributed on an "AS IS" BASIS,
15   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16   See the License for the specific language governing permissions and
17   limitations under the License.
18   ================================================================================
19   -->
20 <div>
21         <div class="b2b-modal-header">
22                 <h2 class="heading-medium" id="newAdmin">Bulk User Upload</h2>
23                 <div class="corner-button in">
24                         <button type="button" class="close" aria-label="Close" id="bulkuser-button-close"
25                                 ng-click="$dismiss('cancel')"></button>
26                 </div>
27         </div>
28         <div class="b2b-modal-body">
29                 <div class="b2b-modal-body-div">
30                         <div ng-show="bulkUser.step1">
31                                 <div class="upload-instructions">Select Application:</div>
32                                 <div class="c-ecomp-portal-abs-select default">
33         
34                                       <select id="bulk-user-dropdown-apps" name="dropdown1" b2b-dropdown  ng-model="selectedApplication.value" ng-disabled="isProcessing" ng-class="{disabled: isProcessing}">  
35                                                 <option b2b-dropdown-list option-repeat="d in adminApps" value="{{d.value}}">{{d.title}}</option>
36                                                         </select>
37         
38                                 </div>
39                         </div>
40         
41                         <div ng-hide="bulkUser.step1">
42                                 <div class="upload-instructions">Select Upload File:</div>
43         
44                                 <!-- input type=file is difficult to style.
45                                          Instead use a label styled as a button. -->
46                                 <label class="file-label"> 
47                                         <input type="file"
48                                                 file-change="fileChangeHandler($event,files)" 
49                                                 ng-model="fileModel" />
50                                                 <span>Browse...</span>
51                                 </label>{{selectedFile}}
52                                 <div class="upload-instructions">File must have one entry per line with this format:
53                                 <pre>orgUserId, role name</pre>
54                                 </div>
55                         </div>
56         
57                         <!-- progress indicator in middle -->
58                         <div ng-show="isProcessing">
59                                 <span class="ecomp-spinner"></span>
60                         </div>
61                         <br>
62                 </div>
63         </div>
64         <div class="b2b-modal-footer">
65                 <div class="cta-button-group in">               
66                         <button id="bulk-user-back-button" class="btn btn-alt btn-small"
67                                 ng-hide="bulkUser.step1" ng-click="navigateBack()">Back</button>
68                         <button id="bulk-user-next-button" class="btn btn-alt btn-small"
69                                 ng-hide="!bulkUser.step1" ng-click="!isProcessing && step2()"
70                                 ng-class="{disabled: isProcessing}">Next</button>
71                         <button id="bulk-user-upload-button" class="btn btn-alt btn-small"
72                                 ng-hide="bulkUser.step1"
73                                 ng-click="bulkUser.fileSelected && confirmUpload()"
74                                 ng-class="{disabled: !bulkUser.fileSelected}">Upload</button>
75                         <button id="bulk-user-cancel-button" class="btn btn-alt btn-small"
76                                 ng-click="$dismiss('cancel')">Cancel</button>
77                 </div>
78         </div>
79 </div>
80
81 <script>
82 $(document).ready(function(){
83     $(".ngdialog-close").attr('id','dialog-close');
84 });
85 </script>