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============================================
46 <!-- <link rel="stylesheet" href="role.css">
48 <div class="new-admin-modal" style="height: 600px;">
49 <div class="b2b-modal-header">
52 <div class="corner-button in">
53 <button type="button" class="close" aria-label="Close"
54 id="button-cancel-role" ng-click="$dismiss('cancel')"></button>
58 <div class="b2b-modal-body">
59 <form id="admin-details-form" name="adminForm" novalidate>
60 <div class="title" ng-bind="label" class="adminForm-title"></div>
63 <div class="item-label">
64 <span ID="required" style="color: Red;" visible="false"> *</span>Type:
65 <fieldset style="height: 75px;" role="radiogroup"
66 b2b-radio-group-accessibility aria-labelledby="radiolabel2">
67 <div class="form-row" role="radio"
68 ng-repeat="radioObj in ngRepeatDemo">
69 <label style="margin-top: 10px;" for="{{radioObj.id}}"
70 class="radio"> <input type="radio"
71 ng-model="selectedvalueradioButtonGroup.type"
72 id="{{radioObj.id}}" ng-disabled="disableCd"
73 name="nameradioButton" value="{{radioObj.value}}"> <i
74 style="margin-top: 10px;" class="skin"></i> <span
75 style="margin-top: 10px;">{{radioObj.labelvalue}}</span>
80 ng-show="selectedvalueradioButtonGroup.type === 'other'"
81 id="type-property-input" class="adminForm-name-property-input"
82 ng-model="editRoleFunction.type" ng-disabled="disableCd"
83 type="text" maxlength="30" />
85 <div class="error-container"
86 ng-show="selectedvalueradioButtonGroup.type === 'other'&&(!editRoleFunction.type||editRoleFunction.type.length==0)">
87 <small id="microservices-details-input-url-required"
88 class="err-message">Type is Required</small>
93 <div class="item-label">
94 <span ID="required" style="color: Red;" visible="false"> *</span>Instance:
96 <input id="code-property-input"
97 class="adminForm-code-property-input"
98 ng-model="editRoleFunction.code" ng-disabled="disableCd"
99 type="text" maxlength="250" />
101 <div class="error-container"
102 ng-show="!editRoleFunction.code||editRoleFunction.code.length==0">
103 <small id="code-property-required" class="err-message">Instance
109 <div class="item-label">
110 <span ID="required" style="color: Red;" visible="false"> *</span>Action:
112 <input id="action-property-input"
113 class="adminForm-name-property-input"
114 ng-model="editRoleFunction.action" ng-disabled="disableCd"
115 type="text" maxlength="30" />
116 <div class="error-container"
117 ng-show="!editRoleFunction.action||editRoleFunction.action.length==0">
118 <small id="microservices-details-input-url-required"
119 class="err-message">Action is Required</small>
124 <div class="item-label">
125 <span ID="required" style="color: Red;" visible="false"> *</span>Name:
127 <input id="name-property-input"
128 class="adminForm-name-property-input"
129 ng-model="editRoleFunction.name" type="text" maxlength="50" />
131 <div class="error-container"
132 ng-show="!editRoleFunction.name||editRoleFunction.name.length==0">
133 <small id="microservices-details-input-url-required"
134 class="err-message">Name is Required</small>
138 <div class="item-label">
139 <span style="color: #0568ae; font-size: 20px;"
140 class="icon-numslets-flat-info"></span> Code: <span
141 ng-show="selectedvalueradioButtonGroup.type !== 'other'">{{selectedvalueradioButtonGroup.type}}|{{editRoleFunction.code}}|{{editRoleFunction.action}}</span>
142 <span ng-show="selectedvalueradioButtonGroup.type === 'other'">{{editRoleFunction.type}}|{{editRoleFunction.code}}|{{editRoleFunction.action}}</span>
147 <div class="b2b-modal-footer">
148 <div class="dialog-control">
150 <button id="button-app-save" class="btn btn-alt btn-small"
152 ng-disabled="(!editRoleFunction.name||editRoleFunction.name.length==0)||(!editRoleFunction.code||editRoleFunction.code.length==0 )||(!editRoleFunction.action||editRoleFunction.action.length==0)
153 ||(!selectedvalueradioButtonGroup.type||selectedvalueradioButtonGroup.type.length==0)||(selectedvalueradioButtonGroup.type ==='other'&&(!editRoleFunction.type||editRoleFunction.type.length==0))"
154 ng-click="!saveRoleFunction(editRoleFunction,selectedvalueradioButtonGroup.type)"
155 herf="javascript:void(0)">Save</button>
157 <div id="button-app-cancel" class="btn btn-alt btn-small"
158 ng-click="$dismiss('cancel')" role="button" tabindex="0"
159 herf="javascript:void(0)">Cancel</div>
166 $(document).ready(function() {
167 $(".ngdialog-close").attr('id', 'dialog-close');