dnmgmt/templates/whoisdb/overview.html

98 lines
3.6 KiB
HTML
Raw Permalink Normal View History

2017-02-23 22:28:06 +01:00
{% extends "base.html" %}
{% load crispy_forms_tags %}
2017-03-20 00:16:33 +01:00
{% load handletags %}
2017-02-23 22:28:06 +01:00
{% block content %}
<div class="row">
<div class="col-sm-12">
<div class="panel panel-default">
2017-03-20 00:16:33 +01:00
<div class="panel-heading">Whois Database Objects</div>
2017-02-23 22:28:06 +01:00
<div class="panel-body">
{% if mnts %}
2017-03-20 00:16:33 +01:00
<p>
You can create new database objects <a href="{% url "whoisdb:createObjectOverview" %}">here</a>.
2017-03-27 01:09:40 +02:00
{% if hasDelegations %}
2017-10-12 21:31:03 +02:00
{% if not showDelegations %}
2017-04-15 16:59:37 +02:00
See <a href="?delegated=1">also lir/rir objects</a>.
2017-10-12 21:31:03 +02:00
{% else %}
See <a href="?">only non-lir/rir objects</a>.
{% endif %}
2017-03-27 01:09:40 +02:00
{% endif %}
2017-03-20 00:16:33 +01:00
</p>
</p>
2017-03-25 04:43:20 +01:00
Create <a href="{% url "whoisdb:maintainer-create" %}">new Maintainer</a>, create <a href="{% url "whoisdb:contact-create" %}">new Contact</a>, <a href="{% url "rrequests:dashboard" %}">request resources</a>{% if netblocks %}, create <a href="{% url "whoisdb:inetnum-create" %}">Subnet</a>{% endif %}{% if asblocks %}, create <a href="{% url "whoisdb:asnumber-create" %}">AS</a>, create <a href="{% url "whoisdb:asblock-create" %}">ASblock</a>{% endif %}{% if netblocks and asblocks %}, create <a href="{% url "whoisdb:asandsubnet-wizard" %}">AS / Subnet pair</a>{% endif %}
2017-03-20 00:16:33 +01:00
</p>
<!--
<h3>Create Database Objects</h3>
2017-02-24 03:43:59 +01:00
<ul>
2017-03-25 04:43:20 +01:00
<li><a href="{% url "whoisdb:maintainer-create" %}">Create new Maintainer</a></li>
2017-02-28 19:44:15 +01:00
<li><a href="{% url "whoisdb:contact-create" %}">Create new Role/Person</a></li>
2017-03-14 20:18:57 +01:00
<li><a href="{% url "rrequests:dashboard" %}">Request resources</a></li>
2017-02-28 19:44:15 +01:00
{% if netblocks %}
<li><a href="{% url "whoisdb:inetnum-create" %}">Create Subnet</a></li>
2017-02-24 03:43:59 +01:00
{% endif %}
2017-02-28 19:44:15 +01:00
{% if asblocks %}
<li><a href="{% url "whoisdb:asnumber-create" %}">Create AS</a></li>
<li><a href="{% url "whoisdb:asblock-create" %}">Create ASblock</a></li>
2017-02-24 03:43:59 +01:00
{% endif %}
</ul>
2017-02-23 22:28:06 +01:00
2017-03-20 00:16:33 +01:00
<h3>Your Database Objects</h3>
-->
2017-02-24 03:43:59 +01:00
<table class="table">
<thead>
<tr>
<th>Handle</th>
2017-02-28 19:44:15 +01:00
<th>Type</th>
2017-03-20 00:16:33 +01:00
<th>Name</th>
<th>Resource</th>
<th>Maintained</th>
2017-02-24 03:43:59 +01:00
<th>Contact</th>
<th>Actions</th>
</tr>
</thead>
<tbody>
{% for mnt in mnts %}
2017-03-25 04:43:20 +01:00
{% include "whoisdb/handle_table_row.html" with obj=mnt objType="Maintainer" prefix="maintainer" %}
2017-02-28 19:44:15 +01:00
{% endfor %}
{% for contact in contacts %}
{% include "whoisdb/handle_table_row.html" with obj=contact objType="Contact / Role" prefix="contact" %}
{% endfor %}
{% for asblock in asblocks %}
{% include "whoisdb/handle_table_row.html" with obj=asblock objType="AS Block" prefix="asblock" %}
2017-02-28 19:44:15 +01:00
{% endfor %}
{% for asnumber in asnumbers %}
{% include "whoisdb/handle_table_row.html" with obj=asnumber objType="AS Number" prefix="asnumber" %}
2017-02-28 19:44:15 +01:00
{% endfor %}
{% for netblock in netblocks %}
2017-03-01 03:21:03 +01:00
{% include "whoisdb/handle_table_row.html" with obj=netblock objType="IP Netblock" prefix="inetnum" %}
2017-02-24 03:43:59 +01:00
{% endfor %}
</tbody>
</table>
{% else %}
You don't have a maintainer! Start by creating a Maintainer and a Person Object!
2017-02-23 22:28:06 +01:00
<form action="{% url "whoisdb:dashboard" %}" method="post">
{% csrf_token %}
<h3>Maintainer Object</h3>
<small>This object will be used to identify resources you are allowed
to edit via your maintainer</small>
{{ mntForm | crispy }}
<h3>Person Object</h3>
<small>This object will be used to identify yourself as a person to other people, used for your maintainer object</small>
{{ contactForm | crispy }}
<button type="submit" class="btn btn-primary">Create</button>
</form>
{% endif %}
</div>
</div>
</div>
</div>
{% endblock %}