Add conditional logic to EnvelopeSigned.cshtml to display different headings and confirmation messages based on whether the document was signed or confirmed, using the IsReadAndConfirm flag. This improves user feedback by distinguishing between signing and confirming actions.
27 lines
1.2 KiB
Plaintext
27 lines
1.2 KiB
Plaintext
@{
|
|
@using EnvelopeGenerator.Application.Common.Dto.EnvelopeReceiver;
|
|
@using EnvelopeGenerator.Domain.Interfaces;
|
|
@model EnvelopeReceiverDto;
|
|
bool IsReadAndConfirm = Model!.Envelope!.IsReadAndConfirm();
|
|
ViewData["Title"] = IsReadAndConfirm
|
|
? _localizer.DocSigned()
|
|
: _localizer.DocConfirmed();
|
|
}
|
|
<div class="page container p-5">
|
|
<header class="text-center">
|
|
<div class="icon signed">
|
|
<svg xmlns="http://www.w3.org/2000/svg" width="72" height="72" fill="currentColor" class="bi bi-check2-circle" viewBox="0 0 16 16">
|
|
<path d="M2.5 8a5.5 5.5 0 0 1 8.25-4.764.5.5 0 0 0 .5-.866A6.5 6.5 0 1 0 14.5 8a.5.5 0 0 0-1 0 5.5 5.5 0 1 1-11 0z" />
|
|
<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>
|
|
</div>
|
|
<h1>@(IsReadAndConfirm
|
|
? _localizer["DocumentSuccessfullySigned"]
|
|
: _localizer["DocumentSuccessfullyConfirmed"])</h1>
|
|
</header>
|
|
<section class="text-center">
|
|
<p>@(IsReadAndConfirm
|
|
? _localizer["DocumentSignedConfirmationMessage"]
|
|
: _localizer["DocumentConfirmedConfirmationMessage"])</p>
|
|
</section>
|
|
</div> |