2023-12-05 21:36:00 +01:00
|
|
|
<div class="col-md-12 d-flex justify-content-center" *ngIf="listingItems == null">
|
2023-07-17 17:04:39 +02:00
|
|
|
<span class="empty-list">{{'DMP-LISTING.EMPTY-LIST' | translate}}</span>
|
|
|
|
</div>
|
2023-12-05 21:36:00 +01:00
|
|
|
<div *ngIf="listingItems != null" id="results" #results>
|
2020-07-13 12:01:03 +02:00
|
|
|
<div class="d-flex flex-direction-row pt-4">
|
|
|
|
<!-- Sort by -->
|
|
|
|
<span class="d-flex align-items-center">{{'DMP-LISTING.SORT-BY' | translate}}:</span>
|
|
|
|
<mat-form-field appearance="outline" class="sort-form col-auto">
|
|
|
|
<mat-select placeholder="{{'CRITERIA.LIKE'| translate}}" [formControl]="formGroup.get('order')">
|
2024-03-12 17:47:57 +01:00
|
|
|
<mat-option [value]="order.UpdatedAt">{{enumUtils.toRecentActivityOrderString(order.UpdatedAt)}}</mat-option>
|
|
|
|
<mat-option [value]="order.Label">{{enumUtils.toRecentActivityOrderString(order.Label)}}</mat-option>
|
2020-07-13 12:01:03 +02:00
|
|
|
</mat-select>
|
|
|
|
</mat-form-field>
|
|
|
|
<!-- End of Sort by -->
|
|
|
|
<!-- Search Filter-->
|
2023-07-17 17:04:39 +02:00
|
|
|
<mat-form-field appearance="outline" class="search-form ml-auto col-auto pr-0" floatLabel="never">
|
2020-07-13 12:01:03 +02:00
|
|
|
<mat-icon matSuffix>search</mat-icon>
|
2023-07-17 17:04:39 +02:00
|
|
|
<input matInput placeholder="{{'CRITERIA.LIKE'| translate}}" name="likeCriteria" [formControl]="formGroup.get('like')">
|
2020-07-13 12:01:03 +02:00
|
|
|
<mat-error *ngIf="formGroup.get('like').hasError('backendError')">{{formGroup.get('like').getError('backendError').message}}</mat-error>
|
|
|
|
</mat-form-field>
|
|
|
|
<!-- End of Search Filter -->
|
|
|
|
</div>
|
2023-12-05 21:36:00 +01:00
|
|
|
<div *ngIf="listingItems && listingItems.length > 0 && page > 1" class="d-flex justify-content-center">
|
2023-04-25 16:55:31 +02:00
|
|
|
<button type="button" class="btn-load-more" (click)="loadNextOrPrevious(false)">{{'GENERAL.ACTIONS.LOAD-LESS' | translate}}</button>
|
|
|
|
</div>
|
2023-12-05 21:36:00 +01:00
|
|
|
<div *ngFor="let item of listingItems; let i = index">
|
2023-12-29 16:04:16 +01:00
|
|
|
<app-dmp-listing-item-component *ngIf="item.dmp" [showDivider]="i != (listingItems.length - 1)" [dmp]="item.dmp" [isPublic]="isPublic"></app-dmp-listing-item-component>
|
|
|
|
<app-description-listing-item-component *ngIf="item.description" [showDivider]="i != (listingItems.length - 1)" [description]="item.description" [isPublic]="isPublic" ></app-description-listing-item-component>
|
2020-07-10 15:52:35 +02:00
|
|
|
</div>
|
2023-12-05 21:36:00 +01:00
|
|
|
<div class="text-muted d-flex justify-content-center mt-5" *ngIf="!hasMoreActivity && listingItems && listingItems.length > 0">
|
2023-04-25 16:55:31 +02:00
|
|
|
{{'GENERAL.ACTIONS.NO-MORE-AVAILABLE' | translate}}
|
|
|
|
</div>
|
2023-12-05 21:36:00 +01:00
|
|
|
<div *ngIf="listingItems && listingItems.length > 0 && (listingItems.length >= startIndex + pageSize) && hasMoreActivity" class="d-flex justify-content-center">
|
2023-04-25 16:55:31 +02:00
|
|
|
<button type="button" class="btn-load-more" (click)="loadNextOrPrevious()">{{'GENERAL.ACTIONS.LOAD-MORE' | translate}}</button>
|
2020-07-01 17:25:16 +02:00
|
|
|
</div>
|
|
|
|
</div>
|