display if special note is present - view/edit note

This commit is contained in:
Frede Hundewadt 2022-10-18 16:35:10 +02:00
parent a0a7273213
commit 2509549827
4 changed files with 54 additions and 40 deletions

View file

@ -40,7 +40,10 @@
<DisplayStateComponent StateClass="@(company.HasFolded == 1 ? "the-dead" : Utils.GetVisitState(company.NextVisit))" />
</td>
<td class="align-middle">
<span class="text-info"><i class="oi oi-info"></i></span>
@if (!string.IsNullOrWhiteSpace(company.Note))
{
<i class="bi-exclamation-diamond-fill text-danger" style="font-size: 2rem;"></i>
}
</td>
<td class="align-middle">
@company.Name

View file

@ -23,7 +23,7 @@
<h2>@Company.Name</h2>
<div class="list-group-flush">
<div class="list-group">
<div class="list-group-item">
<div class="row">
<div class="col">

View file

@ -25,16 +25,12 @@
{
<div class="card">
<div class="card-header bg-dark text-white">
<h3>@_company.Account - @_company.Name</h3>
<h3>@_company.Name</h3>
</div>
@if (_dk)
{
<div class="card-body">
<VatAddressInputComponent Address="_vatAddress" OnValidSubmit="GetInfoFromAddress"/>
</div>
<div class="card-body">
</div>
@if (_vInfos.Any())
{
<table class="table">
@ -65,12 +61,27 @@
</tbody>
</table>
}
</div>
}
<EditForm EditContext="_editContext" OnValidSubmit="SubmitUpdate">
<DataAnnotationsValidator/>
<div class="card-body">
<table class="table table-sm">
<tbody>
<tr class="align-middle">
<th colspan="2">BEMÆRK</th>
<td colspan="3">
@if (string.IsNullOrWhiteSpace(_company.Note))
{
<InputText id="note" class="form-control" @bind-Value="_company.Note"/>
}
else
{
<InputText id="note" class="form-control bg-warning text-black" @bind-Value="_company.Note"/>
}
<ValidationMessage For="@(() => _company.Note)"></ValidationMessage>
</td>
</tr >
<tr class="align-middle">
<th>
CVR/ORG

View file

@ -1,13 +1,13 @@
{
"appInfo": {
"name": "Wonky Client",
"version": "0.28.0",
"version": "0.29.1",
"rc": false,
"sandBox": false,
"image": "grumpy-coder.png"
},
"apiConfig": {
"innoBaseUrl": "https://dev.innotec.dk",
"innoBaseUrl": "https://app.innotec.dk",
"glsTrackUrl": "https://www.gls-group.eu/276-I-PORTAL-WEB/content/GLS/DK01/DA/5004.htm?txtAction=71000&txtRefNo=",
"glsId": "",
"serviceVirk": "api/v2/services/virk",