add layout component for office customer view
This commit is contained in:
parent
5d2b42a880
commit
91c5d3accc
2 changed files with 60 additions and 1 deletions
|
@ -0,0 +1,59 @@
|
|||
@using Wonky.Entity.DTO
|
||||
@using Wonky.Client.Helpers
|
||||
|
||||
<div class="card">
|
||||
<div class="card-header fw-bold @(Company.HasFolded == 1 ? "alert alert-dark" : "alert alert-success")">
|
||||
@Company.Name @(Company.HasFolded == 1 ? "(OPHØRT)" : "")
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<table class="table">
|
||||
<tr>
|
||||
<th scope="row">Konto</th>
|
||||
<td>@Company.Account</td>
|
||||
<th scope="row">Org Nr.</th>
|
||||
<td>@(string.IsNullOrWhiteSpace(Company.VatNumber) ? "mangler" : Company.VatNumber) </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">Telefon</th>
|
||||
<td colspan="3">@Company.Phone</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">Adresse</th>
|
||||
<td colspan="3">@Company.Address1 @(string.IsNullOrWhiteSpace(Company.Address2) ? "" : ",") @Company.Address2</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">Post By</th>
|
||||
<td colspan="3">@Company.CountryCode.ToUpper()-@Company.ZipCode @Company.City</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">
|
||||
Sælgernr.
|
||||
</th>
|
||||
<td>
|
||||
@Company.SalesRep
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">Sidst besøgt</th>
|
||||
<td>
|
||||
@(Mapper.MapVisitState(Company.LastVisit) == "the-draw" ? "?" : Company.LastVisit)
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">Næste besøg</th>
|
||||
<td>
|
||||
@(Mapper.MapVisitState(Company.LastVisit) == "the-draw" ? "?" : Company.NextVisit)
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@code {
|
||||
|
||||
[Parameter] public CompanyDto Company { get; set; } = new();
|
||||
|
||||
[Parameter] public EventCallback<string> OnReloadHistory { get; set; }
|
||||
|
||||
}
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"appInfo": {
|
||||
"name": "Wonky Online",
|
||||
"version": "237.1",
|
||||
"version": "237.2",
|
||||
"rc": true,
|
||||
"sandBox": true,
|
||||
"image": "grumpy-coder.png",
|
||||
|
|
Loading…
Reference in a new issue