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