nexus site path corrected
[portal.git] / ecomp-portal-FE / client / app / views / support / contact-us / contact-us-manage / contact-us-manage.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 <div style="margin-top: 10px; margin-bottom: 10px;">
21         
22 </div>
23 <br/>
24
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">
33                                 <tr>
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>   
41                                 </tr>
42                         </thead>
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="">
46                                     <td att-table-body>
47                                         <div id="users-page-td-appName" ng-bind="rowData.appName"></div>                                        
48                                     </td>
49                                     <td att-table-body>
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"/>
52                                     </td>
53                                     <td att-table-body>
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"/>
56                                     </td>
57                                     <td att-table-body>
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"/>                                     
60                                     </td>
61                                     <td att-table-body>
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"/>
64                                     </td>
65                                     <td att-table-body>
66                                         <div class="delete-contact-us" ng-hide="rowData.showEdit" ng-click="rowData.showEdit=true">
67                                                 <span class="ion-edit"></span>
68                                         </div>                     
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>
71                                         </span>
72                                     </td>
73                                    <td att-table-body>
74                                         <div class="delete-contact-us" ng-click="delContactUsFun(rowData)">
75                                                 <span class="ion-trash-b"></span>
76                                         </div>
77                                     </td>
78                                 </tr>
79                         </tbody>
80                     </table>
81                 </div>
82                 
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> -->
88                                                 </div>          
89                                                 <div id="addWidget" class="contact-us-margin">
90                                                         <div>           
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>                 
94                                                         </div>
95                                                         <br>
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"/>                                                      
99                                                         </div>
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"/>                                                     
103                                                         </div>
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"/>
107                                                         </div>
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>
111                                                         </div>
112                                                 </div>
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>
115                                                         </div>
116                                                         
117                                                         <div att-divider-lines></div>
118                                                         
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>
121                                                         </div>
122                                         
123                                                 </div>
124                                         
125                                         </div>
126                                                         
127             </div>
128         </div>
129     </div>
130 </div>
131         
132                 <script type="application/javascript">
133     $(document).ready(function(){
134         $(".ngdialog-content").css("width","85%")
135     });
136 </script>