Replace ecomp references
[portal.git] / ecomp-portal-FE-common / client / app / views / support / contact-us / contact-us-manage / contact-us-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="b2b-modal-header" >
39         <h2 id="myModalLabel" b2b-modal-title="" tabindex="-1">Manage Contact Us</h2>
40         <div class="corner-button">
41                 <button type="button" class="close" aria-label="Close"  ng-click="$dismiss('cancel')"></button>
42         </div>
43 </div>
44 <div class="b2b-modal-body" tabindex="0" role="region" aria-label="Modal header text content"   >
45         <div class="c-ecomp-portal-abs-table contactus-manage-table">
46                 <table b2b-table id="table-main" table-data="contactUsList"     current-page="ignoredCurrentPage">
47                         <thead b2b-table-row type="header">
48                                 <tr>
49                                         <th id="th-users-0" b2b-table-header key="ecomp_function" default-sort="a">App Name</th>
50                                         <th id="th-users-1" b2b-table-header key="app_name" sortable="true">Contact     Name</th>
51                                         <th id="th-users-2" b2b-table-header key="app_name" sortable="true">Contact     Email</th>
52                                         <th id="th-users-3" b2b-table-header key="role_name" sortable="true">Contact URL</th>
53                                         <th id="th-users-4" b2b-table-header key="role_name" sortable="true">Description</th>
54                                         <th id="th-users-5" b2b-table-header key="role_name" sortable="true">Edit</th>
55                                         <th id="th-users-6" b2b-table-header key="role_name" sortable="true">Delete</th>
56                                 </tr>
57                         </thead>
58                         <!-- Use track-by="UNIQUE KEY HERE" or leave out if no unique keys in data -->
59                         <tbody b2b-table-row type="body" class="table-body" track-by="$index" row-repeat="rowData in contactUsList">
60                                 <tr id="tr-rowData" ng-click="">
61                                         <td b2b-table-body>
62                                                 <div id="users-page-td-appName" ng-bind="rowData.appName"></div>
63                                         </td>
64                                         <td b2b-table-body>
65                                                 <div id="users-page-td-name" ng-hide="rowData.showEdit" ng-bind="rowData.contactName"></div> 
66                                                 <input  class="input-inline-edit-text" type="text"      ng-show="rowData.showEdit"      ng-model="contactUsList[$index].contactName" />
67                                         </td>
68                                         <td b2b-table-body>
69                                                 <div id="users-page-td-email" ng-hide="rowData.showEdit"        ng-bind="rowData.contactEmail"></div> 
70                                                 <input  class="input-inline-edit-text" type="text"      ng-show="rowData.showEdit"      ng-model="contactUsList[$index].contactEmail" />
71                                         </td>
72                                         <td b2b-table-body>
73                                                 <div id="users-page-td-url" ng-hide="rowData.showEdit"  ng-bind="rowData.url"></div> 
74                                                 <input          class="input-inline-edit-text" type="text"      ng-show="rowData.showEdit" ng-model="contactUsList[$index].url" />
75                                         </td>
76                                         <td b2b-table-body>
77                                                 <div id="users-page-td-descr" ng-hide="rowData.showEdit"                ng-bind=" rowData.description"></div> 
78                                                 <input  class="input-inline-edit-text" type="text"      ng-show="rowData.showEdit"      ng-model="contactUsList[$index].description" />
79                                         </td>
80                                         <td b2b-table-body>
81                                                 <div class="delete-contact-us" ng-hide="rowData.showEdit"       ng-click="rowData.showEdit=true">
82                                                         <span class="icon-edit"></span>
83                                                 </div> 
84                                                 <span ng-show="rowData.showEdit"> 
85                                                         <a btn-type="primary"   ng-click="editContactUsFun(rowData); rowData.showEdit=false"    class="btn btn-alt btn-small" size="small">Save</a>
86                                         </span>
87                                         </td>
88                                         <td b2b-table-body>
89                                                 <div class="delete-contact-us" ng-click="delContactUsFun(rowData)">
90                                                         <span class="icon-misc-trash"></span>
91                                                 </div>
92                                         </td>
93                                 </tr>
94                         </tbody>
95                 </table>
96         </div>
97
98         <div id="divider-line"></div>
99
100
101         <div class="contactus-addWidgetHeader">
102                 <div id="addWidgetHeader" class="contact-us-margin">
103                         <h1 class="contactus-addWidgetHeader-txt">Add Application Contact Information</h1>
104                 </div>
105                 <div id="addWidget" class="contact-us-margin">
106                         <div>
107                                 <div id="add-contact-us-field-appname" class="add-contact-us-field">
108                                         <div id="mots-property-label" class="property-label">
109                                                 <span ID="required" class="mots-property-label-spn"     visible="false"> *</span>App Name
110                                         </div>
111                                         <select id="dropdown1" name="dropdown1" b2b-dropdown    placeholder-text="Select an App" ng-model="newContactUs.app.value">
112                                                 <option b2b-dropdown-list option-repeat="d in contactUsAllAppList"      value="{{d.value}}">{{d.title}}</option>
113                                         </select>
114                                         <div id="mots-property-label-required"  ng-show="newContactUs.app.title==null || newContactUs.app.title=='' ">
115                                                 <small class="mandatory-categories">App Name is Required</small>
116                                         </div>
117                                 </div>
118                                 <br>
119                                 <div id="add-contact-us-field-contactname"      class="add-contact-us-field">
120                                         <div id="property-label-name" class="property-label">Contact Name</div>
121                                         <input id="property-input-name" class="input-text-area" type="text"     ng-model="newContactUs.name" />
122                                 </div>
123                                 <div id="add-contact-us-field-email" class="add-contact-us-field">
124                                         <div id="property-label-email" class="property-label">Contact Email</div>
125                                         <input id="property-input-email" class="input-text-area" type="text" ng-model="newContactUs.email" />
126                                 </div>
127                                 <div id="add-contact-us-field-url" class="add-contact-us-field">
128                                         <div id="property-label-url" class="property-label">Contact     URL</div>
129                                         <input id="property-input-url" class="input-text-area" type="text" ng-model="newContactUs.url" />
130                                 </div>
131                                 <div id="add-contact-us-field-desc" class="add-contact-us-field-des">
132                                         <div id="property-label-desc" class="property-label">Description</div>
133                                         <textarea id="property-input-desc"      class="property-label-desc-txtarea" ng-model="newContactUs.desc"></textarea>
134                                 </div>
135                         </div>          
136                 </div>
137         </div>
138 </div>
139 <div class="b2b-modal-footer ng-scope ng-isolate-scope">
140         <div class="cta-button-group cta-modal-footer-flex">
141                 <div>
142                         <button class="btn btn-clear btn-medium pull-left" type="button" ng-click="$dismiss('cancel')">Close</button>
143                         <button class="btn btn-alt btn-medium" type="button" ng-click="newContactUsFun()" ng-disabled="newContactUs.app.title==null || newContactUs.app.title=='' ">Add New</button>
144                 </div>
145         </div>
146 </div>