pojednostavljeni edit form-ovi

This commit is contained in:
2024-01-04 11:31:35 +01:00
parent b653ce40bc
commit b168e6086f
4 changed files with 8 additions and 25 deletions

View File

@@ -1,3 +1,4 @@
import { TrashIcon } from "@heroicons/react/24/outline";
import { FC } from "react";
export interface LocationEditFormProps {
@@ -8,6 +9,7 @@ export const LocationEditForm:FC<LocationEditFormProps> = () =>
<div className="card card-compact card-bordered max-w-sm bg-base-100 shadow-s my-1">
<div className="card-body">
<form>
<TrashIcon className="h-[1em] w-[1em] absolute cursor-pointer text-error bottom-5 right-4 text-2xl" />
<input type="text" placeholder="Naziv lokacije" className="input input-bordered w-full" defaultValue="Budakova" />
<textarea className="textarea textarea-bordered my-1 w-full max-w-sm block" placeholder="Opis" value="Stan u Budakovoj"></textarea>
<button className="btn btn-primary">Spremi</button>