This commit is contained in:
2023-05-08 18:13:22 +02:00
parent c98fcfe26a
commit 7dd39ca2a5
6 changed files with 48 additions and 405 deletions

View File

@@ -187,7 +187,7 @@ impl InventoryItemList {
pub async fn build(items: &Vec<Item>) -> Result<Self, Error> {
let doc = html!(
<div>
<h1 class=["text-2xl", "mb-5"]>"Categories"</h1>
<h1 class=["text-2xl", "mb-5"]>"Items"</h1>
<table class=[
"table",
"table-auto",
@@ -205,7 +205,7 @@ impl InventoryItemList {
<tbody>
{items.iter().map(|item| html!(
<tr class=["h-10", "even:bg-gray-100", "hover:bg-purple-100"]>
<td class=["border", "p-0", "m-0"]>
<td class=["border", "p-2"]>
<a
class=["p-2", "w-full", "inline-block"]
href={
@@ -215,7 +215,7 @@ impl InventoryItemList {
{text!(item.name.clone())}
</a>
</td>
<td class=["border", "p-0", "m-0"]>
<td class=["border", "p-2"]>
{text!(item.weight.to_string())}
</td>
</tr>