Replace ecomp references
[portal.git] / ecomp-portal-FE-common / client / app / views / dashboard / dashboard-widget-parameter-manage.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   
37   -->
38 <div class="manage-widget-parameter-header">
39
40                 <div class="b2b-modal-header">
41                         <h2 class="title" id="manage-widget-parameters-title">Manage Widgets Parameters Page</h2>
42
43                         <div class="corner-button in">
44                                 <button type="button" class="close" aria-label="Close"
45                                         ng-click="$dismiss('cancel')"></button>
46                         </div>
47                 </div>
48
49                 <div class="b2b-modal-body">
50                         <div class="widgets-popup-margin">
51         <div class="get-access-table">
52                 <div class="table-control manage-widget-parameters-table">
53                         <div class="manage-widget-parameters-table-details">
54                                 <table b2b-table id="table-main" table-data="ignoredTableData"
55                                         current-page="ignoredCurrentPage"  ng-show="isLoadingTable">
56                                         <thead b2b-table-row type="header">
57                                                 <tr>
58                                                         <th id="th-users-2" b2b-table-header key="href" sortable="true">Parameter
59                                                                 Key</th>
60                                                         <th id="th-users-3" b2b-table-header key="event_date"
61                                                                 sortable="true">My Value</th>
62                                                         <th id="th-users-4" b2b-table-header key="content"
63                                                                 sortable="true">Default Value</th>
64                                                         <th id="th-users-5" b2b-table-header key="edit" sortable="false">Edit</th>
65                                                         <th id="th-users-5" b2b-table-header key="edit" sortable="false">Reset to Default</th>
66                                                 </tr>
67                                         </thead>
68                                         <tbody b2b-table-row type="body" class="table-body"
69                                                 track-by="$index" row-repeat="rowData in widgetParam">
70                                                 <tr id="tr-rowData">
71                                                         <td b2b-table-body>
72                                                                 <div id="widget-parameter-td-parameter-key"
73                                                                         ng-bind="rowData.param_key"></div>
74                                                         </td>
75                                                         <td b2b-table-body>
76                                                                 <div id="widget-parameter-td-parameter-user-value"
77                                                                         ng-hide="rowData.showEdit" ng-bind="rowData.user_value"></div>
78                                                                 <input id="widget-input-user-value" type="text"
79                                                                 ng-show="rowData.showEdit"
80                                                                 ng-model="widgetParam[$index].user_value" />
81                                                         </td>
82
83                                                         <td b2b-table-body>
84                                                                 <div id="widget-parameter-td-parameter-default-value"
85                                                                         ng-bind="rowData.default_value"></div>
86                                                         </td>
87                                                         <td b2b-table-body>
88                                                                 <div ng-hide="rowData.showEdit" ng-click="setEdit($index);">
89                                                                         <span class="icon-edit"></span>
90                                                                 </div> <span ng-show="rowData.showEdit"> 
91                                                                         <button class="btn btn-alt btn-small" id="admin-button-add"  ng-click="modify($index);">Save</button> 
92                                                         </span>
93                                                         </td>
94                                                         <td b2b-table-body>
95                                                                 <div ng-click="resetDefault($index);">
96                                                                         <span class="icon-edit"></span>
97                                                                 </div> 
98                                                         </span>
99                                                         </td>
100                                                 </tr>
101                                         </tbody>
102
103                                 </table>
104                                 <div ng-show = "messageInfo">
105                                         There is no parameter assoicated with this widget!
106                                 </div>
107                                 
108                         </div>
109
110                 </div>
111         </div>
112 </div>
113         
114                         </div>
115                         <br>
116                         </div>
117
118 <script>
119 $(document).ready(function(){
120     $(".ngdialog-close").attr('id','dialog-close');
121 });
122 </script>