2 ============LICENSE_START==========================================
4 ===================================================================
5 Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
6 ===================================================================
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
13 http://www.apache.org/licenses/LICENSE-2.0
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.
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
26 https://creativecommons.org/licenses/by/4.0/
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.
34 ============LICENSE_END============================================
36 ECOMP is a trademark and service mark of AT&T Intellectual Property.
39 <div class="b2b-modal-header">
40 <h2 class="heading-medium" id="newAdmin">Bulk User Upload</h2>
41 <div class="corner-button in">
42 <button type="button" class="close" aria-label="Close" id="bulkuser-button-close"
43 ng-click="$dismiss('cancel')"></button>
46 <div class="b2b-modal-body">
47 <div class="b2b-modal-body-div">
48 <div ng-show="bulkUser.step1">
49 <div class="upload-instructions">Select Application:</div>
50 <div class="c-ecomp-portal-abs-select default">
52 <select id="bulk-user-dropdown-apps" name="dropdown1" b2b-dropdown ng-model="selectedApplication.value" ng-disabled="isProcessing" ng-class="{disabled: isProcessing}">
53 <option b2b-dropdown-list option-repeat="d in adminApps" value="{{d.value}}">{{d.title}}</option>
59 <div ng-hide="bulkUser.step1">
60 <div class="upload-instructions">Select Upload File:</div>
62 <!-- input type=file is difficult to style.
63 Instead use a label styled as a button. -->
64 <label class="file-label">
66 file-change="fileChangeHandler($event,files)"
67 ng-model="fileModel" />
68 <span>Browse...</span>
69 </label>{{selectedFile}}
70 <div class="upload-instructions">File must have one entry per line with this format:
71 <pre>orgUserId, role name</pre>
75 <!-- progress indicator in middle -->
76 <div ng-show="isProcessing">
77 <span class="ecomp-spinner"></span>
82 <div class="b2b-modal-footer">
83 <div class="cta-button-group in">
84 <button id="bulk-user-back-button" class="btn btn-alt btn-small"
85 ng-hide="bulkUser.step1" ng-click="navigateBack()">Back</button>
86 <button id="bulk-user-next-button" class="btn btn-alt btn-small"
87 ng-hide="!bulkUser.step1" ng-click="!isProcessing && step2()"
88 ng-class="{disabled: isProcessing}">Next</button>
89 <button id="bulk-user-upload-button" class="btn btn-alt btn-small"
90 ng-hide="bulkUser.step1"
91 ng-click="bulkUser.fileSelected && confirmUpload()"
92 ng-class="{disabled: !bulkUser.fileSelected}">Upload</button>
93 <button id="bulk-user-cancel-button" class="btn btn-alt btn-small"
94 ng-click="$dismiss('cancel')">Cancel</button>
100 $(document).ready(function(){
101 $(".ngdialog-close").attr('id','dialog-close');