{% extends "base.html" %}

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

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