{% extends "base.html" %}

{% block title %}
Réseaux graphes viaires
{% endblock %}

{% block content %}
<a type="button" href="export/">exporter</a>
<table>
<form action="" method="GET" action="graph_id_update/0">
<button type="submit" class="btn btn-success" name="bouton" value="update">update</button>
<tr>
    <th>
        update tous
        <input type="checkbox" onclick="check_toutes_les_autres(this);">
    </th>
    <th> nom de la ville</th>
    <th>nombre d'intersection</th>
    <th>gvvi_diametre</th>
    <th>gvvi_degre_moyen</th>
    <th>gvvi_connectivity</th>
    <th>gvvi_org_plan_vs_organized</th>
    <th>gvvi_tree_vs_complete_graph</th>
    <th>gvvi_longueur_moyenne_rues</th>
    <th>gvvi_d0_fractal_capacite_dimension</th>
    <th>gvvi_d1_information_dimension</th>
    <th>gvvi_d2_correlation_dimension</th>
    <th>gvvi_robustesse</th>
    <th>gvvi_cout</th>
</tr>
        {% csrf_token %}
{% for graph in list_graph %}
    <tr>
        <td>
            <input type="checkbox" value="{{ graph.id }}" id="update" name="update">
        </td>
        <td>{{ graph.ville.ville_nom }}</td>
        <td>{{ graph.gvvi_nb_intersection }}</td>
        <td>{{ graph.gvvi_diametre }}</td>
        <td>{{ graph.gvvi_degre_moyen }}</td>
        <td>{{ graph.gvvi_connectivity }}</td>
        <td>{{ graph.gvvi_org_plan_vs_organized }}</td>
        <td>{{ graph.gvvi_tree_vs_complete_graph }}</td>
        <td>{{ graph.gvvi_longueur_moyenne_rues }}</td>
        <td>{{ graph.gvvi_d0_fractal_capacite_dimension }}</td>
        <td>{{ graph.gvvi_d1_information_dimension }}</td>
        <td>{{ graph.gvvi_d2_correlation_dimension }}</td>
        <td>{{ graph.gvvi_robustesse }}</td>
        <td>{{ graph.gvvi_cout }}</td>
        <td>
            <a type="button" href="graph_id_update/{{ graph.id }}">Update</a>
            <a type="button" href="graph_id_delete/{{ graph.id }}">Delete</a>
        </td>
    </tr>
{% endfor %}
</form>
</table>
<div>
    <h1>Ajout d'une nouvelle ville ou ensemble de villes</h1>
    <a type="button" href="telecharge_liste_commune">Ajout</a>
</div>
{% endblock %}