{if $saved}
    <div class="infobox">
        {if $errors}
            <strong><span class="title">Saved with errors</span></strong>
            <ul>
                {foreach $errors as $error}
                    <li>{$error}</li>
                {/foreach}
            </ul>
        {else}
        <strong><span class="title">Saved</span></strong>
        <br>The changes were saved
        {/if}
    </div>
{/if}

<ul class="nav nav-tabs" role="tablist">
    <li class="{if $smarty.get.page eq "" or $smarty.get.page eq "general"}active{else}tab{/if}"><a href="{$modulelink}&page=general">General</a></li>
    <li class="{if $smarty.get.page eq "appearance"}active{else}tab{/if}"><a href="{$modulelink}&page=appearance">Appearance</a></li>
    <li class="{if $smarty.get.page eq "fonts"}active{else}tab{/if}"><a href="{$modulelink}&page=fonts">Fonts</a></li>
    <li class="{if $smarty.get.page eq "layout"}active{else}tab{/if}"><a href="{$modulelink}&page=layout">Layout</a></li>
    <li class="{if $smarty.get.page eq "address"}active{else}tab{/if}"><a href="{$modulelink}&page=address">Address</a></li>
    <li class="{if $smarty.get.page eq "status"}active{else}tab{/if}"><a href="{$modulelink}&page=status">Status</a></li>
    <li class="{if $smarty.get.page eq "details"}active{else}tab{/if}"><a href="{$modulelink}&page=details">Details</a></li>
    <li class="{if $smarty.get.page eq "invoice"}active{else}tab{/if}"><a href="{$modulelink}&page=invoice">Invoice</a></li>
    <li class="{if $smarty.get.page eq "quote"}active{else}tab{/if}"><a href="{$modulelink}&page=quote">Quote</a></li>
    <li class="{if $smarty.get.page eq "text"}active{else}tab{/if}"><a href="{$modulelink}&page=text">Text</a></li>
    <li class="{if $smarty.get.page eq "company"}active{else}tab{/if}"><a href="{$modulelink}&page=company">Company</a></li>
    <li class="{if $smarty.get.page eq "addendum"}active{else}tab{/if}"><a href="{$modulelink}&page=addendum">Addendum</a></li>
    <li class="{if $smarty.get.page eq "integrations"}active{else}tab{/if}"><a href="{$modulelink}&page=integrations">Integrations</a></li>
</ul>

<div class="modal fade" id="myModal" tabindex="-1" role="dialog">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <h4 class="modal-title">{$lang.confirm}</h4>
            </div>
            <div class="modal-body">
                <p><span>{$lang.del_confirm}</span></p>
            </div>
            <div class="modal-footer">
                <input type="hidden" id="modalAction" value="" />
                <button type="button" class="btn btn-default" data-dismiss="modal">{$lang.close}</button>
                <button type="button" class="btn btn-primary" id="btnModal">{$lang.confirm}</button>
            </div>
        </div>
    </div>
</div>

<div class="tab-content client-tabs">
    <div class="tab-pane active">
        {block name="content"}{/block}
    </div>
</div>

<div class="row">
    <div class="col-md-12" style="text-align: right;">
        <span style="float:left;">v{$version}</span>
        <a href="https://bluerabbit.solutions/" target="_blank">
            <img src="data:image/png;base64,{$logo}" title="Powered by BlueRabbIT Software Solutions" alt="BlueRabbIT" style="padding: 10px;" />
        </a>
    </div>
</div>
