+
+ @* Titel *@
+
+
+ _envelopeTitle = e.Value?.ToString() ?? string.Empty"
+ placeholder="z.B. Arbeitsvertrag 2025"
+ maxlength="120"
+ style="font-size: 0.78rem; font-weight: 500; color: #1f2937;
+ border: 1px solid #d1d5db; border-radius: 5px;
+ padding: 0.3rem 0.55rem; outline: none; width: 100%;
+ background: #fff;
+ @(_titleTouched && string.IsNullOrWhiteSpace(_envelopeTitle) ? "border-color:#dc2626;" : "")" />
+ @if (_titleTouched && string.IsNullOrWhiteSpace(_envelopeTitle))
+ {
+ Pflichtfeld
+ }
+
+ @* Nachricht *@
+
+
+ _envelopeMessage = e.Value?.ToString() ?? string.Empty"
+ placeholder="Bitte unterzeichnen Sie das beigefügte Dokument."
+ maxlength="500"
+ style="font-size: 0.78rem; color: #1f2937;
+ border: 1px solid #d1d5db; border-radius: 5px;
+ padding: 0.3rem 0.55rem; outline: none; width: 100%;
+ background: #fff;" />
+
+
+ @* PDF filename badge *@
@if (_pdfLoaded)
{
-
@_fileName
- @if (_signatureFields.Count > 0)
- {
-
- @_signatureFields.Count Signaturfeld@(_signatureFields.Count != 1 ? "er" : "")
-
- }
+
+ @_fileName
+ @if (_signatureFields.Count > 0)
+ {
+
+ @_signatureFields.Count Signaturfeld@(_signatureFields.Count != 1 ? "er" : "")
+
+ }
+
}
@@ -419,6 +461,11 @@
bool _savePopupVisible = false;
string? _saveErrorMessage = null;
+ // ── Envelope metadata ──
+ string _envelopeTitle = string.Empty;
+ string _envelopeMessage = string.Empty;
+ bool _titleTouched = false;
+
List