{{!
    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_casestudy/submission_actionmenu

}}
<div class="container-fluid tertiary-navigation full-width-bottom-border mb-2">
    <div class="row">
        {{#viewselector}}
            <div class="navitem">
                {{>core/select_menu}}
            </div>
            <div class="navitem-divider d-none d-sm-flex"></div>
            {{#js}}
                document.querySelector('#{{baseid}}').addEventListener('change', function(e) {
                    window.location.href = e.target.value;
                });
            {{/js}}
        {{/viewselector}}
        {{^viewselector}}
            <div class="navitem">
                <h2>{{#str}}gradeitem:submissions, mod_assign{{/str}}</h2>
            </div>
            <div class="navitem-divider d-none d-sm-flex"></div>
        {{/viewselector}}
        {{#userselector}}
            <div class="navitem">
                {{>core/comboboxsearch}}
            </div>
            <div class="navitem-divider d-none d-sm-flex"></div>
        {{/userselector}}
        {{#groupselector}}
            <div class="navitem">
                {{>core/comboboxsearch}}
            </div>
            <div class="navitem-divider d-none d-sm-flex"></div>
        {{/groupselector}}
        {{#initialselector}}
            <div class="navitem d-flex flex-column align-self-center">
                {{>core/comboboxsearch}}
            </div>
            <div class="navitem-divider"></div>
        {{/initialselector}}
        {{#statusselector}}
            <div class="navitem">
                {{>core/select_menu}}
            </div>
            <div class="navitem-divider d-none d-sm-flex"></div>
            {{#js}}
                document.querySelector('#{{baseid}}').addEventListener('change', function(e) {
                    window.location.href = e.target.value;
                });
            {{/js}}
        {{/statusselector}}
        {{#extrafiltersdropdown}}
            <div class="navitem">
            {{>core/local/dropdown/dialog}}
            </div>
            <div class="navitem-divider d-none d-sm-flex"></div>
        {{/extrafiltersdropdown}}
        {{#pagereset}}
            <div class="navitem align-self-center">
                <a href="{{{.}}}" class="btn btn-link">{{#str}}clearall, core{{/str}}</a>
            </div>
            <div class="navitem-divider"></div>
        {{/pagereset}}
        {{#graderurl}}
            <div class="navitem ms-sm-auto align-self-center">
                <a class="btn btn-primary" href="{{graderurl}}">{{#str}}gradeverb, core{{/str}}</a>
            </div>
        {{/graderurl}}
        {{#actions}}
            <div class="navitem ms-sm-auto align-self-center pull-left">
                {{{.}}}
            </div>
        {{/actions}}
    </div>
</div>