<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <meta name="description" content="XiVO">
        <meta name="author" content="XiVO Dev Team">

        <title>{% block title %}XiVO{% endblock %}</title>

        <link rel="icon" href="{{url_for('static_theme', filename='favicon.ico')}}">
        <link rel="shortcut icon" href="{{url_for('static_theme', filename='favicon.ico')}}">

        {% block styles %}
        <link rel="stylesheet" type="text/css" href="{{url_for('static', filename='css/jquery-ui.css')}}">
        <link rel="stylesheet" type="text/css" href="{{url_for('static_theme', filename='css/theme.css')}}">
        {% block additional_css %}{% endblock %}
        {% endblock %}

        {% block head_extra %}{% endblock %}
    </head>

    <body>
    {% block body %}
        <a style="display: none;" name="dwho-free-focus"></a>
        <a name="xivo-top"></a>
        <div id="bc-body">
            <div id="bc-head">
                {% block top %}
                {% include 'top.html' %}
                {% endblock %}
            </div><!--#bc-head -->

            <div id="bc-main">
                <div id="b-lmenu">
                    {% block nav %}
                    {% include 'nav.html' %}
                    {% endblock %}
                </div>
                <div id="bc-content">
                    <div id="b-content">
                        {% block messages %}
                        <div id="flashed-messages">
                            {% include 'flashed_messages.html' %}
                        </div>
                        {% endblock %}
                        <div class="b-infos b-form">
                        <h3 class="sb-top xspan">
                            <span class="span-left">&nbsp;</span>
                            <span class="span-center">{{ title }}</span>
                            <span class="span-right">&nbsp;</span>
                        </h3>
                        <div class="sb-content">
                            {% block content %}{% endblock %}
                        </div>
                        <div class="sb-foot xspan">
                            <span class="span-left">&nbsp;</span>
                            <span class="span-center">&nbsp;</span>
                            <span class="span-right">&nbsp;</span>
                        </div>
                        </div>
                    </div>
                </div>
            </div><!--#bc-main -->
        </div><!--#bc-body -->

        <div id="bc-foot">
        {% block footer %}
           {% include 'footer.html' %}
        {% endblock %}
        </div><!--#bc-foot -->

        {% block scripts %}
        <script type="text/javascript" src="{{url_for('static', filename='js/jquery.min.js')}}"></script>
        <script type="text/javascript" src="{{url_for('static', filename='js/jquery-ui.min.js')}}"></script>
        <script type="text/javascript" src="{{url_for('static_theme', filename='js/theme.js')}}"></script>
        {% block additional_js %}{% endblock %}
        {% endblock %}
    {% endblock %}
    </body>
</html>
