diff options
Diffstat (limited to 'portal-gui/rpkigui/templates/myrpki/asn_view.html')
-rw-r--r-- | portal-gui/rpkigui/templates/myrpki/asn_view.html | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/portal-gui/rpkigui/templates/myrpki/asn_view.html b/portal-gui/rpkigui/templates/myrpki/asn_view.html new file mode 100644 index 00000000..587b73db --- /dev/null +++ b/portal-gui/rpkigui/templates/myrpki/asn_view.html @@ -0,0 +1,53 @@ +{% extends "base.html" %} + +{% block content %} +<p>Handle: <a href="/myrpki/">{{ request.session.handle }}</a> + +<h1>ASN View</h1> + +<table> + <tr> <td>ASN:</td><td>{{ asn }}</td> </tr> + {% if asn.parent %} + <tr> + <td>Suballocated from:</td> + <td><a href="{{ asn.parent.get_absolute_url }}">{{ asn.parent }}</a></td> + </tr> + {% endif %} + <tr> + <td>Received from:</td> + <td> + {% for p in parent %} + <a href="{{ p.get_absolute_url }}">{{ p.handle }}</a> + {% endfor %} + </td> + </tr> + <tr><td>Validity:</td><td>{{ asn.from_cert.all.0.not_before }} - {{ asn.from_cert.all.0.not_after }} </td></tr> + + {% if asn.allocated %} + <tr><td>Allocated:</td><td><a href="{{asn.allocated.get_absolute_url}}">{{asn.allocated.handle}}</a></td></tr> + {% endif %} +</table> + +{% if asn.children.count %} +<h2>Suballocations</h2> + +<ul> +{% for subaddr in asn.children.all %} +<li><a href="{{ subaddr.get_absolute_url }}">{{ subaddr }}</a> +{% endfor %} +</ul> + +{% endif %} + +{% if form %} +<h2>Edit</h2> +<form method="POST" action="{{ request.get_full_path }}"> + {{ form.as_p }} + <input type="submit"> +</form> +{% endif %} + +<p>Action: +<a href="{{asn.get_absolute_url}}/allocate">give to child</a> + +{% endblock %} |