feature/UI-Update (#8)

Co-authored-by: blaerf <blaerf@gmx.de>
Reviewed-on: https://git.eckertplayground.de/taarly/PHP_AdminTool_Projekt/pulls/8
This commit is contained in:
blaerf 2025-11-28 21:58:13 +00:00
parent cfcc8f2d0c
commit bef54a7553
7 changed files with 68 additions and 68 deletions

View File

@ -27,17 +27,44 @@ function renderLayout(string $contentView, array $viewData, string $pageTitle, ?
} }
$partialsPath = __DIR__ . '/partials'; $partialsPath = __DIR__ . '/partials';
require $partialsPath . '/head.php';
require $partialsPath . '/sidebar.php';
require $partialsPath . '/topbar.php';
?> ?>
<!DOCTYPE html>
<html lang="de">
<!-- Begin Head -->
<?php require $partialsPath . '/head.php'; ?>
<!-- End of Head -->
<body id="page-top">
<!-- Page Wrapper -->
<div id="wrapper">
<!-- Begin Sidebar -->
<?php require $partialsPath . '/sidebar.php'; ?>
<!-- End of Sidebar -->
<!-- Content Wrapper -->
<div id="content-wrapper" class="d-flex flex-column">
<!-- Main Content -->
<div id="content">
<!-- Begin Topbar -->
<?php require $partialsPath . '/topbar.php'; ?>
<!-- End of Topbar -->
<!-- Begin Page Content --> <!-- Begin Page Content -->
<div class="container-fluid"> <div class="container-fluid">
<?php require $contentView; ?> <?php require $contentView; ?>
</div> </div>
<!-- /.container-fluid --> <!-- End of Page Content -->
</div>
<!-- End of Main Content -->
<!-- Begin Footer -->
<?php require $partialsPath . '/footer.php'; ?>
<!-- End of Footer -->
</div>
<!-- End of Content Wrapper -->
</div>
<!-- End of Page Wrapper -->
<?php require $partialsPath . '/scripts.php';
?>
</body>
</html>
<?php <?php
require $partialsPath . '/footer.php';
require $partialsPath . '/scripts.php';
} }

View File

@ -17,7 +17,7 @@ declare(strict_types=1);
<div class="text-center mb-4"> <div class="text-center mb-4">
<h1 class="h4 text-gray-900">Willkommen beim AD Admin Tool</h1> <h1 class="h4 text-gray-900">Willkommen beim AD Admin Tool</h1>
<p class="text-muted mb-0"> <p class="text-muted mb-0">
Anmeldung gegen Active Directory per LDAP/LDAPS. Dies ist unser Testserver für den <code>develop</code> Branch.
</p> </p>
</div> </div>
@ -27,7 +27,7 @@ declare(strict_types=1);
</div> </div>
<?php endif; ?> <?php endif; ?>
<form class="user" action="index.php?route=login.submit" method="post" novalidate> <form class="user" action="../index.php?route=login.submit" method="post" novalidate>
<div class="form-group"> <div class="form-group">
<label for="username">Benutzername</label> <label for="username">Benutzername</label>
<input type="text" <input type="text"
@ -54,7 +54,7 @@ declare(strict_types=1);
<hr> <hr>
<p class="small text-muted mb-0"> <p class="small text-muted mb-0">
Die Zugangsdaten werden nicht gespeichert sie werden nur zur Anmeldung am AD verwendet. Die Zugangsdaten werden nicht gespeichert.
</p> </p>
</div> </div>
</div> </div>

View File

@ -1,13 +1,8 @@
<?php <?php
// public/views/partials/footer.php // public/views/partials/footer.php
?> ?>
</div>
<!-- /.container-fluid -->
</div>
<!-- End of Main Content -->
<!-- Footer -->
<footer class="sticky-footer bg-white"> <footer class="sticky-footer bg-white">
<div class="container my-auto"> <div class="container my-auto">
<div class="copyright text-center my-auto"> <div class="copyright text-center my-auto">
@ -15,10 +10,3 @@
</div> </div>
</div> </div>
</footer> </footer>
<!-- End of Footer -->
</div>
<!-- End of Content Wrapper -->
</div>
<!-- End of Page Wrapper -->

View File

@ -1,8 +1,7 @@
<?php <?php
// public/views/partials/head.php // public/views/partials/head.php
?> ?>
<!DOCTYPE html>
<html lang="de">
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
@ -17,7 +16,4 @@
<link href="../../vendor/datatables/dataTables.bootstrap4.min.css" rel="stylesheet"> <link href="../../vendor/datatables/dataTables.bootstrap4.min.css" rel="stylesheet">
</head> </head>
<body id="page-top">
<!-- Page Wrapper -->
<div id="wrapper">

View File

@ -26,5 +26,4 @@
<script src="../../js/demo/chart-area-demo.js"></script> <script src="../../js/demo/chart-area-demo.js"></script>
<script src="../../js/demo/chart-pie-demo.js"></script> <script src="../../js/demo/chart-pie-demo.js"></script>
</body>
</html>

View File

@ -1,7 +1,7 @@
<?php <?php
// public/views/partials/sidebar.php // public/views/partials/sidebar.php
?> ?>
<!-- Sidebar -->
<ul class="navbar-nav bg-gradient-primary sidebar sidebar-dark accordion" id="accordionSidebar"> <ul class="navbar-nav bg-gradient-primary sidebar sidebar-dark accordion" id="accordionSidebar">
<!-- Sidebar - Brand --> <!-- Sidebar - Brand -->
@ -46,4 +46,3 @@
</div> </div>
</ul> </ul>
<!-- End of Sidebar -->

View File

@ -1,13 +1,8 @@
<?php <?php
// public/views/partials/topbar.php // public/views/partials/topbar.php
?> ?>
<!-- Content Wrapper -->
<div id="content-wrapper" class="d-flex flex-column">
<!-- Main Content -->
<div id="content">
<!-- Topbar -->
<nav class="navbar navbar-expand navbar-light bg-white topbar mb-4 static-top shadow"> <nav class="navbar navbar-expand navbar-light bg-white topbar mb-4 static-top shadow">
<!-- Sidebar Toggle (Topbar) --> <!-- Sidebar Toggle (Topbar) -->
@ -43,7 +38,3 @@
</ul> </ul>
</nav> </nav>
<!-- End of Topbar -->
<!-- Begin Page Content -->
<div class="container-fluid">