{% extends 'base.html' %}

{% block top %}
    <div class='form-outline mb-3 text-center btn-primary h3'>
           {{ HeaderTitle }}
    </div>
    <div class='form-outline mb-3 text-center btn-primary h3'>
           Azienda in elaborazione: {{ azienda.nome }}
    </div>
    <div class='form-outline mb-3 text-center btn-primary h3'>
           Amministratore: {{ admin.username }}
    </div>
{% endblock %}

{% block body %}

  <!-- profilo utente -->
  <div>
    <form name='UpdatePassword' method='post' class='form-container card p-3 bg-light'>
      {% csrf_token %}
      <div class='form-outline mb-3'>
      <label class='form-label' for='cfisc'>Email - Codice Fiscale - Login</label>
      <input type='text'  class='form-control' id='cfisc' name='cfisc' value="{{ informazione.cfisc.value }}"
    </div>
    <div class='form-outline mb-3'>
     <input type='hidden'  class='form-control' id='uuid' name='uuid' value="{{ informazione.uuid.value }}" readonly>
    </div>
    <div class='form-outline mb-3'>
     <label class='form-label' for='pin0'>pin/password temporanea</label>
     <input type='password' class='form-control' id='pin0' name='pin0' value="{{ informazione.pin0.value }}">
    </div>
    <div class='form-outline mb-3'>
     <label class='form-label' for='pin1'>password/pin</label>
     <input type='password' class='form-control' id='pin1' name='pin1' value="{{ informazione.pin1.value }}">
    </div>
    <div class='form-outline mb-3'>
     <label class='form-label' for='pin2'>ripeti password/pin</label>
     <input type='password'  class='form-control' id='pin2' name='pin2' value="{{ informazione.pin2.value }}">
    </div>

    <div class='form-outline mb-3 text-center'>
      <button type='submit' class='btn btn-primary btn-block btn-lg mb-3 active'>Aggiorna</button>
      <button type='reset' class='btn btn-primary btn-block btn-lg mb-3'>Annulla</button>
    </div>
   </form>
  </div>
  {% endblock %}

  {% block bottom %}
  <div>
  <!-- errori -->
  <div class='form-container card p-3 bg-light'>
  {% if informazione.errors %}
    {{ informazione.errors }}
  {% endif %}
  </div>

  <!-- fine zona errori -->
  <div>
  {% endblock %}
