<div class="container-fluid py-5">
        <div class="row">
            <div class="col-12">
                <div class="jumbotron jumbotron-small jumbotron-list-container bg-light mat-elevation-z5 mb-0">
                    <div class="jumbotron-heading">
                        <div>
                            <h2 class="shadowed">Import NSDs</h2>
                            <p class="shadowed">Create a Service Specification from a NSD. The NSD is retrieved from NSD/VNF catalog.</p>
                        </div>
                    </div>
    
                    <div class="filter-container pt-3 px-3 row">
                        <!-- <input class="form-control " (keyup)="applyFilter($event.target.value)" placeholder="Apply Filter..."> -->
                        <mat-form-field appearance="" class="white-background col-12">
                            <mat-label>Apply Filter...</mat-label>
                            <input matInput (keyup)="applyFilter($event.target.value)">
                        </mat-form-field>
                    </div>
    
                    <div class="table-responsive mat-elevation-z1" [@fadeIn]>
    
                        <table mat-table [dataSource]="dataSource" matSort class="table table-generic">
    
                            <ng-container matColumnDef="name">
                                <th mat-header-cell *matHeaderCellDef mat-sort-header> Name </th>
                                <td mat-cell *matCellDef="let element"> <b>{{element.name}}</b> </td>
                            </ng-container>
                            <ng-container matColumnDef="owner">
                                <th mat-header-cell *matHeaderCellDef mat-sort-header> Owner </th>
                                <td mat-cell *matCellDef="let element"> {{element.owner?.username}} </td>
                            </ng-container>
    
                            <ng-container matColumnDef="short_description">
                                <th mat-header-cell *matHeaderCellDef mat-sort-header> Teaser </th>
                                <td mat-cell *matCellDef="let element"> 
                                    <span *ngIf="element.shortDescription && element.shortDescription.length <= 49">{{element.shortDescription}}</span> 
                                    <span *ngIf="element.shortDescription && element.shortDescription.length > 49" [matTooltip]="element.shortDescription">{{element.shortDescription | slice:0:49}}...</span>      
                                </td>
                            </ng-container>


                            <ng-container matColumnDef="onboarded">
                                <th mat-header-cell *matHeaderCellDef> Onboarded </th>
                                <td mat-cell *matCellDef="let element"> 
                                    <div class="my-1" *ngFor="let onboardingDescriptor of element.experimentOnBoardDescriptors">{{onboardingDescriptor.obMANOprovider.name}}</div>
                                </td>
                            </ng-container>


                            

                            <ng-container matColumnDef="packaging_format">
                                <th mat-header-cell *matHeaderCellDef mat-sort-header> Packaging Format </th>
                                <td mat-cell *matCellDef="let element"> {{element.packagingFormat}} </td>
                            </ng-container>
    
                            <ng-container matColumnDef="actions">
                                <th mat-header-cell *matHeaderCellDef>Actions</th>
                                <td mat-cell *matCellDef="let element">
                                    <button class="btn btn-primary btn-sm mr-1" (click)="openImportDialog(element)"><i class="fas fa-file-import"></i></button>
                                </td>
                            </ng-container>
    
                            <tr mat-header-row *matHeaderRowDef="displayedColumns"></tr>
                            <tr mat-row *matRowDef="let row; columns: displayedColumns;"></tr>
                        </table>
    
                        <mat-paginator [pageSizeOptions]="[20, 50, 100]" showFirstLastButtons></mat-paginator>
                    </div>
                </div>
            </div>
        </div>
    </div>