2 ================================================================================
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
11 http://www.apache.org/licenses/LICENSE-2.0
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 ================================================================================
20 <div class="manage-widget-parameter-header">
22 <div class="b2b-modal-header">
23 <h2 class="title" id="manage-widget-parameters-title">Manage Widgets Parameters Page</h2>
25 <div class="corner-button in">
26 <button type="button" class="close" aria-label="Close"
27 ng-click="$dismiss('cancel')"></button>
31 <div class="b2b-modal-body">
32 <div class="widgets-popup-margin">
33 <div class="get-access-table">
34 <div class="table-control manage-widget-parameters-table">
35 <div class="c-ecomp-att-abs-table manage-widget-parameters-table-details">
36 <table b2b-table id="table-main" table-data="ignoredTableData"
37 current-page="ignoredCurrentPage" ng-show="isLoadingTable">
38 <thead b2b-table-row type="header">
40 <th id="th-users-2" b2b-table-header key="href" sortable="true">Parameter
42 <th id="th-users-3" b2b-table-header key="event_date"
43 sortable="true">My Value</th>
44 <th id="th-users-4" b2b-table-header key="content"
45 sortable="true">Default Value</th>
46 <th id="th-users-5" b2b-table-header key="edit" sortable="false">Edit</th>
47 <th id="th-users-5" b2b-table-header key="edit" sortable="false">Reset to Default</th>
50 <tbody b2b-table-row type="body" class="table-body"
51 track-by="$index" row-repeat="rowData in widgetParam">
54 <div id="widget-parameter-td-parameter-key"
55 ng-bind="rowData.param_key"></div>
58 <div id="widget-parameter-td-parameter-user-value"
59 ng-hide="rowData.showEdit" ng-bind="rowData.user_value"></div>
60 <input id="widget-input-user-value" type="text"
61 ng-show="rowData.showEdit"
62 ng-model="widgetParam[$index].user_value" />
66 <div id="widget-parameter-td-parameter-default-value"
67 ng-bind="rowData.default_value"></div>
70 <div ng-hide="rowData.showEdit" ng-click="setEdit($index);">
71 <span class="icon-edit"></span>
72 </div> <span ng-show="rowData.showEdit">
73 <button class="btn btn-alt btn-small" id="admin-button-add" ng-click="modify($index);">Save</button>
77 <div ng-click="resetDefault($index);">
78 <span class="icon-edit"></span>
86 <div ng-show = "messageInfo">
87 There is no parameter assoicated with this widget!
101 $(document).ready(function(){
102 $(".ngdialog-close").attr('id','dialog-close');