Made order image rounded, fixed missing currency localization
This commit is contained in:
@@ -18,7 +18,7 @@
|
|||||||
<p>@Localizer.Get("CreatedOn"): @Model.CreatedAt.ToString("g")</p>
|
<p>@Localizer.Get("CreatedOn"): @Model.CreatedAt.ToString("g")</p>
|
||||||
@if (!string.IsNullOrEmpty(Model.ImagePath))
|
@if (!string.IsNullOrEmpty(Model.ImagePath))
|
||||||
{
|
{
|
||||||
<img src="@Model.ImagePath" alt="Order Image" class="img-fluid mb-3" style="max-height: 300px; object-fit: cover;">
|
<img src="@Model.ImagePath" alt="Order Image" class="img-fluid mb-3 rounded" style="max-height: 300px; object-fit: cover;">
|
||||||
}
|
}
|
||||||
@if (!string.IsNullOrEmpty(Model.AdditionalInfo))
|
@if (!string.IsNullOrEmpty(Model.AdditionalInfo))
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -18,7 +18,7 @@
|
|||||||
|
|
||||||
@if (!string.IsNullOrEmpty(Model.ImagePath))
|
@if (!string.IsNullOrEmpty(Model.ImagePath))
|
||||||
{
|
{
|
||||||
<img src="@Model.ImagePath" alt="Order Image" class="img-fluid mb-3" style="max-height: 300px; object-fit: cover;">
|
<img src="@Model.ImagePath" alt="Order Image" class="img-fluid mb-3 rounded" style="max-height: 300px; object-fit: cover;">
|
||||||
}
|
}
|
||||||
|
|
||||||
@if (!string.IsNullOrEmpty(Model.AdditionalInfo))
|
@if (!string.IsNullOrEmpty(Model.AdditionalInfo))
|
||||||
@@ -54,7 +54,7 @@
|
|||||||
<option value="">-- @Localizer["ChooseAnItem"] --</option>
|
<option value="">-- @Localizer["ChooseAnItem"] --</option>
|
||||||
@foreach (var item in Model.MenuItems)
|
@foreach (var item in Model.MenuItems)
|
||||||
{
|
{
|
||||||
<option value="@item.Id" data-price="@item.Price.ToString("F2")">@item.Name - $@item.Price.ToString("F2")</option>
|
<option value="@item.Id" data-price="@item.Price.ToString("F2")">@item.Name - @Localizer["Currency", item.Price.ToString("F2")]</option>
|
||||||
}
|
}
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
@@ -65,7 +65,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="alert alert-info">
|
<div class="alert alert-info">
|
||||||
<strong>@Localizer["Total"]:</strong> $<span id="totalPrice">0.00</span>
|
<strong>@Localizer["Total"]:</strong> @Html.Raw(Localizer["Currency", "<span id=\"totalPrice\">0.00</span>"])
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<button type="submit" class="btn btn-success">@Localizer["AddToOrder"]</button>
|
<button type="submit" class="btn btn-success">@Localizer["AddToOrder"]</button>
|
||||||
@@ -104,7 +104,7 @@
|
|||||||
<td>@orderItem.ParticipantName</td>
|
<td>@orderItem.ParticipantName</td>
|
||||||
<td>@orderItem.MenuItem?.Name</td>
|
<td>@orderItem.MenuItem?.Name</td>
|
||||||
<td>@orderItem.Quantity</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>
|
</tr>
|
||||||
}
|
}
|
||||||
</tbody>
|
</tbody>
|
||||||
@@ -125,7 +125,7 @@
|
|||||||
{
|
{
|
||||||
<tr>
|
<tr>
|
||||||
<td>@person.Key</td>
|
<td>@person.Key</td>
|
||||||
<td>$@person.Sum(oi => oi.MenuItem.Price * oi.Quantity).ToString("F2")</td>
|
<td>@Localizer["Currency", person.Sum(oi => oi.MenuItem.Price * oi.Quantity).ToString("F2")]</td>
|
||||||
</tr>
|
</tr>
|
||||||
}
|
}
|
||||||
</tbody>
|
</tbody>
|
||||||
@@ -142,7 +142,7 @@
|
|||||||
<div class="card shadow">
|
<div class="card shadow">
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<h5>@Localizer["OrderTotal"]</h5>
|
<h5>@Localizer["OrderTotal"]</h5>
|
||||||
<h3 class="text-success">$@Model.OrderItems.Sum(oi => oi.MenuItem.Price * oi.Quantity).ToString("F2")</h3>
|
<h3 class="text-success">@Localizer["Currency", Model.OrderItems.Sum(oi => oi.MenuItem.Price * oi.Quantity).ToString("F2")]</h3>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user