This is an automated email from the ASF dual-hosted git repository.
sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git
The following commit(s) were added to refs/heads/master by this push:
new a3fb2630 Allow rejection for mismatched email address
a3fb2630 is described below
commit a3fb2630164b075f4640a4ed3821edc25c25bbb4
Author: Sebb <[email protected]>
AuthorDate: Fri Jan 26 23:34:34 2024 +0000
Allow rejection for mismatched email address
---
www/secretary/workbench/views/actions/incomplete.json.rb | 1 +
www/secretary/workbench/views/parts.js.rb | 9 +++++++++
2 files changed, 10 insertions(+)
diff --git a/www/secretary/workbench/views/actions/incomplete.json.rb
b/www/secretary/workbench/views/actions/incomplete.json.rb
index 7752ae41..ab3da094 100644
--- a/www/secretary/workbench/views/actions/incomplete.json.rb
+++ b/www/secretary/workbench/views/actions/incomplete.json.rb
@@ -15,6 +15,7 @@ _extract_project
REASONS = {
'@missing_address' => 'missing or incomplete postal address (must include
street, building, unit/apartment)',
'@missing_email' => 'missing email address',
+ '@wrong_email' => 'email address shown in the ICLA must agree with the
sender',
'@corporate_postal' => 'the postal address does not appear to be a personal
residence address',
'@invalid_public' => 'the public name should be a real name or pen name and
not a user id',
'@separate_signature' => 'the document and signature must be sent attached
to the same email',
diff --git a/www/secretary/workbench/views/parts.js.rb
b/www/secretary/workbench/views/parts.js.rb
index 498b6219..ff75314e 100644
--- a/www/secretary/workbench/views/parts.js.rb
+++ b/www/secretary/workbench/views/parts.js.rb
@@ -14,6 +14,7 @@ class Parts < Vue
@project = nil
@missing_address = false
@missing_email = false
+ @wrong_email = false
@corporate_postal = false
@invalid_public = false
@separate_signature = false
@@ -191,6 +192,7 @@ class Parts < Vue
_input type: 'hidden', name: 'signature', value: @@signature
_input type: 'hidden', name: 'missing_address', value:
@missing_address
_input type: 'hidden', name: 'missing_email', value: @missing_email
+ _input type: 'hidden', name: 'wrong_email', value: @wrong_email
_input type: 'hidden', name: 'corporate_postal', value:
@corporate_postal
_input type: 'hidden', name: 'invalid_public', value:
@invalid_public
_input type: 'hidden', name: 'separate_signature', value:
@separate_signature
@@ -251,6 +253,13 @@ class Parts < Vue
_span ' missing email address'
end
end
+ _li do
+ _label do
+ _input type: 'checkbox', checked: @wrong_email,
+ onClick: -> {@wrong_email = !@wrong_email}
+ _span ' incorrect email address'
+ end
+ end
_li do
_label do
_input type: 'checkbox', checked: @corporate_postal,