annotate 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
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.select
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}}"
555bfaa500ac Big update for view creation based on the column type.
Luka Sitas <sitas.luka.97@gmail.com>
parents:
diff changeset
4 :options="{{options}}"
555bfaa500ac Big update for view creation based on the column type.
Luka Sitas <sitas.luka.97@gmail.com>
parents:
diff changeset
5 :value="old('{{fieldName}}', $item?->{{fieldName}} ?? '')"
555bfaa500ac Big update for view creation based on the column type.
Luka Sitas <sitas.luka.97@gmail.com>
parents:
diff changeset
6 :required="{{required}}"
555bfaa500ac Big update for view creation based on the column type.
Luka Sitas <sitas.luka.97@gmail.com>
parents:
diff changeset
7 ></x-form.select>