<form role="form" class="@classNames form-inline" name="search" action="<?php echo JRoute::_('index.php');?>" method="post">
    <div class="@containerInner">
        <input type="hidden" name="task" value="search">
        <input type="hidden" name="option" value="com_search">
        <input type="hidden" name="Itemid" value="<?php echo $mitemid; ?>" />
        <div class="bd-search-wrapper">
            @if (showButton) {
                @if (buttonPosition === 'left') {
                <div class="bd-button-wrapper">
                    <input type="submit" value="<?php echo $button_text ?>" class="@button.classNames <?php echo $moduleclass_sfx ?>" onclick="this.form.searchword.focus();"/>
                </div>
                }
                <div class="bd-input-wrapper">
                    @include("input")
                </div>
                @if (buttonPosition === 'right') {
                <div class="bd-button-wrapper">
                    <input type="submit" value="<?php echo $button_text ?>" class="@button.classNames <?php echo $moduleclass_sfx ?>" onclick="this.form.searchword.focus();"/>
                </div>
                }
            } else {
                @include("input")
                @include("icon")
            }
        </div>
        <script>
            jQuery('@(selector) @(icon.selector)').on('click', function (e) {
                e.preventDefault();
                jQuery('#search-@id').submit();
            });
        </script>
    </div>
</form>