Files
grimmory/booklore-ui/src/app/book/components/shelf-edit-dialog/shelf-edit-dialog.component.html
T
2025-01-24 22:22:36 -07:00

23 lines
955 B
HTML

<div class="flex flex-col py-4 px-4 gap-6 h-96 w-96">
<div class="flex flex-col gap-10">
<div class="flex items-center gap-4">
<p>Shelf Name: </p>
<input type="text" pInputText [(ngModel)]="shelfName" placeholder="Enter shelf name..."/>
</div>
<div class="flex items-center gap-5">
<p>Shelf Icon:</p>
<div *ngIf="!selectedIcon">
<p-button label="Select Icon" icon="pi pi-search" (onClick)="openIconPicker()"></p-button>
</div>
<div *ngIf="selectedIcon">
<i [class]="selectedIcon" class="text-xl mr-3"></i>
<p-button icon="pi pi-times" (onClick)="clearSelectedIcon()" [rounded]="true" [text]="true" [outlined]="true" severity="danger"></p-button>
</div>
</div>
</div>
<div class="flex justify-end">
<p-button label="Save" icon="pi pi-check" (onClick)="save()"></p-button>
</div>
</div>
<app-icon-picker (iconSelected)="onIconSelected($event)"></app-icon-picker>