diff --git a/www/secretary/workbench/views/actions/incomplete.json.rb b/www/secretary/workbench/views/actions/incomplete.json.rb index d098b73870..b875a3ee6d 100644 --- a/www/secretary/workbench/views/actions/incomplete.json.rb +++ b/www/secretary/workbench/views/actions/incomplete.json.rb @@ -32,6 +32,7 @@ '@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', + '@grant_missing' => 'a Software Grant Agreement must have Exhibit A filled', } # 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 e90f70266f..6569b11001 100644 --- a/www/secretary/workbench/views/parts.js.rb +++ b/www/secretary/workbench/views/parts.js.rb @@ -33,6 +33,7 @@ def initialize @upload_sig = false @invalid_availid = false @undated = false + @grant_missing = false end ######################################################################## @@ -228,6 +229,7 @@ def render _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: 'grant_missing', value: @grant_missing _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 @@ -410,6 +412,13 @@ def render _span ' undated' end end + _li do + _label do + _input type: 'checkbox', checked: @grant_missing, + onClick: -> {@grant_missing = !@grant_missing} + _span ' grant missing' + end + end _li do _label do _input type: 'checkbox', checked: @upload_sig,