{% import 'macros_form.html' as form without context %}
{% call form.box(table=True) %}
{{ form.tablefield(label=trans('include_startpages'), checked=startpages is defined, name='%sinclude' % uid, rowspan=2, id='%sinclude___0' % uid, title=trans('include'), type='radio', value='startpages') }}
{{ form.tablefield(label=trans('include_allpages'), checked=allpages is defined, name='%sinclude' % uid, rowspan=0, id='%sinclude___1' % uid, type='radio', value='allpages') }}
{{ form.tablefield(label=trans('withcomments'), checked=withcomments is defined, name='%swithcomments' % uid, title='', type='checkbox') }}
{% endcall %}
{% if docs %}
{% if hint is defined %}
{% call form.msgbox() %}
{{ trans('hint_title_chooseDetails') }}
{{ trans('hint_text_chooseDetails') }}
{% endcall %}
{% endif %}
{% call form.box(table=True) %}
{% call form.tablefield(label=trans('contained_documents'), type='content') %}
{{ docs }}
{% endcall %}
{% endcall %}
{% endif %}