- {{ modal.body|safe }}
+ {{ modal.body|safe }}
{% for entry in form %}
{% if entry.id != 'csrf_token' %}
+
{{ entry.label(class="form-label") }}
{{ entry(class="form-control") }}
+
{% endif %}
{% endfor %}
diff --git a/app/templates/panel/_search-entry.html b/app/templates/panel/_search-entry.html
new file mode 100644
index 0000000..dea87fc
--- /dev/null
+++ b/app/templates/panel/_search-entry.html
@@ -0,0 +1,49 @@
+{% for allocation in db_alloc %}
+
+ {{allocation.ipv4}}
+ {{allocation.hostname}}
+ {{allocation.description}}
+
+ {% if Inventory.query.filter_by(id=allocation.device_id).first() %}
+ link
+ {% else %}
+ N/A
+ {% endif %}
+
+
+ {% if allocation.is_used %}
+ Edit
+
+ Unallocate
+
+ {% else %}
+ Allocate
+
+ {% endif %}
+
+
+{% endfor %}
\ No newline at end of file
diff --git a/app/templates/panel/allocations.html b/app/templates/panel/allocations.html
index 0825a96..fe2245f 100644
--- a/app/templates/panel/allocations.html
+++ b/app/templates/panel/allocations.html
@@ -4,8 +4,20 @@
{% include 'panel/_flash.html' %}
+
+
-
+
@@ -16,7 +28,7 @@
Actions
-
+
{% for allocation in allocations %}
{{allocation.ipv4}}
@@ -30,6 +42,7 @@
{% endif %}
+ {% if allocation.is_used %}
Delete
+ > Unallocate
+ {% else %}
+ Allocate
+
+ {% endif %}
{% endfor %}
-
+
diff --git a/app/templates/panel/networks.html b/app/templates/panel/networks.html
index 607d156..96922e6 100644
--- a/app/templates/panel/networks.html
+++ b/app/templates/panel/networks.html
@@ -26,7 +26,7 @@
{{Allocation.query.filter_by(net_id=network.id,is_used=True).count()}} / {{network.hosts}}
{{network.description}}
- Allocations
+ Allocations