From 44edef8ba1bbba614520c5f2b314011b0fe75622 Mon Sep 17 00:00:00 2001 From: TekH Date: Fri, 6 Mar 2026 09:43:16 +0100 Subject: [PATCH] Update envelope view title logic for confirm state Refined the logic for setting ViewData["Title"] in ShowEnvelope.cshtml. Now, if the envelope requires read and confirm, the title displays "Confirm Document" instead of just "Sign Document" or "View Document", providing clearer context for users. --- EnvelopeGenerator.Web/Views/Envelope/ShowEnvelope.cshtml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/EnvelopeGenerator.Web/Views/Envelope/ShowEnvelope.cshtml b/EnvelopeGenerator.Web/Views/Envelope/ShowEnvelope.cshtml index b710f772..6e850e11 100644 --- a/EnvelopeGenerator.Web/Views/Envelope/ShowEnvelope.cshtml +++ b/EnvelopeGenerator.Web/Views/Envelope/ShowEnvelope.cshtml @@ -9,6 +9,7 @@ @using EnvelopeGenerator.Web.Extensions @using Newtonsoft.Json @using Newtonsoft.Json.Serialization +@using EnvelopeGenerator.Domain.Interfaces @model EnvelopeReceiverDto; @{ var userCulture = ViewData["UserCulture"] as Culture; @@ -24,7 +25,11 @@ if (ViewData["IsReadOnly"] is bool isReadOnly_bool) isReadOnly = isReadOnly_bool; - ViewData["Title"] = isReadOnly ? _localizer.ViewDoc() : _localizer.SignDoc(); + ViewData["Title"] = isReadOnly + ? _localizer.ViewDoc() + : envelope.IsReadAndConfirm() + ? _localizer.ConfirmDoc() + : _localizer.SignDoc(); }
@if (!isReadOnly)