{% extends 'base.html' %}
{% load calctags %}

{% block top %}
{% endblock %}

{% block body %}

<p>Lista domini in scadenza {% if demo %}DEMO{% endif %} </p>
<p>Numero dei domini presi in esame: {{ totaledomini }} </p>

<p>lista domini in scadenza </p>
  <table class='table'>
    <thead>
      <tr>
        <th scope='col'>#</th>
        <th scope='col'>Dominio</th>
        <th scope='col'>Sc.Contratto</th>
        <th scope='col'>Sc.Registrar</th>
	<th scope='col'>Gg. al Contr.</th>
	<th scope='col'>Gg. al Regs.</th>
	<th scope='col'>Causale</th>
        <th scope='col'>Uuid</th>
      </tr>
    </thead>
    <tbody>
      {% for d in domini %}
        <tr>
          <th scope='row'>{{ d.id }}</th>
          <td>{{ d.nome }}</td>
          <td>{{ d.date_expire_contract }}</td>
          <td>{{ d.date_expire_registrar }}</td>
	  <td>{{ d.date_expire_contract|GGscadenza }}</td>
	  <td>{{ d.date_expire_registrar|GGscadenza }}</td>
	  <td>{{ d.causale.nome }}</td>
          <td>{{ d.renew_code }} </td>

        </tr>
      {% endfor %}
    </tbody>
  </table>
  {{ domini }}


  {% if listalog %}
    {% for l in listalog %}
      <p>
      {{ l }} 
      </p>
    {% endfor %}
  {% endif %}
{% endblock %}


