Refactor title logic and fix localizer syntax in view
Refactored EnvelopeSigned.cshtml to use a local variable for IsReadAndConfirm when setting the page title, improving readability. Also updated Razor syntax for localizer calls in <h1> and <p> elements to ensure correct evaluation and formatting.
This commit is contained in:
@@ -2,7 +2,8 @@
|
|||||||
@using EnvelopeGenerator.Application.Common.Dto.EnvelopeReceiver;
|
@using EnvelopeGenerator.Application.Common.Dto.EnvelopeReceiver;
|
||||||
@using EnvelopeGenerator.Domain.Interfaces;
|
@using EnvelopeGenerator.Domain.Interfaces;
|
||||||
@model EnvelopeReceiverDto;
|
@model EnvelopeReceiverDto;
|
||||||
ViewData["Title"] = Model!.Envelope!.IsReadAndConfirm()
|
bool IsReadAndConfirm = Model!.Envelope!.IsReadAndConfirm();
|
||||||
|
ViewData["Title"] = IsReadAndConfirm
|
||||||
? _localizer.DocSigned()
|
? _localizer.DocSigned()
|
||||||
: _localizer.DocConfirmed();
|
: _localizer.DocConfirmed();
|
||||||
}
|
}
|
||||||
@@ -14,9 +15,9 @@
|
|||||||
<path d="M15.354 3.354a.5.5 0 0 0-.708-.708L8 9.293 5.354 6.646a.5.5 0 1 0-.708.708l3 3a.5.5 0 0 0 .708 0l7-7z" />
|
<path d="M15.354 3.354a.5.5 0 0 0-.708-.708L8 9.293 5.354 6.646a.5.5 0 1 0-.708.708l3 3a.5.5 0 0 0 .708 0l7-7z" />
|
||||||
</svg>
|
</svg>
|
||||||
</div>
|
</div>
|
||||||
<h1>@_localizer["DocumentSuccessfullySigned"]</h1>
|
<h1>@(_localizer["DocumentSuccessfullySigned"])</h1>
|
||||||
</header>
|
</header>
|
||||||
<section class="text-center">
|
<section class="text-center">
|
||||||
<p>@_localizer["DocumentSignedConfirmationMessage"]</p>
|
<p>@(_localizer["DocumentSignedConfirmationMessage"])</p>
|
||||||
</section>
|
</section>
|
||||||
</div>
|
</div>
|
||||||
Reference in New Issue
Block a user