{% load i18n %}
<!DOCTYPE html>
<html lang="en">
<head>
  {% block title %}<title>Connexion</title>{% endblock %}
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
  <!-- Add additional CSS in static file -->
  {% load static %}
  <link rel="stylesheet" href="{% static 'css/style.css' %}">
  <link rel="icon" href="{% static 'favicon.ico' %}" type="image/x-icon">
</head>
<body>
  <div class="container-fluid">
    <div class="row">
      <div class="col-sm-2">
          {% block sidebar %}
          <ul class="sidebar-nav" style="background-color: beige;">
          {% if user.is_authenticated %}
            <li>Bonjour {{ user.get_username }}</li>


<!--            
  <li><a href="{% url 'logout'%}?next={{request.path}}">{% trans 'Disconnect' %}</a></li>
-->

            <form action="{% url 'logout' %}" method="post">
              {% csrf_token %}
              <input class="button-link" type="submit" value="Se deconnecter">
            </form>
            <a href="{% url 'quiz_progress'%}?next={{request.path}}">progression</a>
          {% else %}
<!--
  <li><a href="{% url 'login'%}?next={{request.path}}">{% trans 'Connect' %}</a></li>
-->

            <a href="{% url 'login' %}">Se connecter</a>
          {% endif %}
          {% endblock %}
          </ul>
      </div>
         <div class="col-sm-10 ">
            {% block content %}
            {% endblock %}
         </div>
    </div>
  </div>
  <div>
    <img style="display: block; margin-left: auto; margin-right: auto;" src="{%  static 'logo.png' %}"/>
</div>
</body>
</html>