add ability to delete peerings

+ format all files
+ fix "selected_peering" not being defined in /peerings/edit
This commit is contained in:
lare 2022-12-07 17:00:52 +01:00
parent ff4865f4b6
commit 537400f77a
10 changed files with 464 additions and 238 deletions

View file

@ -1,28 +1,25 @@
{% extends 'base.html' %}
{% block content %}
{% extends 'base.html' %} {% block content %}
<div></div>
<div>
<table>
<thead>
<tr>
<th>NodeName</th>
<th>Country</th>
<th>City</th>
<th>peerings</th>
<th>Peer!</th>
</tr>
</thead>
{% for node in config["nodes"] %}
<tr>
<td>{{node}}</td>
<td>{{config["nodes"][node]["country"]}}</td>
<td>{{config["nodes"][node]["city"]}}</td>
<td></td>
<td><a href="peerings/new?node={{node}}">peer</a></td>
</tr>
{% endfor %}
</table>
</div>
<div>
<table>
<thead>
<tr>
<th>NodeName</th>
<th>Country</th>
<th>City</th>
<th>peerings</th>
<th>Peer!</th>
</tr>
</thead>
{% for node in config["nodes"] %}
<tr>
<td>{{node}}</td>
<td>{{config["nodes"][node]["country"]}}</td>
<td>{{config["nodes"][node]["city"]}}</td>
<td></td>
<td><a href="peerings/new?node={{node}}">peer</a></td>
</tr>
{% endfor %}
</table>
</div>
{% endblock %}
{% endblock %}