{% extends "base.html" %}

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

{% block content %}
<table>
<tr>
    <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>
</tr>
{% for graph in list_graph %}
    <tr>
        <td>{{ graph.gvvi_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>
            <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>
<div>
    <h1>Création d'un nouveau graph</h1>
    <p>{{ method }}</p>
    <form action="" method="POST">
        {% csrf_token %}
        <ul>
            {{form}}
        </ul>
        <input type="hidden" value="{{id}}">
        <button type="submit" class="btn btn-success">Valider</button>
    </form>
    <p>{{method}}</p>
</div>
{% endblock %}