Fixed localization issues, fixed text-warning not accessible,
This commit is contained in:
@@ -38,7 +38,7 @@
|
||||
{
|
||||
<tr>
|
||||
<td>@item.Name</td>
|
||||
<td>$@item.Price.ToString("F2")</td>
|
||||
<td>@Localizer["Currency", item.Price.ToString("F2")]</td>
|
||||
</tr>
|
||||
}
|
||||
</tbody>
|
||||
@@ -74,7 +74,7 @@
|
||||
<td>@orderItem.ParticipantName</td>
|
||||
<td>@orderItem.MenuItem?.Name</td>
|
||||
<td>@orderItem.Quantity</td>
|
||||
<td>$@(orderItem.MenuItem?.Price * orderItem.Quantity ?? 0).ToString("F2")</td>
|
||||
<td>@Localizer["Currency", (orderItem.MenuItem?.Price * orderItem.Quantity ?? 0).ToString("F2")]</td>
|
||||
</tr>
|
||||
}
|
||||
</tbody>
|
||||
@@ -105,13 +105,17 @@
|
||||
<h5>@Localizer.Get("QuickStats")</h5>
|
||||
<p>@Localizer.Get("TotalItems"): <strong>@Model.MenuItems.Count</strong></p>
|
||||
<p>@Localizer.Get("TotalOrders"): <strong>@Model.OrderItems.Count</strong></p>
|
||||
<p>@Localizer.Get("TotalRevenue"): <strong>$@Model.OrderItems.Sum(oi => oi.MenuItem.Price * oi.Quantity).ToString("F2")</strong></p>
|
||||
<p>@Localizer.Get("TotalRevenue"): <strong>@Localizer["Currency", Model.OrderItems.Sum(oi => oi.MenuItem.Price * oi.Quantity).ToString("F2")]</strong></p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@if (!Model.IsClosed)
|
||||
{
|
||||
<a href="#" class="btn btn-danger w-100">@Localizer.Get("CloseOrder")</a>
|
||||
<a href="/order/close?code=@Model.OrderCode" class="btn btn-danger w-100">@Localizer.Get("CloseOrder")</a>
|
||||
}
|
||||
else
|
||||
{
|
||||
<div class="alert alert-danger w-100">@Localizer.Get("Closed")</div>
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user