70 lines
2.7 KiB
HTML
70 lines
2.7 KiB
HTML
<!--
|
|
Copyright since 2025 Mifos Initiative
|
|
|
|
This Source Code Form is subject to the terms of the Mozilla Public
|
|
License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
-->
|
|
|
|
<div class="container">
|
|
<mat-card>
|
|
<form [formGroup]="groupEditMeetingScheduleForm">
|
|
<mat-card-content>
|
|
<div class="layout-column">
|
|
<mat-form-field>
|
|
<mat-label>{{ 'labels.inputs.Existing Meeting Date' | translate }}</mat-label>
|
|
<mat-select formControlName="presentMeetingDate">
|
|
@for (date of nextMeetingDates; track date) {
|
|
<mat-option [value]="date">
|
|
{{ date | dateFormat }}
|
|
</mat-option>
|
|
}
|
|
</mat-select>
|
|
@if (groupEditMeetingScheduleForm.controls.presentMeetingDate.hasError('required')) {
|
|
<mat-error>
|
|
{{ 'labels.inputs.Existing Meeting Date' | translate }} {{ 'labels.commons.is' | translate }}
|
|
<strong>{{ 'labels.commons.required' | translate }}</strong>
|
|
</mat-error>
|
|
}
|
|
</mat-form-field>
|
|
|
|
<mat-form-field (click)="newMeetingDatePicker.open()">
|
|
<mat-label>{{ 'labels.inputs.Revised Meeting Date' | translate }}</mat-label>
|
|
<input
|
|
matInput
|
|
[min]="minDate"
|
|
[max]="maxDate"
|
|
[matDatepicker]="newMeetingDatePicker"
|
|
required
|
|
formControlName="newMeetingDate"
|
|
/>
|
|
<mat-datepicker-toggle matSuffix [for]="newMeetingDatePicker"></mat-datepicker-toggle>
|
|
<mat-datepicker #newMeetingDatePicker></mat-datepicker>
|
|
@if (groupEditMeetingScheduleForm.controls.newMeetingDate.hasError('required')) {
|
|
<mat-error>
|
|
{{ 'labels.inputs.Revised Meeting Date' | translate }} {{ 'labels.commons.is' | translate }}
|
|
<strong>{{ 'labels.commons.required' | translate }}</strong>
|
|
</mat-error>
|
|
}
|
|
</mat-form-field>
|
|
</div>
|
|
</mat-card-content>
|
|
|
|
<mat-card-actions class="layout-row align-center gap-5px responsive-column">
|
|
<button type="button" mat-raised-button [routerLink]="['../../']">
|
|
{{ 'labels.buttons.Cancel' | translate }}
|
|
</button>
|
|
<button
|
|
mat-raised-button
|
|
color="primary"
|
|
[disabled]="!groupEditMeetingScheduleForm.valid"
|
|
(click)="submit()"
|
|
*mifosxHasPermission="'CREATE_MEETING'"
|
|
>
|
|
{{ 'labels.buttons.Submit' | translate }}
|
|
</button>
|
|
</mat-card-actions>
|
|
</form>
|
|
</mat-card>
|
|
</div>
|