{% import 'macros_form.html' as form with context %} {% if answers is defined %} {% call form.fieldtable() %} {{ form.tablefield(label=trans('label_choice_answers'), errorid='answers', extra=' rows="4"', name='%sanswers' % uid, type='textarea', value=answers) }} {% endcall %} {% endif %} {% if other is defined %} {% call form.fieldtable() %} {% call form.tablefield(label='@inside', extra=htmlstr(' %s') % other, name='%sother' % uid, title=trans('label_choice_other'), type='checkbox') %} {% call form.fieldtable() %} {{ form.tablefield(label=trans('label_choice_other_label'), name='%sother_label' % uid, type='text', value=other_label) }} {{ other_nol }} {% endcall %} {% endcall %} {% endcall %} {% endif %} {% if explanation is defined %} {% call form.fieldtable() %} {% call form.tablefield(label='@inside', extra=htmlstr(' %s') % explanation, name='%sexplanation' % uid, title=trans('label_choice_explanation'), type='checkbox') %} {% call form.fieldtable() %} {{ form.tablefield(label=trans('label_choice_explanation_label'), name='%sexplanation_label' % uid, type='text', value=explanation_label) }} {{ explanation_nol }} {% endcall %} {% endcall %} {% endcall %} {% endif %}