{% load url from future %}
{% load catalog_tags %}

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>PBP Store</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="placeholder">
    <meta name="author" content="placeholder">

    <!-- Le styles -->
    <link href="{{MEDIA_URL}}css/bootstrap.min.css" rel="stylesheet">
    <style type="text/css">
        body {
            padding-top: 60px;
            padding-bottom: 40px;
        }
    ul.errorlist {
        margin: 0;
        padding: 0;
    }
    .errorlist li {
        background-color: red;
        color: white;
        display: block;
        font-size: 10px;
        margin: 0 0 3px;
        padding: 4px 5px;
    }
    .required {
        color: red;
    }
    </style>
    <link href="{{MEDIA_URL}}css/bootstrap-responsive.css" rel="stylesheet">
    <link rel="shortcut icon" type="image/x-icon" href="{{MEDIA_URL}}images/favicon.ico">

    <!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
    <!--[if lt IE 9]>
    <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->

</head>
<body>

<div class="navbar navbar-fixed-top">
    <div class="navbar-inner">
        <div class="container">
            <a class="brand" href="#">PBP</a>
            <div class="nav-collapse">
                <ul class="nav">
                    <li><a href="{% url 'storefront_index' %}">Home</a></li>
                    <li><a href="{% url 'store_admin_home' %}">Store Admin</a></li>
                </ul>

                <ul class="nav pull-right">
                    {% if user.is_authenticated %}
                    <li class="dropdown">
                        <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                            {{ user.username }}
                            <b class="caret"></b>
                        </a>
                        <ul class="dropdown-menu">
                            <li><a href="{% url 'user_logout' %}">Log Out</a></li>
                        </ul>
                    {% else %}
                    <li><a href="{% url 'user_login' %}">Log In</a></li>
                    <li><a href="">Sign up</a></li>
                    {% endif %}
                </ul>
            </div><!--/.nav-collapse -->
        </div>
    </div>
</div>

<div class="container">

<div class="row">
    <div class="span2">
        {% block left-side %}
        {% endblock left-side %}
    </div>
    <div class="span8">
        {% block body %}
        {% endblock body %}
    </div>
    <div class="span2">
        {% block right-side %}
        {% endblock right-side %}
    </div>
</div>

    <hr>

    <footer>
        <p>&copy; PBP</p>
    </footer>

</div> <!-- /container -->

<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script type="text/javascript" src="{{MEDIA_URL}}js/bootstrap.min.js"></script>

<script type="text/javascript">
    $("a[rel=popover]")
            .popover({title:"comments"})
            .click(function(e) {
                e.preventDefault()
            })
</script>
</body>
</html>