<?xml version="1.0"?>
<t name="Survey: form with questions" t-name="survey.survey_fill_form_in_progress">
        <div class="o_survey_form_content_data d-none" t-att-data-question-time-limit-reached="answer.question_time_limit_reached" t-att-data-has-answered="bool(has_answered)" t-att-data-is-page-description="bool(question and question.is_page and not is_html_empty(question.description))" t-att-data-server-time="server_time" t-att-data-timer="timer_start" t-att-data-time-limit-minutes="time_limit_minutes"/>
        <t t-if="survey.questions_layout == 'one_page'">
            <t t-foreach="survey.question_and_page_ids" t-as="question">
                <h2 t-if="question.is_page" t-field="question.title" class="o_survey_title pb16 text-break"/>
                <div t-if="question.is_page" t-field="question.description" class="text-break"/>
                <t t-if="not question.is_page and question in answer.predefined_question_ids" t-call="survey.question_container"/>
            </t>

            <div class="text-center mt16 mb256">
                <button type="submit" value="finish" class="btn btn-primary disabled">Submit</button>
                    <span class="fw-bold text-muted ms-2 d-none d-md-inline">
                        <span id="enter-tooltip">or press Enter</span>
                    </span>
            </div>
        </t>

        <t t-if="survey.questions_layout == 'page_per_section'">
            <h2 t-field="page.title" class="o_survey_title pb16 text-break"/>
            <div t-field="page.description" class="oe_no_empty text-break"/>

            <input type="hidden" name="page_id" t-att-value="page.id"/>
            <t t-foreach="page.question_ids" t-as="question">
                <t t-if="question in answer.predefined_question_ids" t-call="survey.question_container"/>
            </t>

            <div class="row">
                <div class="col-12 text-center mt16">
                    <button type="submit" t-att-value="'next' if not survey_last else 'finish'" class="btn btn-primary disabled">
                        <t t-if="not survey_last">Continue</t>
                        <t t-else="">Submit</t>
                    </button>
                    <span class="fw-bold text-muted ms-2 d-none d-md-inline" id="enter-tooltip"> or press Enter</span>
                </div>
            </div>
        </t>

        <!-- If we have a choice question and less than 6 options, we want minimized display.
        Minimized display means we display the choices vertically (instead of optimized based on screen space).
        An exception is made for options with images, where we always want to optimize screen space.
        Numeric, date and datetime questions are also displayed "minimized", with a smaller screen width.-->
        <t t-set="minimized_display" t-value="survey.questions_layout == 'page_per_question' and len(question.suggested_answer_ids) &lt;= 5 and not any(suggestion.value_image for suggestion in question.suggested_answer_ids)"/>
        <div t-if="survey.questions_layout == 'page_per_question'" t-attf-class="o_survey_page_per_question o_survey_#{question.question_type} #{'o_survey_minimized_display' if minimized_display else ''}">
            <input type="hidden" name="question_id" t-att-value="question.id"/>
            <!-- User has already answered for this session -->
            <t t-if="answer.is_session_answer and (has_answered or answer.question_time_limit_reached)">
                <fieldset disabled="disabled">
                    <t t-set="survey_form_readonly" t-value="True"/>
                    <div class="mt-5">
                        <t t-call="survey.question_container"/>
                    </div>
                </fieldset>
                <div t-if="answer.question_time_limit_reached and not has_answered" class="fw-bold">Sorry, you have not been fast enough.</div>
                <div t-else="" class="fw-bold">We have registered your answer! Please wait for the host to go to the next question.</div>
            </t>
            <t t-elif="answer.is_session_answer and question.is_page and not is_html_empty(question.description)">
                <div class="fw-bold mt-5">Pay attention to the host screen until the next question.</div>
            </t>
            <t t-else="">
                <div class="mt-5">
                    <t t-call="survey.question_container"/>
                </div>

                <div class="row">
                    <div class="col-12 text-center mt16">
                        <button type="submit" t-att-value="'next' if not survey_last else 'finish'" class="btn btn-primary disabled">
                            <t t-if="answer.is_session_answer or survey_last">Submit</t>
                            <t t-else="">Continue</t>
                        </button>
                        <span class="fw-bold text-muted ms-2 d-none d-md-inline">
                            <span id="enter-tooltip">or press Enter</span>
                        </span>
                    </div>
                </div>
            </t>
        </div>
    </t>

    