improved item information page

This commit is contained in:
2023-07-05 20:18:52 +02:00
parent b785dd8ca7
commit a7864b3c11
4 changed files with 62 additions and 1 deletions

View File

@ -0,0 +1,22 @@
<%~ E.includeFile("partials/head.eta.html", {"title": "Item Info"}) %> <%~ E.includeFile("partials/controls.eta.html", {"active": "ItemInfo"}) %> <%~ E.includeFile("./partials/deleteModal.eta.html") %>
<h1><%= it.name %></h1>
<div class="container">
<p><strong>Comment:</strong> <%= it.comment %></p>
<p><strong>Category:</strong> <%= it.category.name %></p>
<p><strong>Amount:</strong> <%= it.amount %></p>
<p><strong>SKU:</strong> <%= it.SKU %></p>
<p><strong>Status: </strong><% if(it.status == "normal") { %>
<span class="badge text-bg-success"><%= it.status %></span>
<% } else if(it.status == "stolen") { %>
<span class="badge text-bg-danger"><%= it.status %></span>
<% } else if(it.status == "lost") { %>
<span class="badge text-bg-warning"><%= it.status %></span>
<% } else if(it.status == "borrowed") { %>
<span class="badge text-bg-info"><%= it.status %></span>
<% } %></p>
</div>
<%~ E.includeFile("partials/controlsFoot.eta.html") %> <%~ E.includeFile("partials/foot.eta.html") %>