srv/poe_manager/templates/index.html aktualisiert
This commit is contained in:
@@ -48,6 +48,7 @@ document.addEventListener("DOMContentLoaded", () => {
|
|||||||
let lastUpdateTime = Date.now();
|
let lastUpdateTime = Date.now();
|
||||||
let selectedCard = null;
|
let selectedCard = null;
|
||||||
let selectedMac = null;
|
let selectedMac = null;
|
||||||
|
let selectedName = null;
|
||||||
|
|
||||||
const deviceModal = new bootstrap.Modal(
|
const deviceModal = new bootstrap.Modal(
|
||||||
document.getElementById("deviceModal")
|
document.getElementById("deviceModal")
|
||||||
@@ -111,6 +112,7 @@ document.addEventListener("DOMContentLoaded", () => {
|
|||||||
card.addEventListener("click", function () {
|
card.addEventListener("click", function () {
|
||||||
selectedCard = this;
|
selectedCard = this;
|
||||||
selectedMac = this.dataset.mac;
|
selectedMac = this.dataset.mac;
|
||||||
|
selectedName = this.dataset.name;
|
||||||
document.getElementById("deviceModalTitle").innerText =
|
document.getElementById("deviceModalTitle").innerText =
|
||||||
this.dataset.name;
|
this.dataset.name;
|
||||||
document.getElementById("deviceIp").innerText =
|
document.getElementById("deviceIp").innerText =
|
||||||
@@ -141,79 +143,54 @@ document.addEventListener("DOMContentLoaded", () => {
|
|||||||
id="deviceModal"
|
id="deviceModal"
|
||||||
tabindex="-1"
|
tabindex="-1"
|
||||||
aria-hidden="true">
|
aria-hidden="true">
|
||||||
|
|
||||||
<div class="modal-dialog">
|
<div class="modal-dialog">
|
||||||
|
|
||||||
<div class="modal-content">
|
<div class="modal-content">
|
||||||
|
|
||||||
<div class="modal-header">
|
<div class="modal-header">
|
||||||
|
|
||||||
<h5
|
<h5
|
||||||
id="deviceModalTitle"
|
id="deviceModalTitle"
|
||||||
class="modal-title">
|
class="modal-title">
|
||||||
</h5>
|
</h5>
|
||||||
|
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
class="btn-close"
|
class="btn-close"
|
||||||
data-bs-dismiss="modal"
|
data-bs-dismiss="modal"
|
||||||
aria-label="Schließen">
|
aria-label="Schließen">
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
|
|
||||||
<table class="table table-sm align-middle mb-0">
|
<table class="table table-sm align-middle mb-0">
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<th style="width:120px;">IP-Adresse</th>
|
<th style="width:120px;">IP-Adresse</th>
|
||||||
<td id="deviceIp"></td>
|
<td id="deviceIp"></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<th>Switch</th>
|
<th>Switch</th>
|
||||||
<td id="deviceSwitch"></td>
|
<td id="deviceSwitch"></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<th>Port</th>
|
<th>Port</th>
|
||||||
<td id="devicePort"></td>
|
<td id="devicePort"></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<th>Status</th>
|
<th>Status</th>
|
||||||
<td id="deviceStatus"></td>
|
<td id="deviceStatus"></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
|
|
||||||
<button
|
<button
|
||||||
id="restartButton"
|
id="restartButton"
|
||||||
class="btn btn-warning">
|
class="btn btn-warning">
|
||||||
|
|
||||||
🔄 Neustarten
|
🔄 Neustarten
|
||||||
|
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
<button
|
<button
|
||||||
class="btn btn-secondary"
|
class="btn btn-secondary"
|
||||||
data-bs-dismiss="modal">
|
data-bs-dismiss="modal">
|
||||||
|
|
||||||
Schließen
|
Schließen
|
||||||
|
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- ========================================================= -->
|
<!-- ========================================================= -->
|
||||||
|
|||||||
Reference in New Issue
Block a user