<!DOCTYPE html>
<html>

<head>
  {% load static %}
  
  <title>{% block title %} {% endblock %}</title>

  <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script>
  <!-- versione 5.3.x --> 
  <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">
  <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz" crossorigin="anonymous"></script>

  <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  {% block headersupplement %}

  {% endblock %}
</head>

<body style='padding-top:50px;padding-bottom:20px;'>
<nav class="navbar fixed-top navbar-expand-lg navbar-light bg-light">
</nav>

{% if Navbar %}

<nav class="navbar fixed-top navbar-expand-lg navbar-light bg-light">
  <div class="collapse navbar-collapse" id="navbarNav">
    <ul class="navbar-nav">
      <li class='nav-item active'>
	<a class="navbar-brand" href="https://altemica.net/dashboard4">
          <img src="{% static 'images/logo-altemica-300x100.jpg' %}" width="30%" class="d-inline-block align-left" alt=""></img>
        </a>
      </li>
      <li class="nav-item active">
        <a class="nav-link" href="{% url 'Login:welcome' %}">
	<img src="{% static 'images/88282.png' %}" width="10%" class="d-inline-block align-left" alt="">  Menu Principale</img></a>
      </li>
      <li class="nav-item">
        <a class="nav-link" href="{% url 'Note:NoteView' %}">
        <img src="{% static 'images/88273.png' %}" width="10%" class="d-inline-block align-left" alt="">  Note/Comunicazioni</img></a>
      </li>
      <li class="nav-item">
        <a class="nav-link" href="#help">
        <img src="{% static 'images/88274.png' %}" width="10%" class="d-inline-block align-left" alt="">  Aiuto</img></a>

      </li>
      <li class="nav-item">
        <a class="nav-link" href="{% url 'Login:login' %}">
        <img src="{% static 'images/88285.png' %}" width="10%" class="d-inline-block align-left" alt="">  Logout</img></a>
      </li>
    </ul>
  </div>
  <div class="collapse navbar-collapse" id="navbarNav">
    <ul class="navbar-nav">
-     <li class="nav-item">
	<!-- <a class="nav-link" href="{% url 'Utenti:UserEdit' %}">Pannello personale:  <b>{{ utenteautorizzato.mail }}@{{ utenteautorizzato.domain.domain }}</b></a> -->
      </li>
    </ul>
  </div>  
  </nav>
{% endif %}
<!-- se navbar e' presente con un 1 all'interno, viene visualizza la navbar -->

<div class="col-md-3 col-sm-3 col-xs-3">&nbsp;</div>
 
<div class='container'>
    {% block top %}
    <div class='form-outline mb-5 text-center btn-primary h3'>
           {{ HeaderTitle }}
    </div>
    {% endblock %}
</div>

<div class='container'>
      {% block body %}
        Place Holder
      {% endblock %}
</div>

<div class='container'>
      {% block bodybottom %}
      {% endblock %}
</div>

<div class='container'>
  {% block help %}
  {% endblock %}
</div>

<div class='separator'></div>

<div class='fixed-bottom'>
  {% block bottom %}
    <a href='http://marchioitalia.it'>Powered by MarchioItalia</a>
       Icons made by <a href="https://www.flaticon.com/authors/freepik" title="Freepik">Freepik</a> from <a href="https://www.flaticon.com/" title="Flaticon"> www.flaticon.com</a>
  {% endblock %}
</div>
