This commit is contained in:
Mateusz779 2023-04-19 12:50:49 +02:00
parent 916b750c65
commit bfd11c6d7d
3 changed files with 24 additions and 21 deletions

View File

@ -3,6 +3,7 @@
<head>
<meta charset="UTF-8">
<title>Formularz</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
<style>
/* styl dla całej strony */
body {
@ -68,6 +69,7 @@ form button[type="submit"]:hover {
</style>
</head>
<body>
{% extends 'navbar.html' %}
<h1>Formularz tworzenia pliku konfiguracyjnego</h1>
<form method="POST" action="/api/createconf" enctype="multipart/form-data">
<label>Nazwa konfiguracji:</label><br>

View File

@ -60,27 +60,7 @@
</style>
</head>
<body>
<nav class="navbar navbar-expand-lg navbar-light bg-light">
<div class="container-fluid">
<a class="navbar-brand" href="#">Panel administracyjny</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse justify-content-end" id="navbarNav" >
<ul class="navbar-nav">
<li class="nav-item">
<a class="nav-link active" aria-current="page" href="/">Lista maszyn</a>
</li>
<li class="nav-item">
<a class="nav-link" href="/create/conf">Tworzenie obrazu</a>
</li>
<li class="nav-item">
<a class="nav-link" href="/logout">Wyloguj</a>
</li>
</ul>
</div>
</div>
</nav>
{% extends 'navbar.html' %}
<div class="container">
<h1 class="my-5">Lista maszyn</h1>
<table class="table table-striped table-hover">

21
templates/navbar.html Normal file
View File

@ -0,0 +1,21 @@
<nav class="navbar navbar-expand-lg navbar-light bg-light">
<div class="container-fluid">
<a class="navbar-brand" href="#">Panel administracyjny</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse justify-content-end" id="navbarNav" >
<ul class="navbar-nav">
<li class="nav-item">
<a class="nav-link active" aria-current="page" href="/">Lista maszyn</a>
</li>
<li class="nav-item">
<a class="nav-link" href="/create/conf">Tworzenie obrazu</a>
</li>
<li class="nav-item">
<a class="nav-link" href="/logout">Wyloguj</a>
</li>
</ul>
</div>
</div>
</nav>