Fixed localization issues, fixed text-warning not accessible,
This commit is contained in:
@@ -11,8 +11,6 @@
|
||||
<div class="row mb-4">
|
||||
<div class="col-md-12">
|
||||
<h1>@Localizer.Get("Welcome")</h1>
|
||||
<p>@Localizer.Get("LoggedInAs"): <strong>@User.Identity?.Name</strong></p>
|
||||
<a href="/Account/Logout" class="btn btn-danger">@Localizer.Get("Logout")</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -63,7 +61,7 @@
|
||||
<small class="text-muted">@Localizer.Get("Created"): @order.CreatedAt.ToString("MMM dd, yyyy HH:mm")</small><br>
|
||||
<small>@Localizer.Get("Items"): @order.MenuItems.Count | @Localizer.Get("Orders"): @order.OrderItems.Count</small>
|
||||
</p>
|
||||
<p class="text-success"><strong>@Localizer.Get("Total"): $@order.OrderItems.Sum(oi => oi.MenuItem.Price * oi.Quantity).ToString("F2")</strong></p>
|
||||
<p class="text-success"><strong>@Localizer.Get("Total"): @Localizer["Currency", order.OrderItems.Sum(oi => oi.MenuItem.Price * oi.Quantity).ToString("F2")]</strong></p>
|
||||
<div class="d-flex gap-2">
|
||||
<a href="/order/details?code=@order.OrderCode" class="btn btn-sm btn-primary">@Localizer.Get("View")</a>
|
||||
@if (!order.IsClosed)
|
||||
@@ -72,7 +70,7 @@
|
||||
}
|
||||
else
|
||||
{
|
||||
<span class="badge bg-secondary">@Localizer.Get("Closed")</span>
|
||||
<span class="badge bg-secondary align-content-center">@Localizer.Get("Closed")</span>
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
@@ -109,7 +107,7 @@
|
||||
<small class="text-muted">@Localizer.Get("CreatedBy"): @order.CreatorName</small><br>
|
||||
<small>@Localizer.Get("MyItems"): @myItems.Count</small>
|
||||
</p>
|
||||
<p class="text-warning"><strong>@Localizer.Get("IOwe"): $@myItems.Sum(oi => oi.MenuItem.Price * oi.Quantity).ToString("F2")</strong></p>
|
||||
<p><strong>@Localizer.Get("IOwe"): @Localizer["Currency", myItems.Sum(oi => (oi.MenuItem?.Price ?? 0) * oi.Quantity).ToString("F2")]</strong></p>
|
||||
<div class="d-flex gap-2">
|
||||
<a href="/order/join?code=@order.OrderCode" class="btn btn-sm btn-primary">@Localizer.Get("View")</a>
|
||||
@if (!order.IsClosed)
|
||||
|
||||
Reference in New Issue
Block a user