{% import 'macros_form.html' as form without context %} {{ form.tablefield(label=label, checked=checked, name='%s%s' % (uid, input_name), id=id, type='checkbox', value=name) }}