Add product categories and full information display
This commit is contained in:
@@ -52,6 +52,26 @@ else
|
||||
<MudStack Spacing="2">
|
||||
<MudText Typo="Typo.h4">@_product.Title</MudText>
|
||||
<MudText Typo="Typo.body1" Class="mud-text-secondary">@_product.Description</MudText>
|
||||
@if (!string.IsNullOrWhiteSpace(_product.FullInformation))
|
||||
{
|
||||
<MudText Typo="Typo.body2" Class="mud-text-secondary" GutterBottom="true">
|
||||
@((MarkupString)_product.FullInformation)
|
||||
</MudText>
|
||||
}
|
||||
@if (_categoryPaths.Count > 0)
|
||||
{
|
||||
<MudStack Spacing="1">
|
||||
<MudText Typo="Typo.caption" Class="mud-text-secondary">دستهبندیها</MudText>
|
||||
<MudStack Row="true" Spacing="1" Wrap="Wrap.Wrap">
|
||||
@foreach (var categoryPath in _categoryPaths)
|
||||
{
|
||||
<MudChip T="string" Variant="Variant.Outlined" Color="Color.Primary" OnClick="() => NavigateToCategory(categoryPath)">
|
||||
@GetCategoryLabel(categoryPath)
|
||||
</MudChip>
|
||||
}
|
||||
</MudStack>
|
||||
</MudStack>
|
||||
}
|
||||
<MudDivider Class="my-2"/>
|
||||
<MudText Typo="Typo.h5" Color="Color.Primary">@FormatPrice(_product.Price)</MudText>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user