{% 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>
</tr>
{% for graph in list_graph %}
    <tr>
        <td>{{ graph.gvvi_nom }}</td>
        <td>{{ graph.gvvi_nb_intersection }}</td>
        <td>{{ graph.gvvi_diametre }}</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 %}