forked from teocomi/BCFier
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
557 additions
and
77 deletions.
There are no files selected for viewing
141 changes: 83 additions & 58 deletions
141
src/ipa-bcfier-ui/src/app/components/bcf-file/bcf-file.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
57 changes: 57 additions & 0 deletions
57
src/ipa-bcfier-ui/src/app/components/issue-filters/issue-filters.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
<div class="container" [formGroup]="filtersForm"> | ||
<div class="container_filters"> | ||
<mat-form-field class="dark-theme"> | ||
<mat-label>Status</mat-label> | ||
<mat-select formControlName="status"> | ||
@for (status of (issueStatuses$ | async)?.values(); track status) { | ||
<mat-option [value]="status">{{ status }}</mat-option> | ||
} | ||
</mat-select> | ||
</mat-form-field> | ||
<mat-form-field class="dark-theme"> | ||
<mat-label>Type</mat-label> | ||
<mat-select formControlName="type"> | ||
@for (type of (issueTypes$ | async)?.values(); track type) { | ||
<mat-option [value]="type">{{ type }}</mat-option> | ||
} | ||
</mat-select> | ||
</mat-form-field> | ||
<mat-form-field class="dark-theme"> | ||
<mat-label>Responsible</mat-label> | ||
<mat-select formControlName="users"> | ||
@for (user of (users$ | async); track user) { | ||
<mat-option [value]="user">{{ user }}</mat-option> | ||
} | ||
</mat-select> | ||
</mat-form-field> | ||
<mat-form-field formGroupName="issueRange"> | ||
<mat-label>Due Date</mat-label> | ||
<mat-date-range-input [rangePicker]="picker"> | ||
<input matStartDate formControlName="start" placeholder="Start date" /> | ||
<input matEndDate formControlName="end" placeholder="End date" /> | ||
</mat-date-range-input> | ||
<mat-hint>MM/DD/YYYY – MM/DD/YYYY</mat-hint> | ||
<mat-datepicker-toggle | ||
matIconSuffix | ||
[for]="picker" | ||
></mat-datepicker-toggle> | ||
<mat-date-range-picker #picker></mat-date-range-picker> | ||
|
||
@if (filtersForm.get('issueRange.start')?.hasError('matStartDateInvalid')) | ||
{ | ||
<mat-error>Invalid start date</mat-error> | ||
} @if (filtersForm.get('issueRange.end')?.hasError('matEndDateInvalid')) { | ||
<mat-error>Invalid end date</mat-error> | ||
} | ||
</mat-form-field> | ||
</div> | ||
<button | ||
mat-flat-button | ||
color="primary" | ||
(click)="acceptFilters()" | ||
[disabled]="filtersForm.invalid" | ||
> | ||
Accept | ||
</button> | ||
<button mat-flat-button color="warn" (click)="clearFilters()">Clear</button> | ||
</div> |
17 changes: 17 additions & 0 deletions
17
src/ipa-bcfier-ui/src/app/components/issue-filters/issue-filters.component.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
.container { | ||
display: flex; | ||
justify-content: space-between; | ||
flex-direction: column; | ||
height: 99%; | ||
&_filters { | ||
flex: 1; | ||
} | ||
} | ||
|
||
mat-form-field { | ||
width: 100%; | ||
} | ||
|
||
button { | ||
margin: 5px; | ||
} |
Oops, something went wrong.