{%- set tab_title = cfg.page_title %} {%- if cfg.logo_image_url or cfg.logo_title_row_1 or cfg.logo_title_row_2 %} {%- set page_title %} {% if cfg.logo_image_url %}{% endif %} {% if cfg.logo_title_row_1 %}{{ cfg.logo_title_row_1 }}{% endif %} {{ cfg.logo_title_row_2 or cfg.page_heading }} {%- endset %} {%- else %} {%- set page_title = cfg.page_title %} {%- endif %} {%- extends 'flask_user/public_base.html' %} {%- block content %} {% macro toggleable_action_icon(icon_class, label, target_id, danger=False, tooltip=None) %} {{ label }} {% endmacro %} {% macro toggleable_action_form(route_name, filename, session_key, placeholder, target_id, csrf_token) %} {% endmacro %} {% if cfg.logo_url %} {% endif %}

{% if active_tab == 'answer_sets' %}{{ cfg.answer_sets_title }}{% elif active_tab == 'search' %}{{ word('Search {heading}').format(heading=cfg.page_heading) }}{% else %}{{ cfg.page_heading }}{% endif %} {{ cfg.new_form_label }}

{% if cfg.page_intro and active_tab == 'in_progress' %}

{{ cfg.page_intro }}

{% endif %} {% if active_tab == 'answer_sets' %}

{{ word('View, delete, or rename your answer sets below. Start a new form to reuse an answer set.') }}

{% endif %} {% if active_tab == 'search' %}

{{ word('Use a keyword to find results that match the title or description of a form.') }}

{% endif %} {% if active_tab == 'search' and not search_submitted %}

{{ word('Choose a form title or enter a search term to find saved forms.') }}

{% elif not sessions %}

{{ word('No saved forms yet.') }}

{% else %}
{% for s in sessions %} {% endfor %}
{{ word('Title') }} {{ word('Date modified') }} {{ word('Progress') }} {{ word('Actions') }}
{% if active_tab == 'answer_sets' %} {{ s.title }} {% else %} {{ s.title }} {% endif %} {% if s.subtitle %}
{{ s.subtitle }}{% endif %}
{{ s.date_str }}
{{ s.time_str }}
{{ s.progress_html }}
{{ toggleable_action_icon("fa-solid fa-tag", word('Rename'), "rename-" ~ s.session_key) }} {% if cfg.enable_answer_sets and active_tab != 'answer_sets' %} {{ toggleable_action_icon("fa-regular fa-clone", word('Copy to answer set'), "copy-" ~ s.session_key, tooltip=word('Saves these answers so you can reuse them to start a different form later.')) }} {% endif %}
{{ toggleable_action_form('al_interview_list_rename', s.filename, s.session_key, word('New name'), 'rename-' ~ s.session_key, csrf_token) }} {% if cfg.enable_answer_sets and active_tab != 'answer_sets' %} {{ toggleable_action_form('al_interview_list_copy', s.filename, s.session_key, word('Answer set name'), 'copy-' ~ s.session_key, csrf_token) }} {% endif %}
{% endif %} {% if active_tab == 'in_progress' %}
{% endif %} {%- endblock %}