{% extends "appli_socle/osm_base.html" %}
{% load url from future %}
{% load i18n %}
{% load crispy_forms_tags %}
{% load fiber_tags %}

{% block body-class %}recherche{% endblock %}

{% block aside-left %}
  <div class="hello">
    <p>{% blocktrans with email=user.email %}Bonjour <span class="email">{{email}}</span> !{% endblocktrans %}</p>
  </div>
  <hr/>
  <div class="types-d-offre">
    {% show_content "recherche-menu-gauche-intro-type-d-offre" %}
    <p id="types-d-offre">
      {% if user.type_d_offre.all %}
        {% for type_d_offre in user.type_d_offre.all %}
          <span>{{type_d_offre.nom}}{% if not forloop.last %}, {% else %}.{% endif %}</span>
        {% endfor %}
      {% else %}
        <span>type1, </span><span>type2.</span>
      {% endif %}
    </p>
    {% if loyer_modere %}
    <p id="conseil-bourse">{% show_content "conseil-bourse" %}</p>
    {% endif %}
    <p id="conseil-type-d-offre">{% show_content "conseil-type-d-offre" %}</p>
  </div>
  <hr/>
  <div id="menu-recherche">
     <ul>
         {% url 'recherche' as the_url %}
         <li class="menu{% if the_url == request.path %} current{% endif %}"><a href="{{ the_url }}">{% trans "Consulter les annonces" %}</a></li>
     </ul>
     {% show_menu "visibles" 2 2 "" %}
  </div>
  <hr/>
  <ul>
    <li><a href="/supprimer-mon-compte">{% trans "Supprimer mon compte" %}</a></li>
  </ul>
{% endblock %}
