Update rejection header for read and confirm envelopes
Add logic to display a specific rejection message when an envelope is rejected as part of a "read and confirm" process. The header now distinguishes between external, confirmation-related, and default rejection scenarios for improved user feedback.
This commit is contained in:
@@ -9,12 +9,14 @@
|
|||||||
@using EnvelopeGenerator.Web.Extensions
|
@using EnvelopeGenerator.Web.Extensions
|
||||||
@using Newtonsoft.Json
|
@using Newtonsoft.Json
|
||||||
@using Newtonsoft.Json.Serialization
|
@using Newtonsoft.Json.Serialization
|
||||||
|
@using EnvelopeGenerator.Domain.Interfaces;
|
||||||
@model EnvelopeReceiverDto;
|
@model EnvelopeReceiverDto;
|
||||||
@{
|
@{
|
||||||
var envelope = Model.Envelope;
|
var envelope = Model.Envelope;
|
||||||
var document = Model.Envelope?.Documents?.FirstOrDefault();
|
var document = Model.Envelope?.Documents?.FirstOrDefault();
|
||||||
var sender = Model.Envelope?.User;
|
var sender = Model.Envelope?.User;
|
||||||
var isExt = ViewBag.IsExt ?? false;
|
var isExt = ViewBag.IsExt ?? false;
|
||||||
|
bool IsReadAndConfirm = Model!.Envelope!.IsReadAndConfirm();
|
||||||
}
|
}
|
||||||
<div class="page container p-5">
|
<div class="page container p-5">
|
||||||
<header class="text-center">
|
<header class="text-center">
|
||||||
@@ -54,7 +56,11 @@
|
|||||||
c-5.791,5.79-15.176,5.79-20.969,0l-30.32-30.322l-11.676,11.676l30.32,30.32c5.79,5.79,5.79,15.178,0,20.969L299.11,404.045z"/>
|
c-5.791,5.79-15.176,5.79-20.969,0l-30.32-30.322l-11.676,11.676l30.32,30.32c5.79,5.79,5.79,15.178,0,20.969L299.11,404.045z"/>
|
||||||
</svg>
|
</svg>
|
||||||
</div>
|
</div>
|
||||||
<h1>@(isExt ? _localizer.RejectionInfo1Ext() : _localizer.RejectionInfo1())</h1>
|
<h1>@(isExt
|
||||||
|
? _localizer.RejectionInfo1Ext()
|
||||||
|
: IsReadAndConfirm
|
||||||
|
? _localizer.RejectionInfo1ForConfirmation()
|
||||||
|
: _localizer.RejectionInfo1())</h1>
|
||||||
</header>
|
</header>
|
||||||
<section class="text-center">
|
<section class="text-center">
|
||||||
<div class="card-body p-0 m-0 ms-4">
|
<div class="card-body p-0 m-0 ms-4">
|
||||||
|
|||||||
Reference in New Issue
Block a user