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"}) %> +
+<%= user.status %> | <% } else if(user.status == "lost") { %> -<%= user.status %> | +<%= user.status %> | <% } else if(user.status == "borrowed") { %> -<%= user.status %> | +<%= user.status %> | <% } %>Edit |