36 lines
1.2 KiB
HTML
36 lines
1.2 KiB
HTML
<shared-light-bottomsheet [(visible)]="visible" header="انتخاب فصل">
|
|
<div class="mt-1">
|
|
<div class="flex flex-col gap-4">
|
|
<uikit-label name="rapidInvoice"> انتخاب سال</uikit-label>
|
|
<select
|
|
[(ngModel)]="selectedYearDraft"
|
|
class="w-full rounded-xl border border-slate-200 bg-white px-3 py-2 text-slate-700 outline-none">
|
|
@for (yearItem of years; track yearItem.value) {
|
|
<option [value]="yearItem.value">{{ yearItem.year }}</option>
|
|
}
|
|
</select>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="mt-4 grid grid-cols-2 gap-2">
|
|
@for (seasonItem of seasons; track seasonItem.key) {
|
|
<button
|
|
pButton
|
|
type="button"
|
|
[label]="seasonItem.label"
|
|
[severity]="seasonItem.severity"
|
|
outlined
|
|
(click)="selectedSeasonDraft.set(seasonItem.key)"></button>
|
|
}
|
|
<!-- [disabled]="selectedYear <= selectedYearDraft() && selectedSeason <= selectedSeasonDraft()" -->
|
|
</div>
|
|
|
|
<div class="mt-4">
|
|
<app-form-footer-actions
|
|
submitLabel="تایید"
|
|
cancelLabel="انصراف"
|
|
(onCancel)="visibleChange.emit(false)"
|
|
(onSubmit)="onSubmit()" />
|
|
</div>
|
|
</shared-light-bottomsheet>
|