Initial content

This commit is contained in:
Adam Freeman
2024-05-29 18:54:49 +01:00
parent 2dbc1a8088
commit 5215a1d919
1944 changed files with 203378 additions and 0 deletions
@@ -0,0 +1,12 @@
<div class="h2 bg-danger text-white text-center p-2 my-2">
500 - Error
</div>
<div class="text-center">
<a class="btn btn-secondary" href="/">OK</a>
</div>
{{#if (isDevelopment) }}
<div class="h4 bg-danger text-white p-1 mt-2">Error Details</div>
<div class="h5 p-1">Message: {{ error.message }}</div>
<div class="font-monospace p-1">{{error.stack}}</div>
{{/if }}
@@ -0,0 +1,17 @@
<table class="table table-sm table-striped">
<thead>
<tr>
<th>ID</th><th>Name</th><th>Description</th>
<th>Price</th><th>Category</th><th>Supplier</th>
</tr>
</thead>
<tbody>
{{#each products }}
<tr>
<td>{{id}}</td><td>{{name}}</td>
<td>{{description}}</td><td>{{price}}</td>
<td>{{category.name}}</td><td>{{supplier.name}}</td>
</tr>
{{/each}}
</tbody>
</table>
@@ -0,0 +1,12 @@
<!DOCTYPE html>
<html>
<head>
<link href="/css/bootstrap.min.css" rel="stylesheet" />
</head>
<body>
<div class="bg-dark text-white p-2">
<span class="navbar-brand ml-2">SPORTS STORE</span>
</div>
{{{ body }}}
</body>
</html>
@@ -0,0 +1,6 @@
<div class="h2 bg-danger text-white text-center p-2 my-2">
404 - Not Found
</div>
<div class="text-center">
<a class="btn btn-secondary" href="/">OK</a>
</div>