Added service components
[portal.git] / portal-FE-common / src / app / pages / contact-us / contact-us.component.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 <div class="container">
38     <div id="contact-us-title" class="w-onap-main-view-title">
39         <h1 class="heading-page">Contact Us</h1>
40     </div>
41     <button type="button" style="float: right;" class="btn btn-primary" (click)="editContactUsModal()">
42       <i class="icon ion-md-person-add"></i>Edit Contact Us
43     </button>
44     <div class="w-onap-contactUs-home">
45        <div class="contactUs-home-container" id="page-content">
46           <div class="admins-page-main">
47               <div class="contactUs-general-div">
48                 <span class="contactUs-txt">
49                   To report an issue with ONAP Portal, open a ticket at the 
50                   <a href="{{ush_TicketInfoUrl}}" target="_blank">User Self Help system</a>.
51                 </span><br />
52               </div>
53             
54               <div class="contactUs-general-div">
55                 <span class="contactUs-txt">
56                   To give feedback to the ONAP Portal team, send email to 
57                   <a href="mailto:{{portalInfo_Address}}" target="_top">{{portalInfo_Address}}</a>. 
58                 </span><br />
59               </div>
60             
61               <div class="contactUs-general-div">
62                 <span class="contactUs-txt">
63                   To learn more about ONAP Portal, visit the 
64                   <a href="{{feedback_Url}}" target="_blank">ONAP Portal wiki</a> (may need to request access).
65                 </span><br />
66               </div>
67
68               <!-- Function Categories -->              
69               <div id="appFunctionInfo" class="w-onap-main-view-title"> Application Functions
70                 <br />
71                 <div b2b-table table-data="contact.functionalTableData" class="b2b-table-div">
72                     <table mat-table [dataSource]="dataSource" matSort>
73                        <!-- Category -->
74                       <ng-container matColumnDef="category">
75                           <th id="col1" mat-header-cell *matHeaderCellDef> Category  </th>
76                           <td id="rowheader_t1_{{i}}-category" 
77                             mat-cell *matCellDef="let element; let i = index;"> {{element.category}}
78                           </td>
79                         </ng-container>
80                     
81                         <!-- Application Name Column -->
82                         <ng-container matColumnDef="onapFunctions">
83                           <th id="col2" mat-header-cell *matHeaderCellDef> ONAP Functions </th>
84                           <td id="rowheader_t1_{{i}}-onapFunctions" 
85                             mat-cell *matCellDef="let element; let i=index;"> {{element.functions}} </td>
86                         </ng-container>
87
88                          <!-- Application Name Column -->
89                         <ng-container matColumnDef="onapApplications">
90                           <th id="col2" mat-header-cell *matHeaderCellDef> ONAP Applications </th>
91                           <td id="rowheader_t1_{{i}}-onapApplications" 
92                             mat-cell *matCellDef="let element; let i=index;"> 
93                             <a href="javascript:void(0)" (click)="showApplicationInfo(element.app_Id)">
94                               {{element.app_Name}} 
95                             </a>
96                           </td>
97                         </ng-container>
98                          
99                         <tr mat-header-row *matHeaderRowDef="displayedColumns"></tr>
100                         <tr mat-row *matRowDef="let row; columns: displayedColumns;"></tr>
101                     </table>                    
102                 </div>
103             </div><br />
104                 
105             <!-- Display applicationInfo panels -->
106             <div id="allAppInfo">
107                 <div class="w-onap-main-view-title"> All Applications</div>     <br />  
108                 <div class="contactUs-general-div">
109                   <div class="contact-us-table">
110                   <div class="c-onap-portal-abs-table default contactUs-table-ht">
111                     <div *ngFor="let rowData of appTable; index as i" class="contactUs-collapsible-panel">
112                         <div id="{{rowData.app_Id}}" class="contactUs-table-ht" class="contactUs-panel-header" (click)="showApplicationInfo(rowData.app_Id)">
113                             <span id="appId{{i}}" class="contactUs-table-spn">{{rowData.app_name}}</span>
114                             <span class="contactUs-table-title-sp">&nbsp;&nbsp;
115                                <span id="arrowup{{rowData.app_Id}}" [hidden]="showUp" title="Collapse app contact section" class="icon-controls-upPRIMARY">
116                                 <i class="fa fa-2x fa-angle-up" aria-hidden="true"></i>
117                                </span>&nbsp;&nbsp;
118                                
119                                <span id="arrowdown{{rowData.app_Id}}" [hidden]="showDown" title="Expand app contact section" class="icon-controls-down">
120                                 <i class="fa fa-2x fa-angle-down" aria-hidden="true"></i>
121                                </span>
122                             </span>
123                         </div>
124                         <div id="collapse{{rowData.app_Id}}" [hidden]="true" class="contactUs-collapsible-panel">
125                             <div class="contactUs-txt" [hidden]="rowData.contact_name || rowData.contact_email || rowData.url_Info || rowData.desc"> 
126                                 <span class="contactUs-collapsible-panel-spn"> 
127                                   No application information is available. Please use the links above to contact the ONAP Portal team. 
128                                 </span>
129                             </div>
130                             <div class="contactUs-txt" *ngIf="rowData.contact_name || rowData.contact_email || rowData.url_Info || rowData.desc"> 
131                                 <table class="contactUs-main-table">
132                                 <tr>
133                                   <td class="contactUs-panel-labels contactUs-main-panel-labels">Contact:</td>
134                                   <td class="contactUs-panel-labels contactUs-main-panel-value">{{rowData.contact_name}}</td>
135                                 </tr>
136                                 <tr>
137                                   <td class="contactUs-panel-labels">Email:</td>
138                                   <td class="contactUs-panel-labels"><a href="mailto:{{rowData.contact_email}}" target="_top">{{rowData.contact_email}}</a></td>
139                                 </tr>
140                                 <tr>
141                                   <td class="contactUs-panel-labels">Info URL:</td>
142                                   <td class="contactUs-panel-labels"><a href="{{rowData.url_Info}}" target="_blank">{{rowData.url_Info}}</a></td>
143                                 </tr>
144                                 <tr>
145                                   <td class="contactUs-panel-labels">Description:</td>
146                                   <td class="contactUs-panel-labels">{{rowData.desc}}</td>
147                                 </tr>
148                                 <tr>
149                                   <td class="contactUs-panel-labels">Get access:</td>
150                                   <td class="contactUs-panel-labels"><a href="javascript:void(0)" (click)="goGetAccess(rowData.app_name);">Click for application and role information</a></td>
151                                 </tr>
152                                 </table>
153                               </div>                            
154                         </div>
155                     </div>
156                   </div>
157                   </div>
158                 </div>
159               </div>
160           </div>
161       </div>
162   </div>
163 </div>