-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed the display of the total on the order page after you remove ons…
…ite installation in support of #392.
- Loading branch information
1 parent
df0412d
commit 7af980a
Showing
4 changed files
with
184 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
@model IEnumerable<AccelerateNetworks.Operations.Order> | ||
@* | ||
For more information on enabling MVC for empty projects, visit https://go.microsoft.com/fwlink/?LinkID=397860 | ||
*@ | ||
@{ | ||
} | ||
<div class="table-responsive"> | ||
<table class="table table-striped table-borderless table-hover" id="table"> | ||
<thead> | ||
<tr> | ||
<th>Submitted Date</th> | ||
<th>Business Name</th> | ||
<th>Converted from Quote Date</th> | ||
<th>Install Date</th> | ||
<th>Completed Date</th> | ||
<th>Completed</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
@foreach (var order in Model) | ||
{ | ||
string converted = order.DateConvertedFromQuote?.ToShortDateString() ?? "-"; | ||
string installed = order.InstallDate?.ToShortDateString() ?? "-"; | ||
string completed = order.DateCompleted?.ToShortDateString() ?? "-"; | ||
string name = string.IsNullOrWhiteSpace(order.BusinessName) ? $"{order.FirstName} {order.LastName}" : order.BusinessName; | ||
<tr> | ||
<td data-order='@order.DateSubmitted.Ticks'>@order.DateSubmitted.ToShortDateString()</td> | ||
<td>@name</td> | ||
<td>@converted</td> | ||
<td>@installed</td> | ||
<td>@completed</td> | ||
<td>@order.Completed</td> | ||
</tr> | ||
} | ||
</tbody> | ||
</table> | ||
</div> |