{{!
    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 comments.

    You should have received a copy of the GNU General Public License
    along with Moodle.  If not, see <http://www.gnu.org/licenses/>.
}}
<div class="deadline-manager-report oveerview">
    <div class="row">
        {{#hasusers}}
            {{#perpagebar}}
                {{{ perpagebar }}}
            {{/perpagebar}}
        <table class="nedtable fullwidth">
            <thead>
                <tr>
                    <th scope="col">{{#str}}username, core{{/str}}</th>
                    <th scope="col">{{#str}}id, block_ned_teacher_tools{{/str}}</th>
                    <th scope="col">{{#str}}group, block_ned_teacher_tools{{/str}}</th>
                    <th scope="col">{{#str}}classroomteacher, block_ned_teacher_tools{{/str}}</th>
                    <th scope="col">{{#str}}onlineteacher, block_ned_teacher_tools{{/str}}</th>
                    <th scope="col">{{#str}}start, block_ned_teacher_tools{{/str}}</th>
                    <th scope="col">{{#str}}end, block_ned_teacher_tools{{/str}}</th>
                    <th class="text-center" scope="col">
                        <span class="fa fa-history" title="{{#str}}extensionsgranted, block_ned_teacher_tools{{/str}}"></span>
                    </th>
                    <th scope="col"></th>
                </tr>
            </thead>
            <tbody>
                {{#users}}
                <tr>
                    <td>{{{username}}}</td>
                    <td><a href="{{userurl}}">{{id}}</a></td>
                    <td>{{{group}}}</td>
                    <td>{{{classroomteacher}}}</td>
                    <td>{{{onlineteacher}}}</td>
                    <td>{{{startdate}}}</td>
                    <td>{{{enddate}}}</td>
                    <td class="text-center">{{extensionsgranted}}</td>
                    <td class="text-center"><a class="btn btn-primary btn-small" href="{{userurl}}">{{#str}}open, block_ned_teacher_tools{{/str}}</a></td>
                </tr>
                {{/users}}
            </tbody>
        </table>
        {{#pagingbar}}
            {{{ pagingbar }}}
        {{/pagingbar}}
        {{/hasusers}}
        {{^hasusers}}
            <div class="alert alert-info m-1 p-1">{{#str}}nooverridenuser, block_ned_teacher_tools{{/str}}</div>
        {{/hasusers}}
    </div>
</div>
