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.
50 display: inline-block;
68 <div class="b2b-modal-header">
69 <div id="title" class="w-ecomp-main-view-title">
70 <h1 id="role" class="header-txt" >Role</h1>
72 <div class="corner-button in">
73 <button type="button" class="close" aria-label="Close" id="button-cancel-role"
74 ng-click="$dismiss('cancel')"></button>
78 <div class="b2b-modal-body">
79 <p class="p-info">Please <span ng-if="roleId != ''">edit</span> <span ng-if="roleId == ''">add</span> the role details below: </p><br>
81 <div ng-show ="isGlobalRole" class="property-label checkbox-label">
82 <label for="checkbox-app-is-restricted" class="checkbox">
83 <input type="checkbox" ng-model="isGlobalRoleChecked.isChecked" id="checkbox-app-is-restricted" ng-checked="isGlobalRoleChecked.isChecked" />
84 <i id="checkbox-app-is-restricted" class="skin"></i>
85 <span>Global Roles: </span>
90 <label id="role-text-name-label" >*Name:</label>
91 <input id="input-name" class="input-field" maxlength="300" type="text" data-ng-model="role.name" ng-disabled = "isGlobalRoleChecked.isChecked && appId != 1">
93 <label id="role-text-priority-label">Priority:</label>
94 <input id="input-priority" class="input-field" maxlength="30" type="text" data-ng-model="role.priority" ng-disabled = "isGlobalRoleChecked.isChecked && appId != 1">
97 <div class="scrolling-table">
98 <div ng-if="roleFunctions.length">
99 <div id="page-title" class="pageTitle">
100 <label>Role Functions</label>
102 <div b2b-table table-data="availableRoleFunctions" class="b2b-table-div">
103 <span class="ecomp-spinner" ng-show="isLoadingRoleFunctions"></span>
105 <thead b2b-table-row type="header">
107 <th b2b-table-header key="firstName" sortable="true" id="col1"></th>
108 <th b2b-table-header key="name" sortable="true" id="col2">Name</th>
111 <tbody b2b-table-row type="body"
112 row-repeat="rowData in availableRoleFunctions">
114 <td b2b-table-body id="rowheader_t1_{{$index}}" headers="col1">
115 <label class="btn-switch-label" tabindex="0" role="option">
116 <input id="row-input-{{$index}}" type="checkbox" b2b-switches
117 ng-model="rowData.selected"
118 ng-click="toggleRoleFunction(rowData.selected,rowData);">
121 <td b2b-table-body headers="rowheader_t1_{{$index}} col2"
122 ng-bind="rowData.name"></td>
131 <div class="b2b-modal-footer">
132 <div class="cta-button-group in">
133 <button id="button-app-save" class="btn btn-alt btn-small" size="small" ng-click="saveRole(role, editRoleFunction);" href="javascript:void(0)">Save</button>
135 <button id="button-app-cancel" class="btn btn-alt btn-small" ng-click="$dismiss('cancel')" role="button" tabindex="0" href="javascript:void(0)">Cancel</button>