mirror of
https://github.com/TakeusV1/flask_ipam.git
synced 2026-10-14 01:15:33 +02:00
V1.0
This commit is contained in:
1 parent
f11aa2d6c6
commit
85969350bc
13 files changed
+146
-29
No files matched your search
@@ -0,0 +1,61 @@
|
||||
{% extends 'panel/_base.html' %}
|
||||
{% block content %}
|
||||
{% include 'panel/_nav.html' %}
|
||||
{% include 'panel/_flash.html' %}
|
||||
<div class="container" style="margin-top:5vh;">
|
||||
<div class="row">
|
||||
<!-- PREFIXES TABLE -->
|
||||
<div class="col-9">
|
||||
<table class="table table-striped table-hover">
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">#</th>
|
||||
<th scope="col">Subnet</th>
|
||||
<th scope="col">Prefix</th>
|
||||
<th scope="col">Usage</th>
|
||||
<th scope="col">Description</th>
|
||||
<th scope="col">Actions</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for network in prefixes %}
|
||||
<tr>
|
||||
<th scope="row">{{network.id}}</th>
|
||||
<td>{{network.network_address}}</td>
|
||||
<td>{{network.prefix}}</td>
|
||||
<td>X / {{network.hosts}} </td>
|
||||
<td>{{network.description}}</td>
|
||||
<td>
|
||||
<button class="btn btn-sm btn-outline-info" style="padding-top:1px;padding-bottom:1px">calculate</button>
|
||||
<button class="btn btn-sm btn-outline-danger"style="padding-top:1px;padding-bottom:1px">delete</button>
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- PREFIX FORM -->
|
||||
<div class="col-3">
|
||||
<div class="card p-4 shadow rounded-3">
|
||||
<h2 class="text-center mb-4">Add Network</h2>
|
||||
<form method="POST">
|
||||
{{ form.csrf_token }}
|
||||
<div class="mb-3">
|
||||
<label for="subnet" class="form-label">Subnet</label>
|
||||
{{ form.subnet(class="form-control", placeholder="192.168.0.0") }}
|
||||
</div>
|
||||
<div class="mb-3">
|
||||
<label for="prefix" class="form-label">Prefix</label>
|
||||
{{ form.prefix(class="form-control", placeholder="24") }}
|
||||
</div>
|
||||
<div class="mb-3">
|
||||
<label for="description" class="form-label">Description</label>
|
||||
{{ form.description(class="form-control", placeholder="local area network...") }}
|
||||
</div>
|
||||
<button type="submit" class="btn btn-secondary w-100">Submit</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
Reference in new issue
Block a user