This commit is contained in:
tomek 2025-02-20 12:45:03 +00:00
parent a417c06059
commit 8ea06684a9

122
cos Normal file
View File

@ -0,0 +1,122 @@
<!DOCTYPE html>
<html lang="pl">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Formularz zamówienia</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<div class="container">
<!-- Formularz dodawania zamówienia -->
<div class="form-container">
<h2>Dodaj zamówienie</h2>
<form action="#" method="POST">
<label for="klient">Klient:</label>
<input type="text" id="klient" name="klient" required>
<label for="data-zamowienia">Data zamówienia:</label>
<input type="date" id="data-zamowienia" name="data-zamowienia" required>
<label for="kwota">Kwota:</label>
<input type="number" id="kwota" name="kwota" required>
<button type="submit">Dodaj</button>
</form>
</div>
<!-- Lista zamówień -->
<div class="orders-container">
<h2>Lista zamówień</h2>
<table>
<thead>
<tr>
<th>Klient</th>
<th>Data</th>
<th>Kwota</th>
</tr>
</thead>
<tbody id="orders-list">
<!-- Lista zamówień pojawi się tutaj -->
</tbody>
</table>
</div>
</div>
<script src="script.js"></script>
</body>
</html>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: Arial, sans-serif;
background-color: #f4f4f4;
}
.container {
display: flex;
justify-content: space-between;
padding: 20px;
gap: 20px;
}
.form-container, .orders-container {
background-color: white;
padding: 20px;
border-radius: 8px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
width: 48%;
}
h2 {
margin-bottom: 15px;
}
form {
display: flex;
flex-direction: column;
}
form label {
margin-bottom: 5px;
}
form input {
margin-bottom: 10px;
padding: 8px;
border: 1px solid #ccc;
border-radius: 4px;
}
form button {
padding: 10px;
background-color: #4CAF50;
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
}
form button:hover {
background-color: #45a049;
}
table {
width: 100%;
border-collapse: collapse;
margin-top: 20px;
}
th, td {
padding: 10px;
text-align: left;
border-bottom: 1px solid #ddd;
}
th {
background-color: #f2f2f2;
}