|
|
|
@ -45,8 +45,12 @@ |
|
|
|
</mat-form-field> |
|
|
|
</div> |
|
|
|
|
|
|
|
<div> |
|
|
|
<mat-form-field appearance="outline" class="w-100"> |
|
|
|
<div class="mb-3"> |
|
|
|
<mat-form-field |
|
|
|
appearance="outline" |
|
|
|
class="w-100" |
|
|
|
[class.without-hint]="!showExpiresAtErrorMessage" |
|
|
|
> |
|
|
|
<mat-label i18n>Expiration Date</mat-label> |
|
|
|
<input |
|
|
|
formControlName="expiresAt" |
|
|
|
@ -62,7 +66,7 @@ |
|
|
|
/> |
|
|
|
</mat-datepicker-toggle> |
|
|
|
<mat-datepicker #expiresAt /> |
|
|
|
@if (accessForm.get('expiresAt')?.invalid) { |
|
|
|
@if (showExpiresAtErrorMessage) { |
|
|
|
<mat-error i18n>Please select a date in the future.</mat-error> |
|
|
|
} |
|
|
|
</mat-form-field> |
|
|
|
|