{{!
    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/raceresults

    Race Results

    Classes required for JS:
    * None

    Data attibutes required for JS:
    * None

    Context variables required for this template:
    * none

    Example context (json):
    {
    }
}}
{{#programmedmode}}
    <h6 class="titlecontainer bg-primary">
        {{#pix}} i/questions_list, mod_kuet {{/pix}}
        {{#str}}results, mod_kuet{{/str}}
    </h6>
{{/programmedmode}}

<div class="content-raceresults">
    <div class="users-list">
        <div class="race-student-title">
            {{#str}}students, mod_kuet{{/str}}
        </div>
        <div class="content-users" id="content-users">
            {{#userresults}}
                <div class="race-student">
                    <img class="student-profile" src="{{userimageurl}}" alt="{{userfullname}}">
                    {{#userprofileurl}}
                        <span class="user-fullname">
                            <a target="_blank" href="{{userprofileurl}}">{{userfullname}}</a>
                        </span>
                    {{/userprofileurl}}
                    {{^userprofileurl}}
                        <span class="user-fullname">{{userfullname}}</span>
                    {{/userprofileurl}}
                    <span class="user-poinsts">
                    {{userpoints}} pt {{#pix}}q/points, mod_kuet{{/pix}}
                </span>
                </div>
            {{/userresults}}
            {{#groupresults}}
                <div class="race-student">
                    <img class="student-profile" src="{{groupimageurl}}" alt="{{groupname}}">
                    <span class="user-fullname">{{groupname}}</span>
                    <span class="user-poinsts">
                    {{grouppoints}} pt {{#pix}}q/points, mod_kuet{{/pix}}
                </span>
                </div>
            {{/groupresults}}
        </div>
    </div>
    <div class="questions-list" id="questions-list">
        {{#questions}}
            <div class="content-question" data-questionnum="{{questionnum}}">
                <div class="questionnumber">
                    {{#str}}abbreviationquestion, mod_kuet{{/str}}{{questionnum}}
                </div>
                <div class="content-responses">
                    {{#studentsresponse}}
                        <div class="response {{responseclass}}" data-toggle="tooltip" data-placement="top" title="{{responsetext}}" data-userid="{{userid}}">
                            <div class="content-color"></div>
                        </div>
                    {{/studentsresponse}}
                </div>
            </div>
        {{/questions}}
    </div>
</div>
