dnmgmt/templates/whoisdb/overview.html

71 lines
1.8 KiB
HTML

{% extends "base.html" %}
{% load crispy_forms_tags %}
{% block content %}
<div class="row">
<div class="col-sm-12">
<div class="panel panel-default">
<div class="panel-heading">Header</div>
<div class="panel-body">
{% if mnts %}
<ul>
<li><a href="">Create new Maintainer</a></li>
<li><a href="">Create new Role/Person</a></li>
<li><a href="">Request resources</a></li>
{% if netblock %}
<li><a href="">Create Subnet</a></li>
{% endif %}
{% if asblock %}
<li><a href="">Create AS</a></li>
<li><a href="">Create ASblock</a></li>
{% endif %}
</ul>
You have the following Maintainers associated with you
<table class="table">
<thead>
<tr>
<th>Handle</th>
<th>Name?</th>
<th>Contact</th>
<th>Actions</th>
</tr>
</thead>
<tbody>
{% for mnt in mnts %}
<tr>
<td>{{ mnt.handle }}</td>
<td>{{ mnt.description }}</td>
<td>{% for contact in mnt.admin_c.all %}{{ contact }}{% endfor %}</td>
<td></td>
</tr>
{% endfor %}
</tbody>
</table>
{% else %}
You don't have a maintainer! Start by creating a Maintainer and a Person Object!
<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 %}