diff --git a/prisma/schema.prisma b/prisma/schema.prisma index 61eecb0..b22e360 100644 --- a/prisma/schema.prisma +++ b/prisma/schema.prisma @@ -85,7 +85,6 @@ model itemCategory { Item Item[] } -/// TODO: Add relationship to StorageUnit, Item and if necessary to StorageLocation. model contactInfo { id Int @id @default(autoincrement()) type contactType @default(person) @@ -101,6 +100,7 @@ model contactInfo { Item Item[] } +/// TODO: Allow multiple types to be used? enum contactType { storageUnit owner diff --git a/src/frontend/items.eta.html b/src/frontend/items.eta.html index 8d04c74..965e467 100644 --- a/src/frontend/items.eta.html +++ b/src/frontend/items.eta.html @@ -1,8 +1,80 @@ <%~ E.includeFile("partials/head.eta.html", {"title": "Items"}) %> <%~ E.includeFile("partials/controls.eta.html", {"active": "Items"}) %> + +

Items

+
+ +
@@ -30,27 +102,27 @@ <% } else if(user.status == "stolen") { %> <% } else if(user.status == "lost") { %> - + <% } else if(user.status == "borrowed") { %> - + <% } %> <% }) %>
<%= user.status %><%= user.status %><%= user.status %><%= user.status %><%= user.status %>Edit
-
+
<% if(it.maxPages > 1) { %> + <% } %>
diff --git a/src/frontend/partials/controls.eta.html b/src/frontend/partials/controls.eta.html index df601fa..2732a35 100644 --- a/src/frontend/partials/controls.eta.html +++ b/src/frontend/partials/controls.eta.html @@ -1,39 +1,32 @@ - + + -
- -
- -