Device Update

* Detailansicht angepasst
This commit is contained in:
Daniel Spitzer
2025-05-19 21:11:45 +02:00
parent ae638f8da5
commit b89256a67d

View File

@@ -137,7 +137,7 @@
.fa-fileupload {
font-size: 28px;
color: #128a01;
color: #c76417;
margin-top: 4px;
cursor: pointer;
}
@@ -146,6 +146,17 @@
margin-top: 10px;
}
.fa-backup-check {
font-size: 25px;
color: #25b343;
margin-left: 5px;
margin-top: 7px;
}
.fa-backup-check-uncheck {
color: #ff0000;
}
</style>
<!-- start page title -->
@@ -354,7 +365,7 @@ foreach ($devicesall as $deviceall) {
<div class="col-12 col-lg-3 card-border">
<div class="overflow-auto">
<h4 class="float-left">Config Backups</h4>
<span><i class="fa-sharp fa-solid fa-arrows-spin fa-backup-check <?= ($devices->backup_check) ? '' : 'fa-backup-check-uncheck' ?>" title=" <?= ($devices->backup_check) ? 'Backup Check aktiv' : 'Backup Check inaktiv' ?>"></i></span>
<?php if ($devices->devicetype->devicemanufactor->config_backup > count()): ?>
<span><i title="Switch config" class="fa-light fa-rectangle-code code-ico"
data-toggle="modal" data-target="#configCode"></i></span>
@@ -374,7 +385,8 @@ foreach ($devicesall as $deviceall) {
class="fa-solid fa-cloud-arrow-up fa-fileupload"></i></span>
<?php endif; ?>
</div>
<div id="documents-upload" class="row mt-2 mb-2 justify-content-start" style="display: none">
<div id="documents-upload" class="row mt-2 mb-2 justify-content-start"
style="display: none">
<div class="col-5 col-lg-4 text-center"><label
class="form-label form-label-upload">Backup Upload</label></div>
<div class="col-19 col-lg-8" id="attachments" data-newkey="">
@@ -417,11 +429,11 @@ foreach ($devicesall as $deviceall) {
if ($configfileCleartext && $configfileCompressed) :
$configLinks = '<a href="' . self::getUrl("Device", "api", ['do' => 'getconfig', 'id' => $configid, 'format' => 'txt', 'filename' => $configfileCleartext]) . '">
'.strtoupper($configfileCleartextExtension).'</a> / <a href="' . self::getUrl("Device", "api", ['do' => 'getconfig', 'id' => $configid, 'format' => 'xml', 'filename' => $configfileCompressed]) . '">
'.strtoupper($configfileCompressedExtension).'</a>';
' . strtoupper($configfileCleartextExtension) . '</a> / <a href="' . self::getUrl("Device", "api", ['do' => 'getconfig', 'id' => $configid, 'format' => 'xml', 'filename' => $configfileCompressed]) . '">
' . strtoupper($configfileCompressedExtension) . '</a>';
elseif ($configfileCleartext || $configfileCompressed) :
$configLinks = '<a href="' . self::getUrl("Device", "api", ['do' => 'getconfig', 'id' => $configid, 'format' => 'txt', 'filename' => $configfileCleartext . $configfileCompressed]) . '">
'.strtoupper($configfileCleartextExtension).'</a>';
' . strtoupper($configfileCleartextExtension) . '</a>';
endif;
?>