<!DOCTYPE html>
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
      <!-- Add additional CSS in static file -->
    {% load static %}
    <link rel="stylesheet" href="{{ STATIC_URL }}/static/webshop/css/base.css" />
    <link rel="stylesheet" href="{{ STATIC_URL }}/static/bootstrap-3.3.7-dist/css/bootstrap.css" />
    {% block title %}
      <title>
        Casestudy 'Webshop' IBZ TIAE-5(2017/18)
      </title>
    {% endblock %}
  </head>
  <body>
    <div class="container-fluid">
      <div class="row">
        <div class="col-sm-12">
          <h1>
            {% block shop_name %}Music Instruments Inc.{% endblock %}
          </h1>
          <div>
            {% block search %}{% endblock %}
          </div>
        </div>
      </div>
    </div>
    {% block nav %}{% include "webshop/nav.html" %}{% endblock %}
    <div class="container-fluid">
      <div class="row">
        <div class="col-md-2">
          {% block sidebar %}
            {% if category_list %}
            <ul>
                {% for category, sub_category in category_list.items %}
                    <li><a href="{% url 'category' category.id %}">{{ category.name }}</a></li>
                    {% for i in sub_category %}
                        <ul>
                        <li><a href="{% url 'category' i.id %}">{{ i.name }}</a></li>
                        </ul>
                    {% endfor %}
                {% endfor %}
            </ul>
            {% else %}
                <p>No categories are available.</p>
            {% endif %}
          {% endblock %}
        </div>
        <div class="col-md-8 panel panel-default">
          <div class="panel-heading">
            <h1>
              {% block section_title %}{% endblock %}
            </h1>
          </div>
          <div class="panel-body">
            {% block content %}{% endblock %}
          </div>
        </div>
      </div>
    </div>
    <footer>
      <div class="container-fluid">
        <div class="row">
          <div class="col-sm-12">
            {% block footer %}
              <div class="container text-center">
              <hr>
                <div class="row">
                  <div class="col-lg-12">
                    <ul class="nav nav-pills nav-justified">
                      <li>
                        <a id='school'
                          target='_blank'
                          href='http://www.ibz.ch'
                          >This is a case study project of Ivan Hörler and Andreas Zweili.
                          <br>
                          It is a school project/excercise and has no commercial intent.
                        </a>
                      </li>
                      <li>
                        <a href="/currencies">Currencies</a>
                      </li>
                      <li>
                          <a href="https://git.2li.ch/ibz/web_AI-5/src/branch/master/README.md">How to use</a>
                      </li>
                    </ul>
                  </div>
                </div>
              </div>
            {% endblock %}
          </div>
        </div>
      </div>
    </footer>
    <script src="https://code.jquery.com/jquery-3.1.0.min.js"></script>
    <script>{% block javascript %}{% endblock %}</script>
  </body>
</html>
