{% set form = _args.form %}
{% set locked = _args.locked ?? false %}
{% set show = _args.show ?? true %}
{% form_theme form '@ui2022/schoolnow/forms/themes/default.html.twig' %}
<div class="blocklist__cell blocklist_checkmark{% if not show %} invisible{% endif %}">
<div class="flex__wrap--center">
<span class="custom-control custom-checkbox">
{{ form_widget(form, {
attr: {
disabled: locked,
class: 'custom-control-input',
'data-channel': form.vars.name,
},
}) }}
{{ form_label(form, ' ', {
label_attr: {
class: 'custom-control-label',
},
}) }}
</span>
</div>
</div>