{{!
    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">
        {{#hasgroups}}
        <table class="nedtable fullwidth">
            <thead>
                <tr>
                    {{! it's for compatibility with deadline_manager_report_overview_all }}
                    {{#overview_all}}
                        <th scope="col">{{#str}}course{{/str}}</th>
                    {{/overview_all}}
                    <th scope="col">{{#str}}class, block_ned_teacher_tools{{/str}}</th>
                    {{#canmanagegroups}}
                        <th scope="col">{{#str}}requiredschedule, block_ned_teacher_tools{{/str}}</th>
                    {{/canmanagegroups}}
                    <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-users" title="{{#str}}students, block_ned_teacher_tools{{/str}}"></span>
                    </th>
                    <th class="text-center" scope="col">
                        <span class="fa fa-history" title="{{#str}}extensionsgranted, block_ned_teacher_tools{{/str}}"></span>
                    </th>
                    <th class="text-center" scope="col"></th>
                </tr>
            </thead>
            <tbody>
                {{#groups}}
                <tr>
                    {{! it's for compatibility with deadline_manager_report_overview_all }}
                    {{#course}}
                        <td><a href="{{url}}" title="{{fullname}}">{{shortname}}</a></td>
                    {{/course}}

                    <td>
                        {{#warningicon}}
                            <span class="color-red">
                                <i class="icon fa fa-exclamation-triangle text-warning" aria-hidden="true"
                                   data-toggle="tooltip" data-placement="bottom"
                                   title="{{#str}}missingdeadlinetooltip, block_ned_teacher_tools{{/str}}">
                                </i>
                            </span>
                        {{/warningicon}}
                        <a href="{{groupurl}}">{{groupname}}</a>
                        {{#groupmemberaddurl}}
                            <a href="{{groupmemberaddurl}}" target="_blank"><i class="fa fa-pencil-square-o" aria-hidden="true"></i></a>
                        {{/groupmemberaddurl}}
                    </td>
                    {{#canmanagegroups}}
                        <td>{{{schedule}}}</td>
                    {{/canmanagegroups}}
                    <td>{{{classroomteacher}}}</td>
                    <td>{{{onlineteacher}}}</td>
                    <td>{{{startdate}}}</td>
                    <td>{{{enddate}}}</td>
                    <td class="text-center"><a href="{{{studentsurl}}}">{{students}}</a></td>
                    <td class="text-center">{{extensionsgranted}}</td>
                    <td class="text-center"><a class="btn btn-primary btn-small" href="{{groupurl}}">{{#str}}open, block_ned_teacher_tools{{/str}}</a></td>
                </tr>
                {{/groups}}
            </tbody>
        </table>
        {{/hasgroups}}
        {{^hasgroups}}
            <div class="alert alert-info m-1 p-1">{{#str}}norequiredgroupfound, block_ned_teacher_tools{{/str}}</div>
        {{/hasgroups}}
    </div>
</div>