Lekcja 08 projekt auta cz1

This commit is contained in:
aplikacje committed 2026-10-22 10:52:16 +02:00
1 parent 8fc98ebf9d
commit d60f8a91a7
1543 files changed
+255781

No files matched your search

+28
View File
@@ -0,0 +1,28 @@
<h2>add car</h2>
<section>
{{#if added_model}}
{{#if added_id}}
<p class="notification-green">new car (Model: {{added_model}}) with id = {{added_id}} added to database</p>
{{/if}}
{{/if}}
<form method="post">
<div id="list-item">
<label id="list-label" for="ubezpieczony">Ubezpieczony<div class="dots"></div></label>
<input type="checkbox" name="ubezpieczony" id="ubezpieczony">
</div>
<div id="list-item">
<label id="list-label" for="benzyna">Benzyna<div class="dots"></div></label>
<input type="checkbox" name="benzyna" id="benzyna">
</div>
<div id="list-item">
<label id="list-label" for="uszkodzony">Uszkodzony<div class="dots"></div></label>
<input type="checkbox" name="uszkodzony" id="uszkodzony">
</div>
<div id="list-item">
<label id="list-label" for="naped4x4">Napęd 4x4<div class="dots"></div></label>
<input type="checkbox" name="naped4x4" id="naped4x4">
</div>
<input type="hidden" name="model" value="{{model}}">
<input type="submit" value="add">
</form>
</section>
View File
Whitespace-only changes.
View File
Whitespace-only changes.
+1
View File
@@ -0,0 +1 @@
<h1>cars project</h1>
+23
View File
@@ -0,0 +1,23 @@
<!DOCTYPE html>
<html lang="pl">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>cars project</title>
<link rel="stylesheet" href="/css/style.css">
</head>
<body>
<nav>
<a href="/">Cars</a>
<a href="/add">Add</a>
<a href="/list">List</a>
<a href="/delete">Delete</a>
<a href="/edit">Edit</a>
<a href="/search">Search</a>
</nav>
{{{ body }}}
</body>
</html>
+28
View File
@@ -0,0 +1,28 @@
<h2>list cars</h2>
<section>
<table>
<tr>
<th>_id</th>
<th>model</th>
<th>ubezpieczony</th>
<th>benzyna</th>
<th>uszkodzony</th>
<th>naped4x4</th>
<th></th>
</tr>
{{#each car}}
<tr>
<td>{{_id}}</td>
<td>{{model}}</td>
<td>{{ubezpieczony}}</td>
<td>{{benzyna}}</td>
<td>{{uszkodzony}}</td>
<td>{{naped4x4}}</td>
<td style="text-align: center;">
<button
onclick="alert(`id: {{_id}}\nModel: {{model}}\nubezpieczony: {{ubezpieczony}}\nbenzyna: {{benzyna}}\nuszkodzony: {{uszkodzony}}\nnaped4x4: {{naped4x4}}`);">INFO</button>
</td>
</tr>
{{/each}}
</table>
</section>
View File
Whitespace-only changes.