{% extends 'base.html' %}
{% load calctags %}
{% block top %}
{% endblock %}

{% block body %}


  <br><br>
  <p>Lista database ordinati per Dominio di appartenenza<p>

  <table class='table table-striped table-hover'>
    <thead>
      <tr>
        <th scope='col'>Dominio</th>
	<th scope='col'>Database</th>
	<th scope='col'>Utente</th>
	<th scope='col'>Server</th>
	<th scope='col'>Ip</th>
      </tr>
    </thead>
    <tbody>
      {% for d in database %}
        <tr>
          <td scope='row'>{{ d.dominio.nome }}</td>
          <td scope='row'>{{ d.nome }}</td>
	  <td scope='row'>{{ d.username }}</td>
          <td scope='row'>{{ d.server.nome }}</td>
	  <th scope='row'>{{ d.server.ip }}</td>
        </tr>
      {% endfor %}
      </form>
    </tbody>
{% endblock %}


