Upraveni rozhrani produktu
This commit is contained in:
@@ -5,28 +5,21 @@
|
|||||||
@inject ApplicationDbContext DbContext
|
@inject ApplicationDbContext DbContext
|
||||||
|
|
||||||
<h3>Katalog Produktů</h3>
|
<h3>Katalog Produktů</h3>
|
||||||
|
<div class="row">
|
||||||
<table class="table">
|
@foreach (var product in products)
|
||||||
<thead>
|
{
|
||||||
<tr>
|
<div class="col-md-4 mb-4">
|
||||||
<th>Název</th>
|
<div class="card">
|
||||||
<th>Kategorie</th>
|
<div class="card-body">
|
||||||
<th>Cena</th>
|
<h5 class="card-title">@product.Name</h5>
|
||||||
<th>Stock</th>
|
<p class="card-text">Kategorie: @product.Category.Name</p>
|
||||||
</tr>
|
<p class="card-text">Cena: @product.Price.ToString("C")</p>
|
||||||
</thead>
|
<p class="card-text">Stock: @product.StockQuantity</p>
|
||||||
<tbody>
|
</div>
|
||||||
@foreach (var product in products)
|
</div>
|
||||||
{
|
</div>
|
||||||
<tr>
|
}
|
||||||
<td>@product.Name</td>
|
</div>
|
||||||
<td>@product.Category.Name</td>
|
|
||||||
<td>@product.Price.ToString("C")</td>
|
|
||||||
<td>@product.StockQuantity</td>
|
|
||||||
</tr>
|
|
||||||
}
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
|
|
||||||
@code {
|
@code {
|
||||||
private List<Product> products;
|
private List<Product> products;
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user