Skip to content
Open
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/app/shared/dialogs/dialogs-form.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -67,16 +67,16 @@ <h1 mat-dialog-title><span><mat-icon>create</mat-icon>{{title}}</span></h1>
</ng-container>

<!-- Date Select -->
<mat-form-field *ngIf="field.type === 'date'" class="full-width">
<mat-form-field *ngIf="field.type === 'date'" class="full-width" (click)="dp.open()">
<input matInput [matDatepicker]="dp" placeholder="{{field.placeholder}}" [formControl]="modalForm.controls[field.name]" required="{{field.required}}" [min]="field.min" [max]="field.max">
<mat-datepicker-toggle matSuffix [for]="dp"></mat-datepicker-toggle>
<mat-datepicker #dp></mat-datepicker>
<mat-error><planet-form-error-messages [control]="modalForm.controls[field.name]"></planet-form-error-messages></mat-error>
</mat-form-field>

<!-- Time Select -->
<mat-form-field *ngIf="field.type === 'time'" class="full-width">
<input matInput type="time" [placeholder]="field.placeholder" [formControl]="modalForm.controls[field.name]" [required]="field.required">
<mat-form-field *ngIf="field.type === 'time'" class="full-width" (click)="timeInput.focus()">
<input #timeInput matInput type="time" [placeholder]="field.placeholder" [formControl]="modalForm.controls[field.name]" [required]="field.required">
<mat-error><planet-form-error-messages [control]="modalForm.controls[field.name]"></planet-form-error-messages></mat-error>
</mat-form-field>

Expand Down
Loading