From f0b0a040e0841c41cc241c31c60886bbf3cae610 Mon Sep 17 00:00:00 2001 From: Craig L Russell Date: Mon, 14 Sep 2026 12:49:55 -0700 Subject: [PATCH 1/2] Update incomplete.json.rb Undated document is a reason to reject --- www/secretary/workbench/views/actions/incomplete.json.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/www/secretary/workbench/views/actions/incomplete.json.rb b/www/secretary/workbench/views/actions/incomplete.json.rb index 64006aeb57..d098b73870 100644 --- a/www/secretary/workbench/views/actions/incomplete.json.rb +++ b/www/secretary/workbench/views/actions/incomplete.json.rb @@ -31,6 +31,7 @@ '@signature_not_armored' => 'gpg signature must be detached and ascii-armored', '@unsigned' => 'the document appears to be unsigned', '@script_font' => 'a name typed in a script font is not a signature', + '@undated' => 'the document must have a date next to the signature', } # These aren't reasons for rejection, but need to be fixed OTHERS = { From 271a904808fefaab69a7c723667a58e41b080d1c Mon Sep 17 00:00:00 2001 From: Craig L Russell Date: Mon, 14 Sep 2026 12:58:01 -0700 Subject: [PATCH 2/2] Update parts.js.rb --- www/secretary/workbench/views/parts.js.rb | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/www/secretary/workbench/views/parts.js.rb b/www/secretary/workbench/views/parts.js.rb index 0a80ee594d..e90f70266f 100644 --- a/www/secretary/workbench/views/parts.js.rb +++ b/www/secretary/workbench/views/parts.js.rb @@ -32,6 +32,7 @@ def initialize @script_font = false @upload_sig = false @invalid_availid = false + @undated = false end ######################################################################## @@ -226,6 +227,7 @@ def render _input type: 'hidden', name: 'signature_not_armored', value: @signature_not_armored _input type: 'hidden', name: 'unsigned', value: @unsigned _input type: 'hidden', name: 'script_font', value: @script_font + _input type: 'hidden', name: 'undated', value: @undated _input type: 'hidden', name: 'upload_sig', value: @upload_sig _input type: 'hidden', name: 'invalid_availid', value: @invalid_availid # the above entries must agree with the checked: entries below @@ -401,6 +403,13 @@ def render _span ' script font' end end + _li do + _label do + _input type: 'checkbox', checked: @undated, + onClick: -> {@undated = !@undated} + _span ' undated' + end + end _li do _label do _input type: 'checkbox', checked: @upload_sig,