{% import 'macros_form.html' as form without context %} {% if textarea is defined %} {{ form.tablefield(label=checkbox_msg, extra=htmlstr(" wrap='virtual'%s") % checkbox_val, name=checkbox_key, title='', type='checkbox', value='1') }} {% endif %} {% if textarea is undefined %} {{ form.tablefield(label=checkbox_msg, extra=htmlstr(' %s') % checkbox_val, name=checkbox_key, title='', type='checkbox', value='1') }} {% endif %}