ui fixes on dmp-blueprints>filters

This commit is contained in:
Sofia Papacharalampous 2024-04-12 18:30:11 +03:00
parent b570a6f0fa
commit e9596a8cc1
2 changed files with 33 additions and 15 deletions

View File

@ -7,32 +7,46 @@
<mat-menu #filterMenu> <mat-menu #filterMenu>
<div class="p-3" (click)="$event?.stopPropagation?.()"> <div class="container-fluid" (click)="$event?.stopPropagation?.()">
<div class="search-listing-filters-container"> <div class="row justify-content-between">
<div class="d-flex align-items-center justify-content-between"> <div class="col-auto mt-2">
<h4>{{'DMP-BLUEPRINT-LISTING.FILTER.TITLE' | translate}}</h4> <h4>{{'DMP-BLUEPRINT-LISTING.FILTER.TITLE' | translate}}</h4>
</div>
<div class="col-auto">
<button color="accent" mat-button (click)="clearFilters()"> <button color="accent" mat-button (click)="clearFilters()">
{{'COMMONS.LISTING-COMPONENT.CLEAR-ALL-FILTERS' | translate}} {{'COMMONS.LISTING-COMPONENT.CLEAR-ALL-FILTERS' | translate}}
</button> </button>
</div> </div>
</div>
<mat-slide-toggle labelPosition="before" [(ngModel)]="internalFilters.isActive"> <div class="row mt-3">
{{'DMP-BLUEPRINT-LISTING.FILTER.IS-ACTIVE' | translate}} <div class="col-12">
</mat-slide-toggle> <section class="w-100">
<mat-slide-toggle [(ngModel)]="internalFilters.isActive" labelPosition="before">
{{'DMP-BLUEPRINT-LISTING.FILTER.IS-ACTIVE' | translate}}</mat-slide-toggle>
</section>
</div>
</div>
<div> <div class="row mt-3">
<mat-label>{{'DMP-BLUEPRINT-LISTING.FILTER.STATUS' | translate}} <div class="col-12">
<mat-form-field class="w-100">
<mat-label>{{'DMP-BLUEPRINT-LISTING.FILTER.STATUS' | translate}}</mat-label>
<mat-select multiple [(ngModel)]="internalFilters.statuses"> <mat-select multiple [(ngModel)]="internalFilters.statuses">
<mat-option *ngFor="let blueprintStatus of dmpBlueprintStatusEnumValues" [value]="blueprintStatus">{{enumUtils.toDmpBlueprintStatusString(blueprintStatus)}}</mat-option> <mat-option *ngFor="let blueprintStatus of dmpBlueprintStatusEnumValues" [value]="blueprintStatus">{{enumUtils.toDmpBlueprintStatusString(blueprintStatus)}}</mat-option>
</mat-select> </mat-select>
</mat-label> </mat-form-field>
</div>
</div> </div>
<div class="d-flex justify-content-end align-items-center mt-4 gap-1-rem"> <div class="row justify-content-end align-items-center mt-4 gap-1-rem">
<button mat-stroked-button color="primary" (click)="filterMenuTrigger?.closeMenu()"> <div class="col-auto">
<button class="normal-btn-light-sm" (click)="filterMenuTrigger?.closeMenu()">
{{'DMP-BLUEPRINT-LISTING.FILTER.CANCEL' | translate}} {{'DMP-BLUEPRINT-LISTING.FILTER.CANCEL' | translate}}
</button> </button>
<button mat-raised-button color="primary" (click)="filterMenuTrigger.closeMenu(); applyFilters();"> </div>
<div class="col-auto">
<button class="normal-btn-sm" (click)="filterMenuTrigger.closeMenu(); applyFilters();">
{{'DMP-BLUEPRINT-LISTING.FILTER.APPLY-FILTERS' | translate}} {{'DMP-BLUEPRINT-LISTING.FILTER.APPLY-FILTERS' | translate}}
</button> </button>
</div> </div>

View File

@ -22,4 +22,8 @@
// } // }
} }
::ng-deep .mdc-form-field {
label {
margin: 0;
}
}