|
|
|
@ -11,6 +11,7 @@ module Submitters
|
|
|
|
AccountConfig::ENFORCE_SIGNING_ORDER_KEY,
|
|
|
|
AccountConfig::ENFORCE_SIGNING_ORDER_KEY,
|
|
|
|
AccountConfig::REQUIRE_SIGNING_REASON_KEY,
|
|
|
|
AccountConfig::REQUIRE_SIGNING_REASON_KEY,
|
|
|
|
AccountConfig::REUSE_SIGNATURE_KEY,
|
|
|
|
AccountConfig::REUSE_SIGNATURE_KEY,
|
|
|
|
|
|
|
|
AccountConfig::WITH_FIELD_LABELS_KEY,
|
|
|
|
AccountConfig::ALLOW_TO_PARTIAL_DOWNLOAD_KEY,
|
|
|
|
AccountConfig::ALLOW_TO_PARTIAL_DOWNLOAD_KEY,
|
|
|
|
AccountConfig::ALLOW_TYPED_SIGNATURE,
|
|
|
|
AccountConfig::ALLOW_TYPED_SIGNATURE,
|
|
|
|
AccountConfig::WITH_SUBMITTER_TIMEZONE_KEY,
|
|
|
|
AccountConfig::WITH_SUBMITTER_TIMEZONE_KEY,
|
|
|
|
@ -35,13 +36,14 @@ module Submitters
|
|
|
|
enforce_signing_order = find_safe_value(configs, AccountConfig::ENFORCE_SIGNING_ORDER_KEY) == true
|
|
|
|
enforce_signing_order = find_safe_value(configs, AccountConfig::ENFORCE_SIGNING_ORDER_KEY) == true
|
|
|
|
with_submitter_timezone = find_safe_value(configs, AccountConfig::WITH_SUBMITTER_TIMEZONE_KEY) == true
|
|
|
|
with_submitter_timezone = find_safe_value(configs, AccountConfig::WITH_SUBMITTER_TIMEZONE_KEY) == true
|
|
|
|
with_signature_id_reason = find_safe_value(configs, AccountConfig::WITH_SIGNATURE_ID_REASON_KEY) != false
|
|
|
|
with_signature_id_reason = find_safe_value(configs, AccountConfig::WITH_SIGNATURE_ID_REASON_KEY) != false
|
|
|
|
|
|
|
|
with_field_labels = find_safe_value(configs, AccountConfig::WITH_FIELD_LABELS_KEY) != false
|
|
|
|
policy_links = find_safe_value(configs, AccountConfig::POLICY_LINKS_KEY)
|
|
|
|
policy_links = find_safe_value(configs, AccountConfig::POLICY_LINKS_KEY)
|
|
|
|
|
|
|
|
|
|
|
|
attrs = { completed_button:, with_typed_signature:, with_confetti:,
|
|
|
|
attrs = { completed_button:, with_typed_signature:, with_confetti:,
|
|
|
|
reuse_signature:, with_decline:, with_partial_download:,
|
|
|
|
reuse_signature:, with_decline:, with_partial_download:,
|
|
|
|
policy_links:, enforce_signing_order:, completed_message:,
|
|
|
|
policy_links:, enforce_signing_order:, completed_message:,
|
|
|
|
require_signing_reason:, prefill_signature:, with_submitter_timezone:,
|
|
|
|
require_signing_reason:, prefill_signature:, with_submitter_timezone:,
|
|
|
|
with_signature_id_reason:, with_signature_id: }
|
|
|
|
with_signature_id_reason:, with_signature_id:, with_field_labels: }
|
|
|
|
|
|
|
|
|
|
|
|
keys.each do |key|
|
|
|
|
keys.each do |key|
|
|
|
|
attrs[key.to_sym] = configs.find { |e| e.key == key.to_s }&.value
|
|
|
|
attrs[key.to_sym] = configs.find { |e| e.key == key.to_s }&.value
|
|
|
|
|