⬆️ Migration

This commit is contained in:
itskovacs 2025-10-06 18:15:18 +02:00
parent e80cff4d0f
commit e11ff037d5
2 changed files with 6 additions and 19 deletions

View File

@ -13,7 +13,7 @@
</p-floatlabel> </p-floatlabel>
} @else { } @else {
<p-multiselect [options]="days" optionValue="id" optionLabel="label" formControlName="day_id" placeholder="Days" <p-multiselect [options]="days" optionValue="id" optionLabel="label" formControlName="day_id" placeholder="Days"
[filter]="false" [showToggleAll]="false" display="chip" styleClass="flex items-center" scrollHeight="320px" [filter]="false" [showToggleAll]="false" display="chip" class="flex items-center" scrollHeight="320px"
appendTo="body" selectedItemsLabel="{0} days selected" [filter]="true" fluid> appendTo="body" selectedItemsLabel="{0} days selected" [filter]="true" fluid>
<ng-template let-day #item> <ng-template let-day #item>
<div class="whitespace-normal">{{ day.label }}</div> <div class="whitespace-normal">{{ day.label }}</div>
@ -22,7 +22,7 @@
} }
<p-floatlabel variant="in" class="w-full"> <p-floatlabel variant="in" class="w-full">
<p-inputmask id="time" formControlName="time" mask="99?:99" fluid styleClass="w-full" /> <p-inputmask id="time" formControlName="time" mask="99?:99" fluid class="w-full" />
<label for="time">Time (HH, HH:MM)</label> <label for="time">Time (HH, HH:MM)</label>
</p-floatlabel> </p-floatlabel>

View File

@ -1,24 +1,11 @@
<div class="flex items-center gap-4"> <div class="flex items-center gap-4">
<div class="p-2"> <div class="p-2">
<span <span class="pi pi-exclamation-triangle text-4xl text-red-400 bg-gray-50 p-4 rounded-full"></span>
class="pi pi-exclamation-triangle text-4xl text-red-400 bg-gray-50 p-4 rounded-full"
></span>
</div> </div>
<span>{{ msg }}</span> <span>{{ msg }}</span>
</div> </div>
<div class="flex justify-center gap-4 mt-4"> <div class="flex justify-center gap-4 mt-4">
<p-button <p-button label="Cancel" icon="pi pi-times" severity="success" (click)="confirm()" />
label="Cancel" <p-button label="Confirm" icon="pi pi-check" variant="outlined" severity="danger" (click)="confirm(true)" />
icon="pi pi-times" </div>
severity="success"
(click)="confirm()"
/>
<p-button
label="Confirm"
icon="pi pi-check"
variant="outlined"
severity="danger"
(click)="confirm(true)"
/>
</div>