annotate 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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
26
555bfaa500ac Big update for view creation based on the column type.
Luka Sitas <sitas.luka.97@gmail.com>
parents:
diff changeset
1 <x-form.date
555bfaa500ac Big update for view creation based on the column type.
Luka Sitas <sitas.luka.97@gmail.com>
parents:
diff changeset
2 name="{{fieldName}}"
555bfaa500ac Big update for view creation based on the column type.
Luka Sitas <sitas.luka.97@gmail.com>
parents:
diff changeset
3 label="{{fieldLabel}}"
33
93adaad3ca65 fixing date fields when null
Luka Sitas <sitas.luka.97@gmail.com>
parents: 31
diff changeset
4 :value="request('{{fieldName}}', optional($item?->{{fieldName}} ?? null)->format('Y-m-d') ?? '')"
26
555bfaa500ac Big update for view creation based on the column type.
Luka Sitas <sitas.luka.97@gmail.com>
parents:
diff changeset
5 :required="{{required}}"
555bfaa500ac Big update for view creation based on the column type.
Luka Sitas <sitas.luka.97@gmail.com>
parents:
diff changeset
6 ></x-form.date>