improved item information page
This commit is contained in:
22
src/frontend/itemInfo.eta.html
Normal file
22
src/frontend/itemInfo.eta.html
Normal 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") %>
|
Reference in New Issue
Block a user