diff --git a/client/client/src/card/card.html b/client/client/src/card/card.html index 830da34e4..e324e1bd9 100644 --- a/client/client/src/card/card.html +++ b/client/client/src/card/card.html @@ -10,6 +10,11 @@ active="$ctrl.client.active" class="display-block" > + + diff --git a/client/client/src/descriptor/descriptor.html b/client/client/src/descriptor/descriptor.html index 87a7a5492..1e61e950b 100644 --- a/client/client/src/descriptor/descriptor.html +++ b/client/client/src/descriptor/descriptor.html @@ -1,31 +1,18 @@ - - - - - person - - - -
{{::$ctrl.client.id}}
-
{{$ctrl.client.name}}
-
{{$ctrl.client.phone}}
+ + + + person + + + + + {{::title}}: + + {{::$ctrl.client[field] | number:2}} € + {{::$ctrl.client[field]}} + + -
- - - Credit: - - - {{$ctrl.client.credit || 0}} € - - - - - Secured credit: - - - {{$ctrl.client.creditInsurance || 0}} € - - +
diff --git a/client/client/src/descriptor/descriptor.js b/client/client/src/descriptor/descriptor.js index 1311e5858..169abce0f 100644 --- a/client/client/src/descriptor/descriptor.js +++ b/client/client/src/descriptor/descriptor.js @@ -1,8 +1,16 @@ import ngModule from '../module'; +import './style.scss'; export default class Controller { - constructor($scope, $http) { + constructor($scope, $http, $translate) { this.$http = $http; + this.fieldsToShow = { + id: 'id', + name: $translate.instant('name'), + phone: $translate.instant('phone'), + credit: $translate.instant('credit'), + creditInsurance: $translate.instant('creditInsurance') + }; } set active(value) { if (this._active !== value && this._active !== undefined) @@ -14,7 +22,7 @@ export default class Controller { return this._active; } } -Controller.$inject = ['$scope', '$http']; +Controller.$inject = ['$scope', '$http', '$translate']; ngModule.component('vnDescriptor', { template: require('./descriptor.html'), diff --git a/client/client/src/descriptor/style.scss b/client/client/src/descriptor/style.scss new file mode 100644 index 000000000..617cdbb4c --- /dev/null +++ b/client/client/src/descriptor/style.scss @@ -0,0 +1,10 @@ +vn-descriptor { + .descriptor-header{ + background: rgb(255,171,64); + color: white; + text-align: center; + i { + font-size: 40px; + } + } +} \ No newline at end of file diff --git a/client/salix/src/locale/es.json b/client/salix/src/locale/es.json index a5f88410b..0ee929eab 100644 --- a/client/salix/src/locale/es.json +++ b/client/salix/src/locale/es.json @@ -12,5 +12,9 @@ "Routes" : "Rutas", "Production" : "Producción", "Modules access" : "Acceso a módulos", - "Locator": "Localizador" + "Locator": "Localizador", + "name": "Nombre", + "credit": "Crédito", + "phone": "Teléfono", + "creditInsurance": "Crédito Asegurado" } \ No newline at end of file