Commit 4a240381 authored by basm's avatar basm

PW-338 Validation Additional fields

parent 1bfb631f
...@@ -71,7 +71,7 @@ ...@@ -71,7 +71,7 @@
<!-- ko if: isPaymentMethodOpenInvoiceMethod() --> <!-- ko if: isPaymentMethodOpenInvoiceMethod() -->
<!-- ko if: showGender() --> <!-- ko if: showGender() -->
<div class="field gender type required"> <div class="field gender type required">
<label data-bind="attr: {for: getCode() + '_gender_type'}" class="label"> <label data-bind="attr: {for: getCode() + '_gender_type_' + value}" class="label">
<span><!-- ko text: $t('Gender')--><!-- /ko --></span> <span><!-- ko text: $t('Gender')--><!-- /ko --></span>
</label> </label>
<div class="control"> <div class="control">
...@@ -91,7 +91,7 @@ ...@@ -91,7 +91,7 @@
<!-- ko if: showDob() --> <!-- ko if: showDob() -->
<div class="field dob type required"> <div class="field dob type required">
<label data-bind="attr: {for: getCode() + '_dob'}" class="label"> <label data-bind="attr: {for: getCode() + '_dob_' + value}" class="label">
<span><!-- ko text: $t('Date of Birth')--><!-- /ko --></span> <span><!-- ko text: $t('Date of Birth')--><!-- /ko --></span>
</label> </label>
<div class="control"> <div class="control">
...@@ -99,6 +99,7 @@ ...@@ -99,6 +99,7 @@
name="payment[dob]" name="payment[dob]"
data-bind=" datepicker: { storage: datepickerValue, options: { showOn: 'both', changeYear: true, yearRange: '-99:-1', defaultDate: '-20y' } }, data-bind=" datepicker: { storage: datepickerValue, options: { showOn: 'both', changeYear: true, yearRange: '-99:-1', defaultDate: '-20y' } },
attr: { attr: {
id: getCode() + '_dob_' + value,
title: $t('Date of Birth'), title: $t('Date of Birth'),
'data-container': getCode() + '-dob' 'data-container': getCode() + '-dob'
}, },
...@@ -111,7 +112,7 @@ ...@@ -111,7 +112,7 @@
<!-- ko if: showTelephone() --> <!-- ko if: showTelephone() -->
<div class="field telephone type required"> <div class="field telephone type required">
<label data-bind="attr: {for: getCode() + '_telephone'}" class="label"> <label data-bind="attr: {for: getCode() + '_telephone_' + value}" class="label">
<span><!-- ko text: $t('Telephone')--><!-- /ko --></span> <span><!-- ko text: $t('Telephone')--><!-- /ko --></span>
</label> </label>
<div class="control"> <div class="control">
...@@ -119,9 +120,9 @@ ...@@ -119,9 +120,9 @@
name="payment[telephone]" name="payment[telephone]"
data-bind=" data-bind="
attr: { attr: {
id: getCode() + '_telephone', id: getCode() + '_telephone_' + value,
title: $t('Telephone'), title: $t('Telephone'),
'data-container': getCode() + '-telephone', 'data-container': getCode() + '-telephone_' + value,
'data-validate': JSON.stringify({'required-number':true}) 'data-validate': JSON.stringify({'required-number':true})
}, },
value: telephone" value: telephone"
...@@ -133,7 +134,7 @@ ...@@ -133,7 +134,7 @@
<!-- ko if: showSsn() --> <!-- ko if: showSsn() -->
<div class="field ssn type required"> <div class="field ssn type required">
<label data-bind="attr: {for: getCode() + '_ssn'}" class="label"> <label data-bind="attr: {for: getCode() + '_ssn_' + value}" class="label">
<span><!-- ko text: $t('Personal number (last digits)')--><!-- /ko --></span> <span><!-- ko text: $t('Personal number (last digits)')--><!-- /ko --></span>
</label> </label>
<div class="control"> <div class="control">
...@@ -141,7 +142,7 @@ ...@@ -141,7 +142,7 @@
name="payment[ssn]" name="payment[ssn]"
data-bind=" data-bind="
attr: { attr: {
id: getCode() + '_ssn', id: getCode() + '_ssn_' + value,
title: $t('Social Security Number'), title: $t('Social Security Number'),
'data-container': getCode() + '-ssn', 'data-container': getCode() + '-ssn',
'data-validate': JSON.stringify({'required-number':true}), 'data-validate': JSON.stringify({'required-number':true}),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment