feat: Implement floors, locations, and racks management
- Added list, edit, and save functionalities for floors, locations, and racks. - Enhanced UI with search and filter options for better usability. - Implemented SVG upload for floor plans in the floors module. - Added validation for required fields in the save processes. - Improved navigation in the header to reflect new modules. - Styled forms and tables for a consistent look and feel across modules.
This commit is contained in:
@@ -27,35 +27,34 @@
|
||||
<h1>Netzwerk-Dokumentation</h1>
|
||||
|
||||
<?php
|
||||
$currentPath = parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH);
|
||||
$currentModule = $_GET['module'] ?? 'dashboard';
|
||||
|
||||
$navItems = [
|
||||
'/' => 'Dashboard',
|
||||
'/device-types' => 'Gerätetypen',
|
||||
'/devices' => 'Geräte',
|
||||
'/racks' => 'Racks',
|
||||
'/floors' => 'Grundrisse',
|
||||
'/connections' => 'Verbindungen',
|
||||
'dashboard' => 'Dashboard',
|
||||
'locations' => 'Standorte',
|
||||
'buildings' => 'Gebäude',
|
||||
'device_types' => 'Gerätetypen',
|
||||
'devices' => 'Geräte',
|
||||
'racks' => 'Racks',
|
||||
'floors' => 'Stockwerke',
|
||||
'connections' => 'Verbindungen',
|
||||
];
|
||||
?>
|
||||
|
||||
<nav class="main-nav">
|
||||
<ul>
|
||||
<?php foreach ($navItems as $url => $label): ?>
|
||||
<?php foreach ($navItems as $module => $label): ?>
|
||||
<?php
|
||||
$active = ($currentPath === $url || str_starts_with($currentPath, $url . '/'))
|
||||
? 'active'
|
||||
: '';
|
||||
$active = ($currentModule === $module) ? 'active' : '';
|
||||
?>
|
||||
<li class="<?= $active ?>">
|
||||
<a href="<?= htmlspecialchars($url) ?>">
|
||||
<?= htmlspecialchars($label) ?>
|
||||
<a href="?module=<?= $module ?>&action=list">
|
||||
<?= $label ?>
|
||||
</a>
|
||||
</li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
</header>
|
||||
|
||||
<main>
|
||||
|
||||
Reference in New Issue
Block a user