|
@@ 83-89 (lines=7) @@
|
| 80 |
|
$this->cullForGateway($fields); |
| 81 |
|
//optionally group date fields |
| 82 |
|
if ($this->groupdatefields) { |
| 83 |
|
if (isset($fields['startMonth']) && isset($fields['startYear'])) { |
| 84 |
|
$fields['startMonth'] = new FieldGroup(_t("PaymentForm.START", "Start"), |
| 85 |
|
$fields['startMonth'], $fields['startYear'] |
| 86 |
|
); |
| 87 |
|
$fields['startMonth']->addExtraClass('card_startyear'); |
| 88 |
|
unset($fields['startYear']); |
| 89 |
|
} |
| 90 |
|
if (isset($fields['expiryMonth']) && isset($fields['expiryYear'])) { |
| 91 |
|
$fields['expiryMonth'] = new FieldGroup(_t("PaymentForm.EXPIRY", "Expiry"), |
| 92 |
|
$fields['expiryMonth'], $fields['expiryYear'] |
|
@@ 90-96 (lines=7) @@
|
| 87 |
|
$fields['startMonth']->addExtraClass('card_startyear'); |
| 88 |
|
unset($fields['startYear']); |
| 89 |
|
} |
| 90 |
|
if (isset($fields['expiryMonth']) && isset($fields['expiryYear'])) { |
| 91 |
|
$fields['expiryMonth'] = new FieldGroup(_t("PaymentForm.EXPIRY", "Expiry"), |
| 92 |
|
$fields['expiryMonth'], $fields['expiryYear'] |
| 93 |
|
); |
| 94 |
|
$fields['expiryMonth']->addExtraClass('card_expiry'); |
| 95 |
|
unset($fields['expiryYear']); |
| 96 |
|
} |
| 97 |
|
} |
| 98 |
|
|
| 99 |
|
return FieldList::create($fields); |