{{!
    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 block_myoverview/nav-grouping-selector

    This template renders grouping dropdown.

    Example context (json):
    {
        "today": true,
        "inprogress": false,
        "future": false,
        "past": false
    }
}}
<div class="dropdown status-filter filter-item" data-region="task-status-filter">
    <button id="taskstatus" type="button" class="btn  dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" aria-label="{{#str}} tasks, local_edwiserpagebuilder {{/str}}" title="{{#str}} all {{/str}}">
        <span class="d-sm-inline-block" data-active-item-text>
            {{#str}} all {{/str}}
        </span>
    </button>
    <ul class="dropdown-menu dropdown-menu-left" data-show-active-item data-active-item-text aria-labelledby="taskstatus">
        <li>
            <a class="dropdown-item active" href="#" data-filter="grouping" data-value="all" data-pref="all" aria-label="{{#str}} all {{/str}}" aria-controls="courses-view-{{uniqid}}" title="{{#str}} all {{/str}}">
                {{#str}} all {{/str}}
            </a>
        </li>
        <li>
            <a class="dropdown-item" href="#" data-filter="grouping" data-value="completed" data-pref="completed" aria-label="{{#str}} completed, core_completion {{/str}}" aria-controls="courses-view-{{uniqid}}" title="{{#str}} completed, core_completion {{/str}}">
                {{#str}} completed, core_completion {{/str}}
            </a>
        </li>
        <li>
            <a class="dropdown-item" href="#" data-filter="grouping" data-value="incomplete" data-pref="incomplete" aria-label="{{#str}} incomplete, local_edwiserpagebuilder {{/str}}" aria-controls="courses-view-{{uniqid}}" title="{{#str}} incomplete, local_edwiserpagebuilder {{/str}}">
                {{#str}} incomplete, local_edwiserpagebuilder {{/str}}
            </a>
        </li>
        <li>
            <a class="dropdown-item" href="#" data-filter="grouping" data-value="due" data-pref="due" aria-label="{{#str}} due, local_edwiserpagebuilder {{/str}}" aria-controls="courses-view-{{uniqid}}" title="{{#str}} due, local_edwiserpagebuilder {{/str}}">
                {{#str}} due, local_edwiserpagebuilder {{/str}}
            </a>
        </li>
    </ul>
</div>
