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

    Edwiser RemUI 
    @package    theme_remui
    @copyright  (c) 2018 WisdmLabs (https://wisdmlabs.com/)
    @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
 
}}
<form action="{{searchurl}}" id="{{id}}" method="get" class="form-inline">
    <div class="form-group coursesearchbox invisiblefieldset w-p100">
    
        <input type="hidden" name="mycourses">
        {{#category}}
            <input type="hidden" name="categoryid" value="{{category}}">
        {{/category}}
        <div class="input-group w-p100 d-flex  ">
            <input id="{{inputid}}" type="text" class="form-control" name="search" placeholder="{{#str}}searchcourses{{/str}}" value="{{value}}">
            <span class="input-group-append">
            <button type="submit" class="btn btn-primary"><i class="icon wb-search" style="margin:-5px 3px -2px;" aria-hidden="true"></i></button>
            </span>
        </div>
    </div>
</form>
