assegnazione urbackup server to an asset computer or custo asset
This commit is contained in:
@@ -1,6 +1,12 @@
|
||||
# MEMORY.md - Stato del Plugin UrBackup
|
||||
|
||||
## Ultima modifica: 07/08/2026
|
||||
## Ultima modifica: 25/08/2026
|
||||
|
||||
## 25/08/2026 — Blocco "This asset hosts the UrBackup server" in evidenza (solo UI)
|
||||
- **Richiesta utente**: mettere in evidenza con riquadro colorato il blocco host + nome del server UrBackup.
|
||||
- **Modifiche**: `AssetTab.php::showHostServerBlock()` — classi dedicate `plugin-urbackup-host-card` / `-card-header` sul card Bootstrap e `plugin-urbackup-host-server-link` sui link server; `public/css/urbackup.css` — card con bordo 2px #1e6091, header blu #1e6091 testo bianco, body #eaf3fa, link server bold 1.05rem.
|
||||
- Nessun bump versione (nessuna modifica DB, regola 6); nessuna nuova stringa i18n.
|
||||
- Verifiche IA: `php -l` OK; git diff autorevisione OK. Verifica visiva browser = **utente** (regola 7).
|
||||
|
||||
## 07/08/2026 — Fix dropdown "Hardware host" (0.7.3): elemento non compariva
|
||||
- **Sintomo utente**: scelto il tipo host (es. Computer) nel form server, il dropdown degli elementi non compariva.
|
||||
|
||||
@@ -85,3 +85,23 @@
|
||||
background-color: #6c757d;
|
||||
border-color: #6c757d;
|
||||
}
|
||||
|
||||
/* Highlighted block: this asset hosts the UrBackup server */
|
||||
.plugin-urbackup-host-card {
|
||||
border: 2px solid #1e6091;
|
||||
}
|
||||
|
||||
.plugin-urbackup-host-card .card-header.plugin-urbackup-host-card-header {
|
||||
background-color: #1e6091;
|
||||
color: #fff;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.plugin-urbackup-host-card .card-body {
|
||||
background-color: #eaf3fa;
|
||||
}
|
||||
|
||||
.plugin-urbackup-host-card .plugin-urbackup-host-server-link {
|
||||
font-size: 1.05rem;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
+10
-5
@@ -133,16 +133,21 @@ class AssetTab extends CommonDBTM
|
||||
return;
|
||||
}
|
||||
|
||||
echo "<div class='card mb-3'>";
|
||||
echo "<div class='card-header'><i class='ti ti-server me-1'></i> " .
|
||||
htmlspecialchars(__('This asset hosts the UrBackup server', 'urbackup')) . "</div>";
|
||||
echo "<div class='card mb-3 plugin-urbackup-host-card'>";
|
||||
echo "<div class='card-header plugin-urbackup-host-card-header'>" .
|
||||
"<i class='ti ti-server me-1'></i> " .
|
||||
htmlspecialchars(__('This asset hosts the UrBackup server', 'urbackup')) .
|
||||
"</div>";
|
||||
echo "<div class='card-body py-3'>";
|
||||
echo "<ul class='mb-0'>";
|
||||
foreach ($hostingServers as $serverRow) {
|
||||
$serverId = (int) ($serverRow['id'] ?? 0);
|
||||
$serverName = (string) ($serverRow['name'] ?? '');
|
||||
echo "<li><a href='" . htmlspecialchars(Server::getFormURLWithID($serverId)) . "'>" .
|
||||
htmlspecialchars($serverName) . "</a></li>";
|
||||
echo "<li>" .
|
||||
"<a class='plugin-urbackup-host-server-link' href='" .
|
||||
htmlspecialchars(Server::getFormURLWithID($serverId)) . "'>" .
|
||||
htmlspecialchars($serverName) .
|
||||
"</a></li>";
|
||||
}
|
||||
echo "</ul>";
|
||||
echo "</div>";
|
||||
|
||||
Reference in New Issue
Block a user