diff src/Generator/View/snippets/input/select.stub @ 26:555bfaa500ac codex

Big update for view creation based on the column type.
author Luka Sitas <sitas.luka.97@gmail.com>
date Thu, 15 May 2025 21:50:38 -0400
parents
children f88d2d5dee30
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/Generator/View/snippets/input/select.stub	Thu May 15 21:50:38 2025 -0400
@@ -0,0 +1,7 @@
+<x-form.select
+	name="{{fieldName}}"
+	label="{{fieldLabel}}"
+	:options="{{options}}"
+	:value="old('{{fieldName}}', $item?->{{fieldName}} ?? '')"
+	:required="{{required}}"
+></x-form.select>