Merge branch 'master' of git.mgm.sipwise.com:ngcp-panel

ipeshinskaya/InvoiceTemplate5
Irina Peshinskaya 12 years ago
commit ea3aa47282

@ -17,7 +17,7 @@ has_block 'fields' => (
tag => 'div',
class => [qw/modal-body/],
render_list => [qw/reseller firstname lastname email company
street postcode city country phonenumber/],
street postcode city country iban bic phonenumber/],
);
1;

@ -88,6 +88,27 @@ has_field 'country' => (
},
);
has_field 'iban' => (
type => 'Text',
maxlength => 34,
label => 'IBAN',
element_attr => {
rel => ['tooltip'],
title => ['The IBAN (International Bank Account Number) of the contact bank details.']
},
);
has_field 'bic' => (
type => 'Text',
minlength => 8,
maxlength => 11,
label => 'BIC/SWIFT',
element_attr => {
rel => ['tooltip'],
title => ['The BIC (Business Identifier Code) of the contact bank details.']
},
);
has_field 'phonenumber' => (
type => 'Text',
maxlength => 31,
@ -109,7 +130,7 @@ has_block 'fields' => (
tag => 'div',
class => [qw/modal-body/],
render_list => [qw/firstname lastname email company street postcode city
country phonenumber/],
country iban bic phonenumber/],
);
has_block 'actions' => (

@ -63,6 +63,12 @@ $d->findclick_ok(xpath => '//div[contains(@class,"accordion-heading")]//a[contai
$d->findclick_ok(xpath => '//div[contains(@class,"accordion-body")]//*[contains(@class,"btn-primary") and contains(text(),"Edit Contact")]');
$d->fill_element_ok([css => 'div.modal #firstname', "Alice"]);
$d->fill_element_ok([id => 'company', 'Sipwise']);
# Choosing Country:
$d->fill_element_ok([css => '#countryidtable_filter input', 'thisshouldnotexist']);
$d->find_ok(css => 'tr > td.dataTables_empty');
$d->fill_element_ok([css => '#countryidtable_filter input', 'Ukraine']);
$d->select_if_unselected_ok(xpath => '//table[@id="countryidtable"]/tbody/tr[1]/td[contains(text(),"Ukraine")]/..//input[@type="checkbox"]');
# Save
$d->findclick_ok(id => 'save');
diag("Check if successful");

Loading…
Cancel
Save