mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-21 13:55:51 +00:00
disable past dates on accoes
This commit is contained in:
@@ -46,6 +46,7 @@
|
|||||||
placeholder="Choose a date*"
|
placeholder="Choose a date*"
|
||||||
[(ngModel)]="folder.DateBegin"
|
[(ngModel)]="folder.DateBegin"
|
||||||
[disabled]="disabled"
|
[disabled]="disabled"
|
||||||
|
[min]="currentDate"
|
||||||
>
|
>
|
||||||
<mat-datepicker-toggle id="new-inicio" matSuffix [for]="picker1"></mat-datepicker-toggle>
|
<mat-datepicker-toggle id="new-inicio" matSuffix [for]="picker1"></mat-datepicker-toggle>
|
||||||
<ngx-mat-datetime-picker #picker1
|
<ngx-mat-datetime-picker #picker1
|
||||||
@@ -82,6 +83,7 @@
|
|||||||
placeholder="Choose a date*"
|
placeholder="Choose a date*"
|
||||||
[(ngModel)]="folder.DateEnd"
|
[(ngModel)]="folder.DateEnd"
|
||||||
[disabled]="disabled"
|
[disabled]="disabled"
|
||||||
|
[min]="currentDate"
|
||||||
>
|
>
|
||||||
<mat-datepicker-toggle id="new-inicio" matSuffix [for]="picker2"></mat-datepicker-toggle>
|
<mat-datepicker-toggle id="new-inicio" matSuffix [for]="picker2"></mat-datepicker-toggle>
|
||||||
<ngx-mat-datetime-picker #picker2
|
<ngx-mat-datetime-picker #picker2
|
||||||
|
|||||||
@@ -25,6 +25,7 @@ export class NewActionPage implements OnInit {
|
|||||||
public stepHour = 1;
|
public stepHour = 1;
|
||||||
public stepMinute = 5;
|
public stepMinute = 5;
|
||||||
public stepSecond = 5;
|
public stepSecond = 5;
|
||||||
|
currentDate = new Date();
|
||||||
public endMinDate = new Date(new Date().getTime() + 15 * 60000);
|
public endMinDate = new Date(new Date().getTime() + 15 * 60000);
|
||||||
|
|
||||||
Form: FormGroup;
|
Form: FormGroup;
|
||||||
|
|||||||
Reference in New Issue
Block a user