[PORTAL-7] Rebase
[portal.git] / ecomp-portal-FE-os / client / src / views / catalog / add-catalog-dialogs / new-catalog.modal.html
1 <!--\r
2   ================================================================================\r
3   ECOMP Portal\r
4   ================================================================================\r
5   Copyright (C) 2017 AT&T Intellectual Property\r
6   ================================================================================\r
7   Licensed under the Apache License, Version 2.0 (the "License");\r
8   you may not use this file except in compliance with the License.\r
9   You may obtain a copy of the License at\r
10   \r
11        http://www.apache.org/licenses/LICENSE-2.0\r
12   \r
13   Unless required by applicable law or agreed to in writing, software\r
14   distributed under the License is distributed on an "AS IS" BASIS,\r
15   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
16   See the License for the specific language governing permissions and\r
17   limitations under the License.\r
18   ================================================================================\r
19   -->\r
20 <div class="new-catalog-modal">\r
21 \r
22         <div class="user-catalog-roles" ng-show="userInfo.dialogState===2">\r
23               <div >\r
24            <div class=display-userApp-Catalog-Roles >{{titleText}}</div>\r
25              <div class="title"\r
26                         ng-bind="userInfo.selectedUser.firstName + ' ' + userInfo.selectedUser.lastName + ' (' + userInfo.selectedUser.attuid + ')'"></div>\r
27      </div>\r
28                 <div class="app-roles-main">\r
29 \r
30                         <div class="app-catalog-roles-list">\r
31                                 <div class="app-catalog-item" ng-repeat="app in userInfo.adminApps"\r
32                                         ng-if="app.name === userInfo.selectedUser.headerText"\r
33                                         id="app-name-{{app.name.split(' ').join('-')}}">\r
34                                         <div class="app-catalog-item-left"\r
35                                                 id="div-app-name-{{app.name.split(' ').join('-')}}">{{app.name\r
36                                                 | elipsis: 27}}</div>\r
37                                         <div class="app-catalog-item-right"\r
38                                                 id="div-app-name-dropdown-{{app.name.split(' ').join('-')}}"\r
39                                                 ng-show="!app.isError && !app.isLoading && !app.noChanges && !app.isUpdating && !app.isDoneUpdating && !app.isErrorUpdating"\r
40                                                 ng-if="userAppRoles.length===0">\r
41                                                 <multiple-select id="app-roles" unique-data="{{$index}}"\r
42                                                         placeholder="Select roles" ng-model="app.appRoles"\r
43                                                         on-change="userInfo.appChanged($index)" name-attr="roleName"\r
44                                                         value-attr="isApplied"></multiple-select>\r
45                                         </div>\r
46 \r
47                                         <div class="app-catalog-item-right"\r
48                                                 id="div-app-name-dropdown-{{app.name.split(' ').join('-')}}"\r
49                                                 ng-show="!app.isError && !app.isLoading && !app.noChanges && !app.isUpdating && !app.isDoneUpdating && !app.isErrorUpdating"\r
50                                                 ng-if="userAppRoles.length!==0">\r
51                                                 <multiple-select2 id="app-roles" unique-data="{{$index}}"\r
52                                                         placeholder="Select roles" ng-model="app.appRoles"\r
53                                                         on-change="userInfo.appChanged($index)" name-attr="roleName"\r
54                                                         value-attr="isApplied"></multiple-select2>\r
55                                         </div>\r
56 \r
57 \r
58                                         <div id="app-item-no-contact" class="app-catalog-item-right-error"\r
59                                                 ng-show="app.isError">{{app.errorMessage | elipsis: 35}}</div>\r
60                                         <div id="app-item-contacting"\r
61                                                 class="app-catalog-item-right-contacting" ng-show="app.isLoading">Contacting\r
62                                                 application...</div>\r
63                                         <div id="app-item-no-changes"\r
64                                                 class="app-catalog-item-right-contacting" ng-show="app.noChanges">No\r
65                                                 changes</div>\r
66                                         <div id="app-item-no-updating"\r
67                                                 class="app-catalog-item-right-contacting" ng-show="app.isUpdating">Updating\r
68                                                 application...</div>\r
69                                         <div id="app-item-done-updating"\r
70                                                 class="app-catalog-item-right-contacting"\r
71                                                 ng-show="app.isDoneUpdating">Finished updating application</div>\r
72                                         <div id="app-item-cannot-update"\r
73                                                 class="app-catalog-item-right-error" ng-show="app.isErrorUpdating">Could\r
74                                                 not update application...</div>\r
75                                         <div id='ecomp-small-spinner' class="ecomp-small-spinner"\r
76                                                 ng-show="app.isLoading"></div>\r
77                                 </div>\r
78 \r
79                                 &nbsp;\r
80 \r
81                                 <div class="usr-app-roles" ng-show=displyUserAppCatalogRoles>\r
82                                         <div class="userApp-Catalog-Roles-label">{{title}}</div>\r
83                                         &nbsp;\r
84                                         <div class="display-userApp-Catalog-Roles-value"\r
85                                                 style="height: 150px; width: 200px; overflow-y: auto;">\r
86                                                 <div ng-repeat="getUserApplicationRole in userAppRoles">\r
87 \r
88                                                         <div class="userAppCatalog-lbl-value">\r
89                                                                 <span class="userAppCatalog-lbl-value-spn">\r
90                                                                         {{getUserApplicationRole.rolename}}</span>\r
91                                                         </div>\r
92 \r
93                                                 </div>\r
94                                         </div>\r
95 \r
96                                 </div>\r
97                         </div>\r
98 \r
99                         <div class="dialog-control">\r
100                                 <span id="ecomp-save-spinner" class="ecomp-save-spinner"\r
101                                         ng-show="userInfo.isSaving || userInfo.isGettingAdminApps"></span>\r
102                                 <button id="new-user-next-button" class="next-button"\r
103                                         ng-click="userInfo.updateUserAppsRoles()"\r
104                                         ng-disabled="(!userInfo.anyChanges == true)">Submit</button>\r
105                                 <div id="new-user-cancel-button" class="cancel-button"\r
106                                         ng-click="closeThisDialog()">Cancel</div>\r
107                         </div>\r
108 \r
109                 </div>\r
110 \r
111         </div>\r
112 \r
113 </div>\r