summaryrefslogtreecommitdiffstats
path: root/portal-FE-os/src/app/pages/application-onboarding/application-onboarding.component.html
blob: 477224719d0490b97272ccf5ec7a8f23f6e5c7c7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
<!--
  ============LICENSE_START==========================================
  ONAP Portal
  ===================================================================
  Copyright (C) 2019 AT&T Intellectual Property. All rights reserved.
  ===================================================================
 
  Unless otherwise specified, all software contained herein is licensed
  under the Apache License, Version 2.0 (the "License");
  you may not use this software except in compliance with the License.
  You may obtain a copy of the License at
 
              http://www.apache.org/licenses/LICENSE-2.0
 
  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
 
  Unless otherwise specified, all documentation contained herein is licensed
  under the Creative Commons License, Attribution 4.0 Intl. (the "License");
  you may not use this documentation except in compliance with the License.
  You may obtain a copy of the License at
 
              https://creativecommons.org/licenses/by/4.0/
 
  Unless required by applicable law or agreed to in writing, documentation
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
 
  ============LICENSE_END============================================
   
  -->
  
<div class="container">
    <div class="w-ecomp-main-container">
        <div class="applications-page-main" id="page-content">
            <div id="microservice-onboarding-title" class="w-ecomp-main-view-title">
                <h1 class="heading-page"> Application Onboarding</h1>
            </div>   
            
            <mat-form-field>
                <input matInput type="text" (keyup)="applyFilter($event.target.value)" placeholder="Search in entire table">
            </mat-form-field>

            <button type="button" style="float: right;" class="btn btn-primary" (click)="openAddApplicationModal('', 'add')">
            <i class="icon ion-md-person-add"></i>&nbsp;Add App
            </button>
          
            <div class="apps-table">
                <span class="ecomp-spinner" *ngIf="showEcompSpinner"></span>
                <!-- Applications Table goes here-->
                <table mat-table [dataSource]="dataSource" matSort>
                    <!-- Thumbnail Column -->
                    <ng-container matColumnDef="thumbnail">
                        <th id="col1" mat-header-cell *matHeaderCellDef> Thumbnail  </th>
                        <td (click)="openAddApplicationModal(element, 'edit')" id="rowheader_t1_{{i}}-thumbnail" 
                            mat-cell *matCellDef="let element; let i = index;">
                            <div><img class="small-thumbnail" src={{element.imageLink}}></div>
                        </td>
                    </ng-container>  
                    
                    <!-- Application Name Column -->
                    <ng-container matColumnDef="applicationName">
                        <th id="col2" mat-header-cell *matHeaderCellDef> Application Name </th>
                        <td (click)="openAddApplicationModal(element, 'edit')" id="rowheader_t1_{{i}}-applicationName" 
                            mat-cell *matCellDef="let element; let i=index;"> {{element.appName}} </td>
                    </ng-container>

                    <!-- Active Column -->
                    <ng-container matColumnDef="active">
                        <th id="col2" mat-header-cell *matHeaderCellDef> Active </th>
                        <td (click)="openAddApplicationModal(element, 'edit')" id="rowheader_t1_{{i}}-active" 
                            mat-cell *matCellDef="let element; let i=index;"> {{(element.isEnabled) ? 'yes' : 'no'}} </td>
                    </ng-container>

                    <!-- Integration Type Column -->
                    <ng-container matColumnDef="integrationType">
                        <th id="col2" mat-header-cell *matHeaderCellDef> Integration Type </th>
                        <td (click)="openAddApplicationModal(element, 'edit')" id="rowheader_t1_{{i}}-integrationType" 
                            mat-cell *matCellDef="let element; let i=index;"> {{(element.applicationType == 2) ? 'link' : 'standard'}} </td>
                    </ng-container>
                    
                     <!-- Mode Of Integration Type Column -->
                     <ng-container matColumnDef="modeOfIntegration">
                        <th id="col2" mat-header-cell *matHeaderCellDef> Mode Of Integration </th>
                        <td (click)="openAddApplicationModal(element, 'edit')" id="rowheader_t1_{{i}}-modeOfIntegration" 
                            mat-cell *matCellDef="let element; let i=index;"> {{element.modeOfIntegration}} </td>
                    </ng-container>

                    <!-- Guest Access Column-->
                    <ng-container matColumnDef="guestAccess">
                        <th id="col2" mat-header-cell *matHeaderCellDef> Guest Access </th>
                        <td (click)="openAddApplicationModal(element, 'edit')" id="rowheader_t1_{{i}}-guestAccess" 
                            mat-cell *matCellDef="let element; let i=index;">{{(element.isOpen) ? 'yes' : 'no'}} </td>
                    </ng-container>

                    <!-- url  column -->
                    <ng-container matColumnDef="landingPage">
                        <th id="col2" mat-header-cell *matHeaderCellDef> Landing Page </th>
                        <td (click)="openAddApplicationModal(element, 'edit')" id="rowheader_t1_{{i}}-url" 
                            mat-cell *matCellDef="let element; let i=index;">{{element.landingPage}} </td>
                    </ng-container>

                        <!-- rest url  column -->
                        <ng-container matColumnDef="restURL">
                        <th id="col2" mat-header-cell *matHeaderCellDef> REST Url </th>
                        <td (click)="openAddApplicationModal(element, 'edit')" id="rowheader_t1_{{i}}-restURL" 
                            mat-cell *matCellDef="let element; let i=index;">{{element.restUrl}} </td>
                    </ng-container>

                    <!-- communicationKey column -->
                    <ng-container matColumnDef="communicationKey">
                        <th id="col2" mat-header-cell *matHeaderCellDef> Communication Key </th>
                        <td (click)="openAddApplicationModal(element, 'edit')" id="rowheader_t1_{{i}}-communicationKey" 
                            mat-cell *matCellDef="let element; let i=index;">{{element.uebKey}} </td>
                    </ng-container>

                    <!-- applicationNamespace column -->
                    <ng-container matColumnDef="applicationNamespace">
                        <th id="col2" mat-header-cell *matHeaderCellDef> Application Namespace </th>
                        <td (click)="openAddApplicationModal(element, 'edit')" id="rowheader_t1_{{i}}-applicationNamespace" 
                            mat-cell *matCellDef="let element; let i=index;">{{element.nameSpace}} </td>
                    </ng-container>

                    <!-- centralAuthAccess column -->
                    <ng-container matColumnDef="centralAuthAccess">
                        <th id="col2" mat-header-cell *matHeaderCellDef> Central Auth Access </th>
                        <td (click)="openAddApplicationModal(element, 'edit')" id="rowheader_t1_{{i}}-centralAuthAccess" 
                            mat-cell *matCellDef="let element; let i=index;">{{(element.rolesInAAF) ? 'yes' : 'no'}} </td>
                    </ng-container>

                    <!-- Delete Column -->
                    <ng-container matColumnDef="delete">
                        <th id="col4" mat-header-cell *matHeaderCellDef> Delete </th>
                        <td id="rowheader_t1_{{i}}" mat-cell *matCellDef="let element; let i=index;">
                        <span class="icon-trash" id="{{i}}-button-portal-admin-remove" (click)="deleteApplication(element)">
                            <i class="icon ion-md-trash"></i>
                        </span>
                        </td>
                    </ng-container>
                    <tr mat-header-row *matHeaderRowDef="displayedColumns"></tr>
                    <tr mat-row *matRowDef="let row; columns: displayedColumns;"></tr>
                </table>
                <mat-paginator [pageSizeOptions]="[10, 20]" showFirstLastButtons></mat-paginator>
              </div>
          </div>
      </div>
  </div>