diff --git a/front/core/components/autocomplete/autocomplete.html b/front/core/components/autocomplete/autocomplete.html index ecb21fe2f1..c616c794af 100755 --- a/front/core/components/autocomplete/autocomplete.html +++ b/front/core/components/autocomplete/autocomplete.html @@ -14,7 +14,10 @@ translate-attr="{title: 'Clear'}"> - + - +
diff --git a/front/core/components/textfield/textfield.js b/front/core/components/textfield/textfield.js index fcf823c6b1..bf6d5bfd50 100644 --- a/front/core/components/textfield/textfield.js +++ b/front/core/components/textfield/textfield.js @@ -84,6 +84,7 @@ ngModule.component('vnTextfield', { label: '@?', name: '@?', disabled: ' { + Self.validatesPresenceOf('name', { + message: 'Name cannot be blank' + }); +}; diff --git a/modules/client/front/billing-data/index.html b/modules/client/front/billing-data/index.html index b17f5dbf1b..a7bcb71bd5 100644 --- a/modules/client/front/billing-data/index.html +++ b/modules/client/front/billing-data/index.html @@ -98,28 +98,33 @@ + model="$ctrl.newBankEntity.name" + required="true"> - + show-field="country" + required="true"> + label="Entity Code" + model="$ctrl.newBankEntity.id" + ng-show="country.selection.code === 'ES'"> + model="$ctrl.newBankEntity.bic" + required="true"> diff --git a/modules/client/front/billing-data/index.js b/modules/client/front/billing-data/index.js index 761877600c..edd6db6546 100644 --- a/modules/client/front/billing-data/index.js +++ b/modules/client/front/billing-data/index.js @@ -59,8 +59,6 @@ export default class Controller { try { if (!this.newBankEntity.name) throw new Error(`Name can't be empty`); - if (!this.newBankEntity.id) - throw new Error(`Code can't be empty`); if (!this.newBankEntity.bic) throw new Error(`Swift / BIC can't be empty`); diff --git a/modules/client/front/billing-data/locale/es.yml b/modules/client/front/billing-data/locale/es.yml index 84de936953..15373914ec 100644 --- a/modules/client/front/billing-data/locale/es.yml +++ b/modules/client/front/billing-data/locale/es.yml @@ -16,4 +16,4 @@ Save: Guardar New bank entity: Nueva entidad bancaria Name can't be empty: El nombre no puede quedar vacío Swift / BIC can't be empty: El Swift / BIC no puede quedar vacío -Code: Código \ No newline at end of file +Entity Code: Código \ No newline at end of file