effective_addresses 1.11.4 → 1.11.5
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 462909b8877432bfb469f0eb29be15ca0d3df18b460fb9934edac0f075edf9cd
|
4
|
+
data.tar.gz: 6f6640661408ae453e0f45f6ce7de24af149f305ccdc3d651bb93c6663d6f2f0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 42551a5eaed319cee5f651b01acf9a8052b67b3941beeac66bd12e235aae7331fd35b917bcdee080a0a6c672c04af2906dc8b1e5805d2c466a4717dd9284cde4
|
7
|
+
data.tar.gz: 36d4c75e0b511e96cfa94405436482f6cca52e7d4c79b9017313823212fe855b7f90a380c860d9ddf35fb458661d402d37f08b3d4827946df1327a34bd6ec521
|
@@ -8,6 +8,13 @@
|
|
8
8
|
- if ((f.object.errors.include?(method) && !f.object.errors.include?(:addresses)) rescue false)
|
9
9
|
= f.errors method
|
10
10
|
|
11
|
+
- if fa.object.category == 'shipping' && f.object.respond_to?(:shipping_address_same_as_billing?)
|
12
|
+
= fa.check_box :shipping_address_same_as_billing,
|
13
|
+
label: 'Shipping address is same as billing address',
|
14
|
+
required: false,
|
15
|
+
feedback: false,
|
16
|
+
input_html: { checked: same_as_billing }
|
17
|
+
|
11
18
|
- if local_assigns[:use_full_name] || EffectiveAddresses.use_full_name || fa.object.errors.include?(:full_name)
|
12
19
|
= fa.text_field :full_name,
|
13
20
|
required: required,
|
@@ -74,10 +81,3 @@
|
|
74
81
|
disabled: same_as_billing,
|
75
82
|
input_html: { 'data-effective-address-postal-code' => uuid },
|
76
83
|
wrapper: wrapper_options
|
77
|
-
|
78
|
-
- if fa.object.category == 'shipping' && f.object.respond_to?(:shipping_address_same_as_billing?)
|
79
|
-
= fa.check_box :shipping_address_same_as_billing,
|
80
|
-
label: 'Shipping address is same as billing address',
|
81
|
-
required: false,
|
82
|
-
feedback: false,
|
83
|
-
input_html: { checked: same_as_billing }
|
@@ -6,6 +6,13 @@
|
|
6
6
|
- if ((f.object.errors.include?(method) && !f.object.errors.include?(:addresses)) rescue false)
|
7
7
|
- fa.object.errors.add(:address1, f.object.errors[method].first)
|
8
8
|
|
9
|
+
- if fa.object.category == 'shipping' && f.object.respond_to?(:shipping_address_same_as_billing?)
|
10
|
+
= fa.input :shipping_address_same_as_billing,
|
11
|
+
as: :boolean,
|
12
|
+
label: 'Shipping address is same as billing address',
|
13
|
+
required: false,
|
14
|
+
input_html: { checked: shipping_address_same_as_billing }
|
15
|
+
|
9
16
|
- field_order.each do |field|
|
10
17
|
|
11
18
|
- case field
|
@@ -74,10 +81,3 @@
|
|
74
81
|
input_html: { 'data-effective-address-postal-code' => uuid },
|
75
82
|
disabled: shipping_address_same_as_billing,
|
76
83
|
wrapper_html: { style: ('display: none;' if shipping_address_same_as_billing) }
|
77
|
-
|
78
|
-
- if fa.object.category == 'shipping' && f.object.respond_to?(:shipping_address_same_as_billing?)
|
79
|
-
= fa.input :shipping_address_same_as_billing,
|
80
|
-
as: :boolean,
|
81
|
-
label: 'Shipping address is same as billing address',
|
82
|
-
required: false,
|
83
|
-
input_html: { checked: shipping_address_same_as_billing }
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: effective_addresses
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.11.
|
4
|
+
version: 1.11.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Code and Effect
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-10-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|