<form role="form" class="@classNames form-inline" name="search" <?php echo $document->baseurl . '/index.php'; ?> method="post">
    <div class="@containerInner">
        <input type="hidden" name="task" value="search">
        <input type="hidden" name="option" value="com_search">
        @if(showButton && joinButton) {
            <div class="input-group">
        }
        @if (buttonPosition === 'right') {
            @include("input")
        }
        @if( showButton) {
            <span class="input-group-btn">
                <input type="submit" class="@button.classNames" value="@_searchBtnText" title="@_searchBtnText">
            </span>
        }
        @if (buttonPosition === 'left') {
            @include("input")
        }
        @if (icon.passive.picture.fileName) {
            <img class="@(icon.classNames)-picture" src="@icon.passive.picture" data-hovered="@icon.hovered.picture">
        }
        @if(showButton && joinButton) {
            </div>
        }
    </div>
</form>