Proyectos de Subversion Moodle

Rev

Autoría | Ultima modificación | Ver Log |

{{!
    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/>.
}}
{{!
    @template gradereport_grader/cell

    Cell template.

    Example context (json):
    {
        "iseditable": "true",
        "statusicons": "<div class='grade_icons'><i class='icon fa fa-lock fa-fw text-muted' title='Locked' role='img' aria-label='Locked'></i></div>",
        "actionmenu": "<div class='action-menu moodle-actionmenu grader' id='action-menu-8' data-enhance='moodle-core-actionmenu'></div>",
        "id": "grade_313_624",
        "label": "grade_313_624",
        "title": "Grade",
        "extraclasses": "statusicons",
        "value": "Text information",
        "tabindex": "1",
        "name": "grade[313][624]"
    }
}}
<div class="d-flex flex-column h-100" data-collapse="content">
    <div class="d-flex">
        <div class="d-flex flex-grow-1">
            {{#iseditable}}
                {{#scale}}
                    {{>core_grades/grades/grader/scale}}
                {{/scale}}
                {{^scale}}
                    {{>core_grades/grades/grader/input}}
                {{/scale}}
            {{/iseditable}}
            {{^iseditable}}
                {{>core_grades/grades/grader/text}}
            {{/iseditable}}
        </div>
        <div>
            {{{actionmenu}}}
        </div>
    </div>
    <div class="d-flex flex-grow-1 align-items-end">
        {{{statusicons}}}
    </div>
</div>