add ability to delete peerings
+ format all files + fix "selected_peering" not being defined in /peerings/edit
This commit is contained in:
parent
ff4865f4b6
commit
537400f77a
10 changed files with 464 additions and 238 deletions
45
web/frontend/peerings-delete.html
Normal file
45
web/frontend/peerings-delete.html
Normal file
|
@ -0,0 +1,45 @@
|
|||
{% extends 'base.html' %} {% block content %}
|
||||
|
||||
<form class="flex" action="" method="post">
|
||||
<div id="warning" style="background-color: yellow">
|
||||
{% if msg %}{{msg}}{% else %}confirm the deletion of this peering{% endif %}
|
||||
</div>
|
||||
<table>
|
||||
<tr>
|
||||
<td><label for="asn">ASn</label></td>
|
||||
<td>
|
||||
<input
|
||||
type="text"
|
||||
id="asn"
|
||||
readonly="readonly"
|
||||
value="{{request_args['asn']}}"
|
||||
/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="node">node</label></td>
|
||||
<td>
|
||||
<input
|
||||
type="text"
|
||||
id="node"
|
||||
readonly="readonly"
|
||||
value="{{request_args['node']}}"
|
||||
/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="confirm">confirm</label></td>
|
||||
<td>
|
||||
<input type="checkbox" name="confirm" id="delete-confirm" required />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<div>
|
||||
<a href="../peerings">
|
||||
<input type="button" class="button-green" value="back"
|
||||
/></a>
|
||||
<button type="submit" class="button-red">confirm</button>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
{% endblock %}
|
Loading…
Add table
Add a link
Reference in a new issue