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 style="margin-top: 10px; margin-bottom: 10px;">
25 <div style="margin-top: 25px;">
26 <div id="title" class="manage-contactUs-home-title">Manage Contact Us</div>
27 <div class="contact-us-margin">
28 <div class="get-access-table">
29 <div class="table-control">
30 <div class="c-ecomp-att-abs-table" style="height:300px"">
31 <table att-table id="table-main" table-data="contactUsList" current-page="ignoredCurrentPage">
32 <thead att-table-row type="header">
34 <th id="th-users-0" att-table-header key="ecomp_function" default-sort="a" >App Name</th>
35 <th id="th-users-1" att-table-header key="app_name" sortable="true" >Contact Name</th>
36 <th id="th-users-2" att-table-header key="app_name" sortable="true" >Contact Email</th>
37 <th id="th-users-3" att-table-header key="role_name" sortable="true">Contact URL</th>
38 <th id="th-users-4" att-table-header key="role_name" sortable="true" >Description</th>
39 <th id="th-users-5" att-table-header key="role_name" sortable="true" >Edit</th>
40 <th id="th-users-6" att-table-header key="role_name" sortable="true" >Delete</th>
43 <!-- Use track-by="UNIQUE KEY HERE" or leave out if no unique keys in data -->
44 <tbody att-table-row type="body" class="table-body" track-by="$index" row-repeat="rowData in contactUsList">
45 <tr id="tr-rowData" ng-click="">
47 <div id="users-page-td-appName" ng-bind="rowData.appName"></div>
50 <div id="users-page-td-name" ng-hide="rowData.showEdit" ng-bind="rowData.contactName"></div>
51 <input class="input-inline-edit-text" type="text" ng-show="rowData.showEdit" ng-model="contactUsList[$index].contactName"/>
54 <div id="users-page-td-email" ng-hide="rowData.showEdit" ng-bind="rowData.contactEmail"></div>
55 <input class="input-inline-edit-text" type="text" ng-show="rowData.showEdit" ng-model="contactUsList[$index].contactEmail"/>
58 <div id="users-page-td-url" ng-hide="rowData.showEdit" ng-bind="rowData.url"></div>
59 <input class="input-inline-edit-text" type="text" ng-show="rowData.showEdit" ng-model="contactUsList[$index].url"/>
62 <div id="users-page-td-descr" ng-hide="rowData.showEdit" ng-bind=" rowData.description"></div>
63 <input class="input-inline-edit-text" type="text" ng-show="rowData.showEdit" ng-model="contactUsList[$index].description"/>
66 <div class="delete-contact-us" ng-hide="rowData.showEdit" ng-click="rowData.showEdit=true">
67 <span class="ion-edit"></span>
69 <span ng-show="rowData.showEdit" >
70 <a att-button btn-type="primary" ng-click="editContactUsFun(rowData); rowData.showEdit=false" class="button button--primary" size="small" >Save</a>
74 <div class="delete-contact-us" ng-click="delContactUsFun(rowData)">
75 <span class="ion-trash-b"></span>
83 <div att-divider-lines></div>
84 <div style="margin-top: 15px; margin-left: -78px;">
85 <div id="addWidgetHeader" class="contact-us-margin">
86 <h1 style="font-size:18px;">Add Application Contact Information</h1>
87 <!-- <div class="errMsg">{{errMsg}}</div> -->
89 <div id="addWidget" class="contact-us-margin">
91 <div class="add-contact-us-field">
92 <div id="mots-property-label" class="property-label">App Name</div>
93 <div class="form-field" att-select="contactUsAllAppList" ng-model="newContactUs.app" placeholder="Select an App"></div>
96 <div class="add-contact-us-field" >
97 <div class="property-label">Contact Name</div>
98 <input class="input-text-area" type="text" ng-model="newContactUs.name"/>
100 <div class="add-contact-us-field" >
101 <div class="property-label">Contact Email</div>
102 <input class="input-text-area" type="text" ng-model="newContactUs.email"/>
104 <div class="add-contact-us-field" >
105 <div class="property-label">Contact URL</div>
106 <input class="input-text-area" type="text" ng-model="newContactUs.url"/>
108 <div class="add-contact-us-field-des">
109 <div class="property-label">Description</div>
110 <textarea style="margin-top: 0px; margin-bottom: 0px; height: 100px" ng-model="newContactUs.desc"></textarea>
113 <div style="height:50px;">
114 <a style="float:right; margin-top:20px" att-button btn-type="primary" class="button button--primary" size="small" ng-click="newContactUsFun()">Add New</a>
117 <div att-divider-lines></div>
119 <div style="height:50px;">
120 <a style="float:right; margin-right: -162px;" att-button btn-type="primary" class="button button--primary" size="small" ng-click="closeDialog()">Close</a>
132 <script type="application/javascript">
133 $(document).ready(function(){
134 $(".ngdialog-content").css("width","85%")