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 mod_assign/grading_actions

    Actions panel at the bottom of the assignment grading UI.

    Classes required for JS:
    * none

    Data attributes required for JS:
    * data-region

    Context variables required for this template:
    * see mod/assign/classes/output/grading_app.php

    This template is initially hidden, and is only displayed after the current user info has been loaded.
}}
<div class="d-flex justify-content-between">
    <form data-region="grading-actions-form" class="hide flex-grow-1 align-self-center">
        <label>{{#str}}sendstudentnotifications, mod_assign{{/str}}
               <input type="checkbox" name="sendstudentnotifications"
                      {{#defaultsendnotifications}}checked="checked"{{/defaultsendnotifications}} />
        </label>
        {{#helpicon}}
            {{>core/help_icon}}
        {{/helpicon}}
        <button type="submit" class="btn btn-primary" name="savechanges">{{#str}}savechanges{{/str}}</button>
        <button type="submit" class="btn btn-primary" name="saveandshownext">{{#str}}saveandnext{{/str}}</button>
        <button type="submit" class="btn btn-secondary" name="resetbutton">{{#str}}reset{{/str}}</button>
    </form>
    {{#showreview}}
        <div class="btn-toolbar collapse-buttons">
            <div class="btn-group">
                <button type="button" class="btn btn-secondary collapse-review-panel" aria-label="{{#str}} collapsereviewpanel, mod_assign {{/str}}" title="{{#str}} collapsereviewpanel, mod_assign {{/str}}">
                    {{#pix}} layout-expand-right, mod_assign {{/pix}}
                </button>
                <button type="button" class="btn btn-secondary collapse-none active" aria-label="{{#str}} defaultlayout, mod_assign {{/str}}" title="{{#str}} defaultlayout, mod_assign {{/str}}">
                    {{#pix}} layout-default, mod_assign {{/pix}}
                </button>
                <button type="button" class="btn btn-secondary collapse-grade-panel" aria-label="{{#str}} collapsegradepanel, mod_assign {{/str}}" title="{{#str}} collapsegradepanel, mod_assign {{/str}}">
                    {{#pix}} layout-expand-left, mod_assign {{/pix}}
                </button>
            </div>
        </div>
    {{/showreview}}
</div>
{{#js}}
require(['mod_assign/grading_actions'], function(GradingActions) {
    new GradingActions('[data-region="grade-actions"]');
});
{{/js}}