5322dc605a5d2d83abbb1e08d795bfce375bf960
[portal.git] / ecomp-portal-FE-common / client / app / views / role / popup_modal_rolefunction.html
1 <!--
2   ============LICENSE_START==========================================
3   ONAP Portal
4   ===================================================================
5   Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
6   ===================================================================
7  
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
12  
13               http://www.apache.org/licenses/LICENSE-2.0
14  
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.
20  
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
25  
26               https://creativecommons.org/licenses/by/4.0/
27  
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.
33  
34   ============LICENSE_END============================================
35  
36   ECOMP is a trademark and service mark of AT&T Intellectual Property.
37   -->
38 <style>
39 .dialog-control {
40         position: relative;
41         bottom: -13px;
42         right: 0px;
43 }
44 </style>
45
46 <!-- <link rel="stylesheet" href="role.css">
47  -->
48 <div class="new-admin-modal" style="height: 600px;">
49         <div class="b2b-modal-header">
50
51
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>
55                 </div>
56         </div>
57
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>
61                         <br>
62                         <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>
76                                                         </label>
77                                                 </div>
78                                         </fieldset>
79                                         <br> <input
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" />
84                                 </div>
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>
89                                 </div>
90                         </div>
91                         <br>
92                         <div>
93                                 <div class="item-label">
94                                         <span ID="required" style="color: Red;" visible="false"> *</span>Instance:
95                                 </div>
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" />
100
101                                 <div class="error-container"
102                                         ng-show="!editRoleFunction.code||editRoleFunction.code.length==0">
103                                         <small id="code-property-required" class="err-message">Instance
104                                                 is Required</small>
105                                 </div>
106                         </div>
107                         <br>
108                         <div>
109                                 <div class="item-label">
110                                         <span ID="required" style="color: Red;" visible="false"> *</span>Action:
111                                 </div>
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>
120                                 </div>
121                         </div>
122                         <br>
123                         <div>
124                                 <div class="item-label">
125                                         <span ID="required" style="color: Red;" visible="false"> *</span>Name:
126                                 </div>
127                                 <input id="name-property-input"
128                                         class="adminForm-name-property-input"
129                                         ng-model="editRoleFunction.name" type="text" maxlength="50" />
130
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>
135                                 </div>
136                         </div>
137                         <br>
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>
143                         </div>
144                 </form>
145         </div>
146
147         <div class="b2b-modal-footer">
148                 <div class="dialog-control">
149
150                         <button id="button-app-save" class="btn btn-alt btn-small"
151                                 size="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>
156
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>
160                 </div>
161         </div>
162
163 </div>
164
165 <script>
166         $(document).ready(function() {
167                 $(".ngdialog-close").attr('id', 'dialog-close');
168         });
169 </script>