{% extends "includes/nav.html"  %}

{% block nav-pre %}
{% block local-user-info %}
<div id="side-user-block">
{% skeleton_extra_placeholder user-info %}
          {% if user.is_authenticated %}
          <span class="logged-in">
            {% if account_url %}<a href="{{ account_url }}">{% endif %}
            <span class="connected-user">{{user.first_name}} {{user.last_name}}</span>{% if account_url %}</a>{% endif %}
            <a accesskey="o" class="logout pk-button" href="{{ logout_url }}">D&eacute;connexion</a>
          </span>
          {% else %}
            <a class="login pk-button" accesskey="2" href="{{ login_url }}?next={{ request.get_full_path|urlencode}}">Connexion</a>
            <span class="registration">Pas de compte ? <a href="{{ registration_url }}">S'inscrire</a></span>
          {% endif %}
{% end_skeleton_extra_placeholder %}
</div>
{% endblock %}
{% endblock %}

{% block nav-post %}
<div id="nav-tracking-code">
  <h3>Code de suivi</h3>
  <form>
    <input placeholder="ex: HPTLRQRZ" required pattern="[BCDFGHJKLMNPQRSTVWXZbcdfghjklmnpqrstvwxz]{8}">
    <button></button>
  </form>
</div>
{% endblock %}
