{{!
    This file is part of Moodle - http://moodle.org/

    Moodle is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    Moodle is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with Moodle.  If not, see <http://www.gnu.org/licenses/>.

    Project implemented by the "Recovery, Transformation and Resilience Plan.
    Funded by the European Union - Next GenerationEU".
    Produced by the UNIMOODLE University Group: Universities of
    Valladolid, Complutense de Madrid, UPV/EHU, León, Salamanca,
    Illes Balears, Valencia, Rey Juan Carlos, La Laguna, Zaragoza, Málaga,
    Córdoba, Extremadura, Vigo, Las Palmas de Gran Canaria y Burgos
}}
{{!
    @template mod_kuet/allreports

    All reports

    Classes required for JS:
    * None

    Data attibutes required for JS:
    * None

    Context variables required for this template:
    * none

    Example context (json):
    {
    }
}}
<div class="col-12 completed-sessions sessions-list">
    <div class="sessions-list-header bg-primary">
        <div class="sessions-list-header-title">
            {{#pix}} i/sessions_list, mod_kuet {{/pix}}
            <h5>{{#str}}completed_sessions, mod_kuet{{/str}}</h5>
        </div>
    </div>
    <div class="content_table">
        <div class="sessions-list-body d-table">
            <div class="d-table-row sessions-list-thead">
                <div class="d-table-cell">{{#str}}session_name, mod_kuet{{/str}}</div>
                <div class="d-table-cell">{{#str}}sessionmode, mod_kuet{{/str}}</div>
                <div class="d-table-cell">{{#str}}timemode, mod_kuet{{/str}}</div>
                <div class="d-table-cell text-center">{{#str}}sessiontime, mod_kuet{{/str}}</div>
                <div class="d-table-cell text-center">{{#str}}questions_number, mod_kuet{{/str}}</div>
                <div class="d-table-cell text-center">{{#str}}session_date, mod_kuet{{/str}}</div>
                <div class="d-table-cell"></div>
            </div>
            {{#endedsessions}}
                <div class="d-table-row sessions-list-data">
                    <div class="d-table-cell">{{name}}</div>
                    <div class="d-table-cell">{{sessionmode}}</div>
                    <div class="d-table-cell">{{timemode}}</div>
                    <div class="d-table-cell text-center">{{sessiontime}}</div>
                    <div class="d-table-cell text-center">{{questions_number}}</div>
                    <div class="d-table-cell text-center">{{date}}</div>
                    <div class="d-table-cell viewreport-session">
                        <a href="{{viewreporturl}}">
                            + <span>{{#str}}viewreport_session, mod_kuet{{/str}}</span>
                        </a>
                    </div>
                </div>
            {{/endedsessions}}
        </div>
    </div>
</div>
