view src/Generator/View/snippets/input/checkbox.stub @ 30:21439512ba69 codex

Fixing issue with conflict of input variables on the request generator.
author Luka Sitas <sitas.luka.97@gmail.com>
date Wed, 18 Jun 2025 09:04:59 -0400
parents f88d2d5dee30
children
line wrap: on
line source

<x-form.checkbox
	name="{{fieldName}}"
	label="{{fieldLabel}}"
	:checked="request('{{fieldName}}', $item?->{{fieldName}} ?? 'false')"
></x-form.checkbox>