<?xml version="1.0"?>
<t name="Question: result statistics" t-name="survey.survey_page_statistics_question">
        <t t-set="comment_lines" t-value="question_data['comment_line_ids']"/>
        <t t-set="graph_data" t-value="question_data['graph_data']"/>
        <t t-set="table_data" t-value="question_data['table_data']"/>

        <div class="o_survey_results_question pb-5 border-bottom">
        <div class="row mb-3">
            <div class="col-sm-6">
                <h5 t-field="question.title" class="me-3"/>
            </div>
            <!-- Question info -->
            <div class="col-sm-6 text-sm-end">
                <span class="badge text-bg-info ms-0 ms-sm-1 me-1 me-sm-0" t-field="question.question_type"/>
                <t t-if="question.question_type == 'matrix'">
                    <span class="badge text-bg-info ms-0 ms-sm-1 me-1 me-sm-0" t-field="question.matrix_subtype"/>
                </t>
                <!-- Scoring info -->
                <t t-if="question.question_type in ['numerical_box', 'date', 'datetime']">
                    <span class="badge text-bg-success ms-0 ms-sm-1 me-1 me-sm-0"><span t-esc="question_data['right_inputs_count']" class="me-1"/>Correct</span>
                    <t t-if="question.question_type in ['simple_choice', 'multiple_choice']">
                        <span class="badge text-bg-warning ms-0 ms-sm-1 me-1 me-sm-0" t-if="question.question_type == 'multiple_choice'">
                            <span t-esc="question_data['partial_inputs_count']" class="me-1"/>Partial
                        </span>
                    </t>
                </t>
                <!-- Inputs info -->
                <span class="badge text-bg-info ms-0 ms-sm-1 me-1 me-sm-0">
                    <span t-esc="len(question_data['answer_input_done_ids'])" class="me-1"/>Responded
                </span>
                <span class="badge text-bg-info ms-0 ms-sm-1 me-1 me-sm-0">
                    <span t-esc="len(question_data['answer_input_skipped_ids'])" class="me-1"/>Skipped
                </span>
            </div>
        </div>

        <!-- Question Description -->
        <div class="ms-3 text-muted" t-field="question.description"/>

        <!-- Answers -->
        <t t-set="question_answered" t-value="question_data['answer_input_done_ids']"/>
        <div t-if="not question_answered" class="alert alert-secondary m-3" role="alert">
            No one answered this question.
        </div>

        <t t-if="question_answered and question.question_type in ['text_box', 'char_box']" t-call="survey.question_result_text"/>
        <t t-elif="question_answered and question.question_type in ['numerical_box', 'date', 'datetime']" t-call="survey.question_result_number_or_date_or_datetime"/>
        <t t-elif="question.question_type in ['simple_choice', 'multiple_choice']" t-call="survey.question_result_choice"/>
        <t t-elif="question.question_type in ['matrix']" t-call="survey.question_result_matrix"/>
        </div>
    </t>

    