mirror of
https://github.com/TakeusV1/flask_ipam.git
synced 2026-10-13 17:15:33 +02:00
DEV V1.2
This commit is contained in:
1 parent
a9e8a70df5
commit
eefc23fad8
14 files changed
+406
-326
No files matched your search
@@ -9,7 +9,7 @@
|
||||
<div class="mb-3">
|
||||
<input class="form-control" type="search"
|
||||
name="search" placeholder="Begin Typing To Search Users..."
|
||||
hx-post="{{ url_for('base.allocation_search',net_id=network.id) }}"
|
||||
hx-post="{{ url_for('network.allocation_search',net_id=network.id) }}"
|
||||
hx-trigger="input changed delay:500ms, keyup[key=='Enter']"
|
||||
hx-target="#search-results"
|
||||
hx-indicator=".htmx-indicator"
|
||||
@@ -36,28 +36,6 @@
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- IPV4 FORM
|
||||
<div class="col-3">
|
||||
<div class="card p-4 shadow rounded-3">
|
||||
<h2 class="text-center mb-4">Add IPv4</h2>
|
||||
<form method="POST">
|
||||
{{ form.csrf_token }}
|
||||
<div class="mb-3">
|
||||
<label class="form-label">IPv4</label>
|
||||
{{ form.ipv4(class="form-control", placeholder=network.network_address) }}
|
||||
</div>
|
||||
<div class="mb-3">
|
||||
<label class="form-label">Hostname</label>
|
||||
{{ form.host_name(class="form-control", placeholder="example") }}
|
||||
</div>
|
||||
<div class="mb-3">
|
||||
<label class="form-label">Description</label>
|
||||
{{ form.host_desc(class="form-control", placeholder="webserver") }}
|
||||
</div>
|
||||
<button type="submit" class="btn btn-secondary w-100">Submit</button>
|
||||
</form>
|
||||
</div>
|
||||
</div> -->
|
||||
</div>
|
||||
<div class="d-flex justify-content-between">
|
||||
<nav>
|
||||
@@ -68,12 +46,6 @@
|
||||
{% if allocations.has_next %}
|
||||
<li class="page-item"><a class="page-link" href="?page={{next_page}}">Next</a></li>
|
||||
{% endif %}
|
||||
<!--
|
||||
{% for page in range(allocations.pages+1) %}
|
||||
{% if page != 0%}
|
||||
<li class="page-item"><a class="page-link {%if page==active_page%}active{%endif%}" href="?page={{page}}">{{page}}</a></li>
|
||||
{% endif %}
|
||||
{% endfor %}-->
|
||||
</ul>
|
||||
</nav>
|
||||
<div>
|
||||
|
||||
Reference in new issue
Block a user