NeDB, na razie bez ostatniego ćwiczenia

This commit is contained in:
floriano committed 2026-10-19 18:11:40 +02:00
1 parent a1f73fe0c1
commit 8fc98ebf9d
1516 files changed
+255410

No files matched your search

+19
View File
@@ -0,0 +1,19 @@
<form action="/usun" method="post">
<table>
<tr>
<th>nazwa</th>
<th>cena</th>
<th>usun</th>
</tr>
{{#each docs}}
<tr>
<td>{{name}}</td>
<td>{{price}}</td>
<td><input type="checkbox" name="remove" id="remove_{{ _id }}" value="{{ _id }}"></td>
</tr>
{{/each}}
</table>
<input type="submit" value="Usuń">
</form>
<button onclick="window.location = '/przywroc'">Przywróć</button>
+12
View File
@@ -0,0 +1,12 @@
<!DOCTYPE html>
<html lang="pl">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>NeDB</title>
<link rel="stylesheet" href="css/style.css">
</head>
<body>
{{{ body }}}
</body>
</html>
+14
View File
@@ -0,0 +1,14 @@
<table>
<tr>
<th>login</th>
<th>hasło xd</th>
<th>utworzono</th>
</tr>
{{#each docs}}
<tr>
<td>{{login}}</td>
<td>{{password}}</td>
<td>{{timestamp}}</td>
</tr>
{{/each}}
</table>