Files
swiftadmin/extend/system/form/checkbox.html
2022-08-19 19:48:37 +08:00

10 lines
391 B
HTML

<volist name="{%varlist%}" id="vo">
<input type="checkbox" {%attributes%} value="{$vo.value}" title="{$vo.title}"
<if (isset($data['id']) && $data['id']) >
<in name="$vo.value" value="$data.{%field%}">checked</in>
<else/>
<eq name="$vo.checked" value="true">checked</eq>
</if>
>
</volist>