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 = { 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,