File tree Expand file tree Collapse file tree 11 files changed +23
-25
lines changed
Block/Adminhtml/System/Config/Fieldset
functional/tests/app/Magento
Braintree/Test/Block/System/Config
integration/testsuite/Magento/Paypal/Model/Config/Structure/Reader/_files/expected Expand file tree Collapse file tree 11 files changed +23
-25
lines changed Original file line number Diff line number Diff line change 33
33
</requires >
34
34
</field >
35
35
<field id =" braintree_cc_vault_active" translate =" label" type =" select" sortOrder =" 12" showInDefault =" 1" showInWebsite =" 1" showInStore =" 0" >
36
- <label >Vault enabled </label >
36
+ <label >Vault Enabled </label >
37
37
<source_model >Magento\Config\Model\Config\Source\Yesno</source_model >
38
38
<config_path >payment/braintree_cc_vault/active</config_path >
39
39
<requires >
155
155
<comment >It is recommended to set this value to "PayPal" per store views.</comment >
156
156
</field >
157
157
<field id =" braintree_paypal_vault_active" translate =" label" type =" select" sortOrder =" 21" showInDefault =" 1" showInWebsite =" 1" showInStore =" 0" >
158
- <label >Vault enabled </label >
158
+ <label >Vault Enabled </label >
159
159
<source_model >Magento\Config\Model\Config\Source\Yesno</source_model >
160
160
<config_path >payment/braintree_paypal_vault/active</config_path >
161
161
<requires >
Original file line number Diff line number Diff line change 3
3
* See COPYING.txt for license details.
4
4
*/
5
5
6
- .braintree-section .heading {display : inline-block; background : url ("images/braintree_logo.png" ) no-repeat 0 50% / 18rem auto; padding-left : 20rem ;}
7
- .braintree-section .button-container {display : inline-block; float : right;}
6
+ .braintree-section .heading {background : url ("images/braintree_logo.png" ) no-repeat 0 50% / 18rem auto; padding-left : 20rem ;}
7
+ .braintree-section .button-container {float : right;}
8
8
.braintree-section .config-alt {background : url ("images/braintree_allinone.png" ) no-repeat scroll 0 0 / 100% auto; height : 28px ; margin : 0.5rem 0 0 ; width : 230px ;}
Original file line number Diff line number Diff line change @@ -78,18 +78,10 @@ protected function _isPaymentEnabled($element)
78
78
*/
79
79
protected function _getHeaderTitleHtml ($ element )
80
80
{
81
- $ html = '<div class="config-heading" ><div class="heading"><strong> ' . $ element -> getLegend () ;
81
+ $ html = '<div class="config-heading" > ' ;
82
82
83
83
$ groupConfig = $ element ->getGroup ();
84
84
85
- $ html .= '</strong> ' ;
86
-
87
- if ($ element ->getComment ()) {
88
- $ html .= '<span class="heading-intro"> ' . $ element ->getComment () . '</span> ' ;
89
- }
90
- $ html .= '<div class="config-alt"></div> ' ;
91
- $ html .= '</div> ' ;
92
-
93
85
$ disabledAttributeString = $ this ->_isPaymentEnabled ($ element ) ? '' : ' disabled="disabled" ' ;
94
86
$ disabledClassString = $ this ->_isPaymentEnabled ($ element ) ? '' : ' disabled ' ;
95
87
$ htmlId = $ element ->getHtmlId ();
@@ -122,6 +114,13 @@ protected function _getHeaderTitleHtml($element)
122
114
) . '</a> ' ;
123
115
}
124
116
117
+ $ html .= '</div> ' ;
118
+ $ html .= '<div class="heading"><strong> ' . $ element ->getLegend () . '</strong> ' ;
119
+
120
+ if ($ element ->getComment ()) {
121
+ $ html .= '<span class="heading-intro"> ' . $ element ->getComment () . '</span> ' ;
122
+ }
123
+ $ html .= '<div class="config-alt"></div> ' ;
125
124
$ html .= '</div></div> ' ;
126
125
127
126
return $ html ;
Original file line number Diff line number Diff line change 84
84
</requires >
85
85
</field >
86
86
<field id =" payflowpro_cc_vault_active" translate =" label" type =" select" sortOrder =" 22" showInDefault =" 1" showInWebsite =" 1" showInStore =" 0" >
87
- <label >Vault enabled </label >
87
+ <label >Vault Enabled </label >
88
88
<source_model >Magento\Config\Model\Config\Source\Yesno</source_model >
89
89
<config_path >payment/payflowpro_cc_vault/active</config_path >
90
90
<attribute type =" shared" >1</attribute >
Original file line number Diff line number Diff line change 14
14
.payflow-settings-notice { border : 1px solid # d1d0ce ;padding : 0 10px ;margin : 0 ;}
15
15
.payflow-settings-notice .important-label {color : # f00 ;}
16
16
.payflow-settings-notice ul .options-list {list-style : disc;padding : 0 2em ;}
17
- .paypal-express-section .heading {display : inline-block; background : url ("images/pp-logo-200px.png" ) no-repeat 0 50% / 18rem auto; padding-left : 20rem ;}
18
- .paypal-express-section .button-container {display : inline-block; float : right;}
19
- .paypal-express-section .config-alt {background : url ("images/pp-alt.png" ) no-repeat; height : 26px ; margin : .5rem 0 0 ; width : 158px ;}
17
+ .paypal-express-section .heading {background : url ("images/pp-logo-200px.png" ) no-repeat 0 50% / 18rem auto; padding-left : 20rem ;}
18
+ .paypal-express-section .button-container {float : right;}
19
+ .paypal-express-section .config-alt {background : url ("images/pp-alt.png" ) no-repeat; height : 26px ; margin : 0 .5rem 0 0 ; width : 158px ;}
20
20
.paypal-express-section .link-more {margin-left : 5px ;}
21
- .paypal-other-section .heading {display : inline-block;}
22
- .paypal-other-section .button-container {display : inline-block; float : right; margin : 1rem 0 0 !important ;}
21
+ .paypal-other-section .button-container {float : right; margin : 1rem 0 0 !important ;}
23
22
.paypal-other-section > .entry-edit-head > a ::before {left : auto !important ; right : 1.3rem !important ;}
24
23
.paypal-all-in-one-section > .entry-edit-head {background : url ("images/AM_mc_vs_dc_ae.jpg" ) no-repeat scroll 0 50% / 18rem auto; padding-left : 18rem ;}
25
24
.paypal-gateways-section > .entry-edit-head {background : url ("images/pp-payflow-mark.png" ) no-repeat scroll 0 50% / 18rem auto; padding-left : 18rem ;}
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ class Braintree extends Block
33
33
private $ enablers = [
34
34
'Enable this Solution ' => "#payment_us_braintree_section_braintree_active " ,
35
35
'Enable PayPal through Braintree ' => '#payment_us_braintree_section_braintree_active_braintree_paypal ' ,
36
- 'Vault enabled ' => '#payment_us_braintree_section_braintree_braintree_cc_vault_active '
36
+ 'Vault Enabled ' => '#payment_us_braintree_section_braintree_braintree_cc_vault_active '
37
37
];
38
38
39
39
/**
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ class PayflowPro extends Block
42
42
'_payflow_required_enable_paypal_payflow ' ,
43
43
'Enable PayPal Credit ' => '#payment_us_paypal_payment_gateways_paypal_payflowpro_with_express_checkout_paypal ' .
44
44
'_payflow_required_enable_express_checkout_bml_payflow ' ,
45
- 'Vault enabled ' => '#payment_us_paypal_payment_gateways_paypal_payflowpro_with_express_checkout_paypal_ ' .
45
+ 'Vault Enabled ' => '#payment_us_paypal_payment_gateways_paypal_payflowpro_with_express_checkout_paypal_ ' .
46
46
'payflow_required_payflowpro_cc_vault_active '
47
47
];
48
48
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ class PaymentsPro extends Block
42
42
'_payflow ' ,
43
43
'Enable PayPal Credit ' => '#payment_us_paypal_group_all_in_one_wpp_usuk_paypal_payflow_required_enable_ ' .
44
44
'express_checkout_bml_payflow ' ,
45
- 'Vault enabled ' => '#payment_us_paypal_group_all_in_one_wpp_usuk_paypal_payflow_required_payflowpro_cc_vault ' .
45
+ 'Vault Enabled ' => '#payment_us_paypal_group_all_in_one_wpp_usuk_paypal_payflow_required_payflowpro_cc_vault ' .
46
46
'_active '
47
47
];
48
48
Original file line number Diff line number Diff line change @@ -130,7 +130,7 @@ private function enablePayflowPro()
130
130
$ this ->payflowProConfigBlock ->enablePayflowPro ();
131
131
$ this ->assertFieldsAreActive ->processAssert (
132
132
$ this ->systemConfigEditSectionPayment ,
133
- [$ enablers ['Enable this Solution ' ], $ enablers ['Enable PayPal Credit ' ], $ enablers ['Vault enabled ' ]]
133
+ [$ enablers ['Enable this Solution ' ], $ enablers ['Enable PayPal Credit ' ], $ enablers ['Vault Enabled ' ]]
134
134
);
135
135
$ this ->assertFieldsAreEnabled ->processAssert (
136
136
$ this ->systemConfigEditSectionPayment ,
Original file line number Diff line number Diff line change @@ -130,7 +130,7 @@ private function enablePaymentsPro()
130
130
$ this ->paymentsProConfigBlock ->enablePaymentsPro ();
131
131
$ this ->assertFieldsAreActive ->processAssert (
132
132
$ this ->systemConfigEditSectionPayment ,
133
- [$ enablers ['Enable this Solution ' ], $ enablers ['Enable PayPal Credit ' ], $ enablers ['Vault enabled ' ]]
133
+ [$ enablers ['Enable this Solution ' ], $ enablers ['Enable PayPal Credit ' ], $ enablers ['Vault Enabled ' ]]
134
134
);
135
135
$ this ->assertFieldsAreEnabled ->processAssert (
136
136
$ this ->systemConfigEditSectionPayment ,
You can’t perform that action at this time.
0 commit comments