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_navigation_user_selector

    The template HTML for the user selector in the top right corner.

    Classes required for JS:
    * none

    Data attributes required for JS:
    * data-action, data-assignmentid, data-groupid, data-region

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

    This template uses ajax functionality, so it cannot be shown in the template library.
}}
<div class="mr-2">
    <a href="#previous" data-action="previous-user" class="btn btn-sm btn-icon rui-icon-no-margin">
        <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
            <path d="M8.75 12L14.25 7.75V16.25L8.75 12Z" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
        </svg>
    </a>
        <span data-region="input-field">
            <select data-action="change-user" data-currentuserid="{{currentuserid}}" data-assignmentid="{{assignmentid}}" data-groupid="{{groupid}}"></select>
        </span>
    <a href="#next" data-action="next-user" class="btn btn-sm btn-icon rui-icon-no-margin">
        <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
            <path d="M14.25 12L8.75 7.75V16.25L14.25 12Z" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
        </svg>
    </a>

    <span data-region="user-count" class="px-2 mx-2 border-left border-right">
            <span data-region="user-count-summary" class="badge badge-light">{{#str}}xofy, mod_assign, { "x": "{{index}}", "y": "{{count}}" }{{/str}}</span>
    </span>

    <div data-region="configure-filters" id="filter-configuration-{{uniqid}}" class="p-2">
        <form class="text-left">
            <span>
                <label class="mt-0 mb-1 mr-2 d-block small" for="filter-general-{{uniqid}}">
                    {{#str}}filter, mod_assign{{/str}}
                </label>
                <select name="filter" class="custom-select mb-2" id="filter-general-{{uniqid}}">
                {{#filters}}
                    <option value="{{key}}" {{#active}}selected="selected"{{/active}} > {{name}} </option>
                {{/filters}}
                </select>
            </span>
            {{#hasmarkingallocation}}
            <span>
                <label class="mt-0 mb-1 mr-2 d-block small" for="filter-marker-{{uniqid}}">
                    {{#str}}markerfilter, mod_assign{{/str}}
                </label>
                <select name="markerfilter" class="custom-select mb-2" id="filter-marker-{{uniqid}}">
                {{#markingallocationfilters}}
                    <option value="{{key}}" {{#active}}selected="selected"{{/active}} > {{name}} </option>
                {{/markingallocationfilters}}
                </select>
            </span>
            {{/hasmarkingallocation}}
            {{#hasmarkingworkflow}}
            <span>
                <label class="mt-0 mb-1 mr-2 d-block small" for="filter-workflow-{{uniqid}}">
                    {{#str}}workflowfilter, mod_assign{{/str}}
                </label>
                <select name="workflowfilter" class="custom-select" id="filter-workflow-{{uniqid}}">
                {{#markingworkflowfilters}}
                    <option value="{{key}}" {{#active}}selected="selected"{{/active}} > {{name}} </option>
                {{/markingworkflowfilters}}
                </select>
            </span>
            {{/hasmarkingworkflow}}
        </form>
    </div>

    <a href="#" class="btn btn-sm btn-icon btn-secondary rui-icon-no-margin" data-region="user-filters" title="{{#str}}changefilters, mod_assign{{/str}}" aria-expanded="false" aria-controls="filter-configuration-{{uniqid}}">
        <span class="accesshide">
            {{#filters}}
                {{filtername}}
            {{/filters}}
            {{^filters}}
                {{#str}}nofilters, mod_assign{{/str}}
            {{/filters}}
        </span>
        {{#pix}}i/filter{{/pix}}
    </a>
</div>