WIP
This commit is contained in:
@@ -196,7 +196,6 @@ impl InventoryItemList {
|
|||||||
"border",
|
"border",
|
||||||
"w-full",
|
"w-full",
|
||||||
]>
|
]>
|
||||||
|
|
||||||
<thead class=["bg-gray-200"]>
|
<thead class=["bg-gray-200"]>
|
||||||
<tr class=["h-10"]>
|
<tr class=["h-10"]>
|
||||||
<th class=["border", "p-2"]>"Name"</th>
|
<th class=["border", "p-2"]>"Name"</th>
|
||||||
@@ -205,9 +204,19 @@ impl InventoryItemList {
|
|||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
{items.iter().map(|item| html!(
|
{items.iter().map(|item| html!(
|
||||||
<tr>
|
<tr class=["h-10", "even:bg-gray-100", "hover:bg-purple-100"]>
|
||||||
<td>
|
<td class=["border", "p-0", "m-0"]>
|
||||||
|
<a
|
||||||
|
class=["p-2", "w-full", "inline-block"]
|
||||||
|
href={
|
||||||
|
format!("/inventory/item/{id}/", id=item.id)
|
||||||
|
}
|
||||||
|
>
|
||||||
{text!(item.name.clone())}
|
{text!(item.name.clone())}
|
||||||
|
</a>
|
||||||
|
</td>
|
||||||
|
<td class=["border", "p-0", "m-0"]>
|
||||||
|
{text!(item.weight.to_string())}
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
))}
|
))}
|
||||||
|
|||||||
Reference in New Issue
Block a user