You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by cl...@apache.org on 2022/02/20 00:49:19 UTC
[whimsy] branch document-reject-2 created (now 980c0d2)
This is an automated email from the ASF dual-hosted git repository.
clr pushed a change to branch document-reject-2
in repository https://gitbox.apache.org/repos/asf/whimsy.git.
at 980c0d2 Update parts.js.rb
This branch includes the following new commits:
new 980c0d2 Update parts.js.rb
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
[whimsy] 01/01: Update parts.js.rb
Posted by cl...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
clr pushed a commit to branch document-reject-2
in repository https://gitbox.apache.org/repos/asf/whimsy.git
commit 980c0d2c8090d89e3a2c776d1a57055fec9b496c
Author: Craig L Russell <ap...@gmail.com>
AuthorDate: Sat Feb 19 16:49:14 2022 -0800
Update parts.js.rb
Change "incomplete" to "reject document"
---
www/secretary/workbench/views/parts.js.rb | 82 ++++++++++++++++++++++++++++++-
1 file changed, 81 insertions(+), 1 deletion(-)
diff --git a/www/secretary/workbench/views/parts.js.rb b/www/secretary/workbench/views/parts.js.rb
index e78cc88..8540d7a 100644
--- a/www/secretary/workbench/views/parts.js.rb
+++ b/www/secretary/workbench/views/parts.js.rb
@@ -14,6 +14,14 @@ class Parts < Vue
@project = nil
@missing_address = false
@missing_email = false
+ @corporate_postal = false
+ @invalid_public = false
+ @separate_signature = false
+ @unauthorized_signature = false
+ @empty_form = false
+ @unreadable_scan = false
+ @wrong_identity = false
+ @validation_failed = false
end
########################################################################
@@ -178,6 +186,14 @@ 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: 'corporate_postal', value: @corporate_postal
+ _input type: 'hidden', name: 'invalid_public', value: @invalid_public
+ _input type: 'hidden', name: 'separate_signature', value: @separate_signature
+ _input type: 'hidden', name: 'unauthorized_signature', value: @unauthorized_signature
+ _input type: 'hidden', name: 'empty_form', value: @empty_form
+ _input type: 'hidden', name: 'unreadable_scan', value: @unreadable_scan
+ _input type: 'hidden', name: 'wrong_identity', value: @wrong_identity
+ _input type: 'hidden', name: 'validation_failed', value: @validation_failed
# Defer processing (must be part of POST block)
@@ -204,7 +220,7 @@ class Parts < Vue
_label do
_input type: 'radio', name: 'doctype', value: 'incomplete',
onClick: self.reject
- _span 'incomplete form (select missing items below first)'
+ _span 'reject document (select reasons below)'
end
# The checked: variable names must be reflected in the file incomplete.json.jb
@@ -224,6 +240,70 @@ class Parts < Vue
end
end
end
+ _li do
+ _label do
+ _input type: 'checkbox', checked: @corporate_postal,
+ onClick: -> {@corporate_postal = !@corporate_postal}
+ _span ' corporate postal address'
+ end
+ end
+ end
+ _li do
+ _label do
+ _input type: 'checkbox', checked: @invalid_public,
+ onClick: -> {@invalid_public = !@invalid_public}
+ _span ' invalid public name'
+ end
+ end
+ end
+ _li do
+ _label do
+ _input type: 'checkbox', checked: @separate_signature,
+ onClick: -> {@separate_signature = !@separate_signature}
+ _span ' separate document and signature'
+ end
+ end
+ end
+ _li do
+ _label do
+ _input type: 'checkbox', checked: @unauthorized_signature,
+ onClick: -> {@unauthorized_signature = !@unauthorized_signature}
+ _span ' unauthorized signature'
+ end
+ end
+ end
+ _li do
+ _label do
+ _input type: 'checkbox', checked: @empty_form,
+ onClick: -> {@empty_form = !@empty_form}
+ _span ' empty form'
+ end
+ end
+ end
+ _li do
+ _label do
+ _input type: 'checkbox', checked: @unreadable_scan,
+ onClick: -> {@unreadable_scan = !@unreadable_scan}
+ _span ' unreadable or partial scan'
+ end
+ end
+ end
+ _li do
+ _label do
+ _input type: 'checkbox', checked: @wrong_identity,
+ onClick: -> {@wrong_identity = !@wrong_identity}
+ _span ' key data does not match email'
+ end
+ end
+ end
+ _li do
+ _label do
+ _input type: 'checkbox', checked: @validation_failed,
+ onClick: -> {@validation_failed = !@validation_failed}
+ _span ' gpg key validation failed'
+ end
+ end
+ end
_label do
_input type: 'radio', name: 'doctype', value: 'unsigned',