Set envelope default message by type using resources

Added "Please read and confirm this document" to resource files and updated resource class. Replaced Envelope constructor with WithDefaultMessage extension method to set default message based on EnvelopeTypeId. Updated controller and editor form to use this method. Cleaned up imports and comments.
This commit is contained in:
OlgunR
2026-03-06 14:23:18 +01:00
parent 967fd2ba04
commit d29abf53e7
7 changed files with 103 additions and 72 deletions

View File

@@ -28,7 +28,7 @@ Public Class EnvelopeEditorController
Public Sub New(pState As State, pEnvelope As Envelope)
MyBase.New(pState)
Envelope = pEnvelope
Envelope = pEnvelope.WithDefaultMessage()
Envelope.Documents = DocumentModel.List(pEnvelope.Id).ToList()
Envelope.Receivers = ReceiverModel.ListEnvelopeReceivers(pEnvelope.Id).ToList()