{% set tabindex = namespace(value=1000) %}
{% if header_html %} {{ header_html }} {% endif %}
page #{{ i }} of {{ last }}:   {{ relative_directory }}
{% set all_sections = image_file_paths|list + content_html_strings|list %} {% if all_sections|length > 1 %}
{% for _ in all_sections %} section{{ loop.index }} {% if not loop.last %},   {% endif %} {% endfor %}
{% endif %}
{% if metadata_json_dict|length > 0 %}
{% for key, value in metadata_json_dict.items() %}
{{ key }}: {{ value }}
{% if show_one_key_per_line %}
{% endif %} {% endfor %} {% endif %} {% if form_schema %}
{% set is_first_iter = namespace(value=True) %} {% for form_schema_row in form_schema %} {% if form_schema_row["type"] == "radio" %} {% for choice in form_schema_row['choices'] %}
{% set tabindex.value = tabindex.value + 1 %} {% endfor %} {% elif form_schema_row["type"] == "text" %}
{% set tabindex.value = tabindex.value + 1 %} {% endif %} {% set is_first_iter.value = False %} {% endfor %}
Save
{% endif %} {% set tabindex = namespace(value=1) %} {% set section_counter = namespace(value=1) %} {% for image_file_path in image_file_paths %}
{{ image_file_path }} {% if section_counter.value > 1 %} [go to top] {% endif %}
{% set tabindex.value = tabindex.value + 1 %} {% set section_counter.value = section_counter.value + 1 %} {% endfor %} {% for name, content_html_string in content_html_strings %}
{{ name }} {% if section_counter.value > 1 %} [go to top] {% endif %}
{{ content_html_string }}
{% set section_counter.value = section_counter.value + 1 %} {% endfor %}