{% extends 'base.html' %}

{% block headersupplement %}
<script language="JavaScript">
function toggle(source) {
  checkboxes = document.getElementsByName('select');
  for(var i=0, n=checkboxes.length;i<n;i++) {
    checkboxes[i].checked = source.checked;
  }
}
</script>
{% endblock %}

{% block body %}
<!-- Nav tabs -->
<ul class="nav nav-tabs" id="myTab" role="tablist">
  <li class="nav-item" role="presentation">
    <button class="nav-link active" id="profile-tab" data-bs-toggle="tab" data-bs-target="#profile-pane" type="button" role="tab" aria-controls="profile-pane" aria-selected="true">Profilo</button>
  </li>
  <li class="nav-item" role="presentation">
    <button class="nav-link" id="document-tab" data-bs-toggle="tab" data-bs-target="#document-pane" type="button" role="tab" aria-controls="document-pane" aria-selected="false">Documenti</button>
  </li>
  <li class="nav-item" role="presentation">
    <button class="nav-link" id="logger-tab" data-bs-toggle="tab" data-bs-target="#logger-pane" type="button" role="tab" aria-controls="logger-pane" aria-selected="false">attivita</button>
  </li>
  <li class="nav-item" role="presentation">
	  <button class="nav-link" id="return-tab" data-bs-toggle="tab" data-bs-target="#return-pane" type="button" role="tab" aria-controls="return-pane" aria-selected="false"><a href="{% url 'utente:welcome' %}">Indietro</a></button>
  </li>

</ul>
<!-- end nav tabs -->

<!-- Tab panes -->
<div class="tab-content" id='mycontent'>
  {% include 'utente.edit.profile.html' %}
  {% include 'utente.edit.document.html' %}
  {% include 'utente.edit.logger.html' %}
</div>

{% endblock %}

{% block bodybottom %}
  {% if mailnonvalida %}
    <div class='text-center h5'>
           <b>Attenzione, la mail non risulta inserita/corretta.</b>
    </div>
  {% endif %}
{% endblock %}
