Deliver centralized role management feature
[portal.git] / ecomp-portal-FE-common / client / app / views / role / popup_modal_rolefunction.html
1 <!--
2   ================================================================================
3   ECOMP Portal
4   ================================================================================
5   Copyright (C) 2017 AT&T Intellectual Property
6   ================================================================================
7   Licensed under the Apache License, Version 2.0 (the "License");
8   you may not use this file except in compliance with the License.
9   You may obtain a copy of the License at
10   
11        http://www.apache.org/licenses/LICENSE-2.0
12   
13   Unless required by applicable law or agreed to in writing, software
14   distributed under the License is distributed on an "AS IS" BASIS,
15   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16   See the License for the specific language governing permissions and
17   limitations under the License.
18   ================================================================================
19   -->
20   <style>
21   .dialog-control {
22     position: relative;
23     bottom: -13px;
24     right: 0px;
25 }
26   </style>
27 <style>
28   .dialog-control {
29     position: relative;
30     bottom: -13px;
31     right: 0px;
32 }
33   </style>
34
35 <!-- <link rel="stylesheet" href="role.css">
36  --><div class="new-admin-modal">
37                 <div class="b2b-modal-header">
38                         
39
40                         <div class="corner-button in">
41                                 <button type="button" class="close" aria-label="Close" id="button-cancel-role"
42                                         ng-click="$dismiss('cancel')"></button>
43                         </div>
44                 </div>
45
46                 <div class="b2b-modal-body">
47                 <form id="admin-details-form" name="adminForm" novalidate>
48                 <div class="title" ng-bind="label" class="adminForm-title"></div>
49 <br>
50                 <div >
51                                         <div class="item-label"> <span ID="required" style="color: Red;"
52                                                 visible="false"> *</span>Name:</div>
53                                         <input id="name-property-input"
54                                                 class="adminForm-name-property-input" ng-model="editRoleFunction.name"
55                                                 type="text" maxlength="30"
56                                                  />
57
58                                         <div class="error-container"
59                                                 ng-show="!editRoleFunction.name||editRoleFunction.name.length==0">
60                                                 <small id="microservices-details-input-url-required"
61                                                         class="err-message">Name is Required</small>
62                                         </div>
63                                 </div>
64                         <br>    
65                                 <div >
66                                         <div class="item-label"> <span ID="required" style="color: Red;"
67                                                 visible="false"> *</span>Code:</div>
68                                         <input id="code-property-input"
69                                                 class="adminForm-code-property-input" ng-model="editRoleFunction.code" ng-disabled="disableCd"
70                                                 type="text" maxlength="30"
71                                                  />
72
73                                         <div class="error-container"
74                                                 ng-show="!editRoleFunction.code||editRoleFunction.code.length==0">
75                                                 <small id="code-property-required"
76                                                         class="err-message">Code is Required</small>
77                                         </div>
78                                 </div>
79                 
80                 </form>
81         </div>
82                 
83                         <div class="b2b-modal-footer">
84                                 <div class="dialog-control">
85                                 
86 <button id="button-app-save" class="btn btn-alt btn-small" size="small" ng-disabled="(!editRoleFunction.name||editRoleFunction.name.length==0)||(!editRoleFunction.code||editRoleFunction.code.length==0 )" ng-click="!saveRoleFunction(editRoleFunction)";herf="javascript:void(0)">Save</button>
87                                                 
88                                                 <div id="button-app-cancel" class="btn btn-alt btn-small" ng-click="$dismiss('cancel')" role="button" tabindex="0" herf="javascript:void(0)">Cancel</div>
89                 </div>
90                 
91                 <!-- <div class="dialog-control">
92
93 <button id="button-app-save" class="btn btn-alt btn-small" size="small" ng-disabled="(!editRoleFunction.name||editRoleFunction.name.length==0)||(!editRoleFunction.code||editRoleFunction.code.length==0 )" ng-click="!saveRoleFunction(editRoleFunction)";herf="javascript:void(0)">Save</button>
94
95 <div id="button-app-cancel" class="btn btn-alt btn-small" ng-click="closeThisDialog()" role="button" tabindex="0" herf="javascript:void(0)">Cancel</div>
96 </div> -->
97                         </div>
98                         
99 </div>
100
101 <script>
102 $(document).ready(function(){
103     $(".ngdialog-close").attr('id','dialog-close');
104 });
105 </script>
106