{{!
    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 theme_adaptable/headerloginform

    Header style one.

    Example context (json):
    {
        "url": "http://localhost",
        "token": "",
        "displayloginbox": true
    }
}}
<form id="pre-login-form" class="form-inline my-2 my-lg-0" action="{{{url}}}" method="post">
    <input type="hidden" name="logintoken" value="{{token}}"/>
    {{#displayloginbox}}
    <input type="text" name="username" placeholder="{{#str}}loginplaceholder, theme_adaptable{{/str}}" size="11">
    <input type="password" name="password" placeholder="{{#str}}passwordplaceholder, theme_adaptable{{/str}}" size="11">
    {{/displayloginbox}}
    <button class="btn-login" type="submit">{{#str}}logintextbutton, theme_adaptable{{/str}}</button>
</form>
