Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
illfixit committed Sep 25, 2024
1 parent 4f7ca3a commit d5e3b18
Showing 1 changed file with 18 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,15 +1,25 @@
<h1 mat-dialog-title>Timespan Restriction</h1>
<h1 mat-dialog-title>
{{ 'policy_expression.timespan_restriction_title' | translate }}
</h1>
<mat-dialog-content>
<div class="flex flex-col">
<!-- Date Range -->
<mat-form-field
*ngIf="group.controls.range; let ctrl"
class="mt-[20px]"
color="accent">
<mat-label>Date Range</mat-label>
<mat-label>{{
'policy_definition_page.date_range' | translate
}}</mat-label>
<mat-date-range-input required [formGroup]="ctrl" [rangePicker]="picker">
<input matStartDate formControlName="start" placeholder="Start date" />
<input matEndDate formControlName="end" placeholder="End date" />
<input
matStartDate
formControlName="start"
placeholder="{{ 'general.start_date' | translate }}" />
<input
matEndDate
formControlName="end"
placeholder="{{ 'general.end_date' | translate }}" />
</mat-date-range-input>
<mat-hint>DD/MM/YYYY – DD/MM/YYYY</mat-hint>
<mat-datepicker-toggle matSuffix [for]="picker"></mat-datepicker-toggle>
Expand All @@ -22,13 +32,15 @@ <h1 mat-dialog-title>Timespan Restriction</h1>
</mat-dialog-content>

<mat-dialog-actions class="flex flex-row justify-end">
<button mat-button [mat-dialog-close]="null">Cancel</button>
<button mat-button [mat-dialog-close]="null">
{{ 'general.cancel' | translate }}
</button>

<button
color="primary"
mat-raised-button
[disabled]="!group.valid"
(click)="onAdd()">
Add
{{ 'general.add' | translate }}
</button>
</mat-dialog-actions>

0 comments on commit d5e3b18

Please sign in to comment.