mirror of
https://github.com/TakeusV1/flask_ipam.git
synced 2026-10-13 17:15:33 +02:00
V1.2
This commit is contained in:
1 parent
eefc23fad8
commit
06b7efd58b
12 files changed
+483
-73
No files matched your search
@@ -5,7 +5,16 @@
|
||||
<td>{{allocation.description}}</td>
|
||||
<td>
|
||||
{% if Inventory.query.filter_by(id=allocation.device_id).first() %}
|
||||
<a href="{{Inventory.query.filter_by(id=allocation.device_id).first().id}}" style="text-decoration:none;">link</a>
|
||||
<button
|
||||
hx-get="{{ url_for('inventory.item_view_modal',item_id=allocation.device_id) }}"
|
||||
hx-trigger="click"
|
||||
hx-target="#modal-view"
|
||||
data-bs-toggle="modal"
|
||||
data-bs-target="#modal-view"
|
||||
class="btn btn-sm btn-outline-primary"
|
||||
style="padding-top:1px;padding-bottom:1px"
|
||||
> Details
|
||||
</button>
|
||||
{% else %}
|
||||
N/A
|
||||
{% endif %}
|
||||
@@ -13,6 +22,7 @@
|
||||
<td>{{allocation.is_dhcp}}</td>
|
||||
<td>{{allocation.is_gateway}}</td>
|
||||
<td>{{allocation.is_decom}}</td>
|
||||
{% if current_user.is_reado == False %}
|
||||
<td>
|
||||
{% if allocation.is_used %}
|
||||
<button
|
||||
@@ -53,5 +63,6 @@
|
||||
</button>
|
||||
{% endif %}
|
||||
</td>
|
||||
{% endif %}
|
||||
</tr>
|
||||
{% endfor %}
|
||||
Reference in new issue
Block a user