view src/Generator/View/snippets/input/date.stub @ 40:2cf26b593f4a ls_dev_2025_09 tip

better support for different column types
author Luka Sitas <sitas.luka.97@gmail.com>
date Thu, 16 Oct 2025 10:54:04 -0400
parents 93adaad3ca65
children
line wrap: on
line source

<x-form.date
	name="{{fieldName}}"
	label="{{fieldLabel}}"
	:value="request('{{fieldName}}', optional($item?->{{fieldName}} ?? null)->format('Y-m-d') ?? '')"
	:required="{{required}}"
></x-form.date>