<!DOCTYPE html>
<html lang="fr">
  <head>

    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="IWocs immobilier">
    <title>{% block title %} {% endblock %}</title>
    <link rel='stylesheet' href='./stylesheets/style.css' />


    
    <!--JS-->
    <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
    <!-- JavaScript Bundle with Popper -->
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p" crossorigin="anonymous"></script>
    <!-- CSS only -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous"> 
  </head>
  <body>
  <nav class="navbar navbar-expand-lg navbar-dark bg-primary" style="margin-bottom: 2em;">
  <div class="container-fluid">
    
    <a class="navbar-brand" href="/"><img class="nav-link" src="../fonds/iwocs.png" alt="Accueil" width="250" height="100" class="thumb-post d-inline-block align-top"></a>
    <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
      <span class="navbar-toggler-icon"></span>
    </button>
    <div class="collapse navbar-collapse" id="navbarSupportedContent">
      <ul class="navbar-nav me-auto mb-2 mb-lg-0">
        <li class="nav-item">
          <a class="nav-link active" aria-current="page"  href="/" >Accueil</a>
        </li>
        {% if login %}
        <li class="nav-item">
          <a class="nav-link" href="/users/user">Mes annonces</a>
        </li>
        {% endif %}
        <!--<li class="nav-item dropdown">
          <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-bs-toggle="dropdown" aria-expanded="false">
            Dropdown
          </a>
          <ul class="dropdown-menu" aria-labelledby="navbarDropdown">
            <li><a class="dropdown-item" href="#">Action</a></li>
            <li><a class="dropdown-item" href="#">Another action</a></li>
            <li><hr class="dropdown-divider"></li>
            <li><a class="dropdown-item" href="#">Something else here</a></li>
          </ul>
        </li>
        <li class="nav-item">
          <a class="nav-link disabled">Disabled</a>
        </li>-->
      </ul>
      
       
      <div class="d-flex">
        {% if login %}
        <form action="/users/logout?_method=DELETE" method="POST">
          <button class="btn btn-danger" type="submit">Log Out</button>
        </form>
        
        {% else %}
        <a href="/users/login" class="btn btn-success" type="submit">S'identifier</a>
        {% endif %}
      </div>
      
    </div>
  </div>
</nav>
<div class="container">
    {% block body %}{% endblock %}
    </div>


    <footer class="mt-5 bg-light py-5 text-center">
	<p>Copyright IMINE !</p>

</footer>

  </body>
  
</html>
