mirror of
https://github.com/TakeusV1/flask_ipam.git
synced 2026-10-13 17:15:33 +02:00
V1.0
This commit is contained in:
1 parent
602bb7d706
commit
9f9f90422a
7 files changed
+74
-25
No files matched your search
@@ -10,7 +10,7 @@
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>
|
||||
{% if modal.action == 'delete' %}
|
||||
<a href="{{modal.action_url}}" class="btn btn-{{modal.color}}">{{modal.action_text}}</a>
|
||||
<a href="{{modal.action_url}}?page={{old_page}}" class="btn btn-{{modal.color}}">{{modal.action_text}}</a>
|
||||
{% else %}
|
||||
<button type="button" class="btn btn-primary">Save changes</button>
|
||||
{% endif %}
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
<td>
|
||||
<a href="" class="btn btn-sm btn-outline-info" style="padding-top:1px;padding-bottom:1px">edit</a>
|
||||
<button
|
||||
hx-get="{{ url_for('base.allocation_del_modal',net_id=network.id,ipv4=allocation.ipv4) }}"
|
||||
hx-get="{{ url_for('base.allocation_del_modal',net_id=network.id,ipv4=allocation.ipv4) }}?page={{active_page}}"
|
||||
hx-trigger="click"
|
||||
hx-target="#modal-get"
|
||||
data-bs-toggle="modal"
|
||||
@@ -73,6 +73,13 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<nav class="d-flex flex-row justify-content-center align-items-center">
|
||||
<ul class="pagination">
|
||||
{% for page in allocations.iter_pages() %}
|
||||
<li class="page-item"><a class="page-link" href="?page={{page}}">{{page}}</a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</nav>
|
||||
<!-- MODAL -->
|
||||
<div id="modal-get"
|
||||
class="modal modal-blur fade"
|
||||
|
||||
@@ -1,5 +1,48 @@
|
||||
{% extends 'panel/_base.html' %}
|
||||
{% block content %}
|
||||
{% include 'panel/_nav.html' %}
|
||||
|
||||
<div class="container" style="margin-top:5vh;">
|
||||
<div class="row">
|
||||
<!-- NETWORKS -->
|
||||
<div class="col-3">
|
||||
<div class="card text-bg-info mb-3">
|
||||
<div class="card-header"><i class="bi bi-globe"></i> Total Networks</div>
|
||||
<div class="card-body">
|
||||
<h5 class="card-title">Primary card title</h5>
|
||||
<p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- TOTAL IP -->
|
||||
<div class="col-3">
|
||||
<div class="card text-bg-primary mb-3">
|
||||
<div class="card-header"><i class="bi bi-broadcast-pin"></i> Total Allocations</div>
|
||||
<div class="card-body">
|
||||
<h5 class="card-title">Primary card title</h5>
|
||||
<p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- TOTAL Inventory -->
|
||||
<div class="col-3">
|
||||
<div class="card text-bg-secondary mb-3">
|
||||
<div class="card-header"><i class="bi bi-archive"></i> Total Inventory</div>
|
||||
<div class="card-body">
|
||||
<h5 class="card-title">Primary card title</h5>
|
||||
<p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Total Users -->
|
||||
<div class="col-3">
|
||||
<div class="card text-bg-secondary mb-3">
|
||||
<div class="card-header"><i class="bi bi-people"></i> Total Users</div>
|
||||
<div class="card-body">
|
||||
<h5 class="card-title">Primary card title</h5>
|
||||
<p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
@@ -23,7 +23,7 @@
|
||||
<th scope="row">{{network.id}}</th>
|
||||
<td>{{network.network_address}}</td>
|
||||
<td>{{network.prefix}}</td>
|
||||
<td>X / {{network.hosts}} </td>
|
||||
<td>{{Allocation.query.filter_by(net_id=network.id).count()}} / {{network.hosts}} </td>
|
||||
<td><b>{{network.description}}</b></td>
|
||||
<td>
|
||||
<a href="{{ url_for('base.allocations',net_id=network.id) }}" class="btn btn-sm btn-outline-info" style="padding-top:1px;padding-bottom:1px">Allocations</a>
|
||||
|
||||
Reference in new issue
Block a user