From b5448aaa5a62cf0a39b311d58ae054b781be6f42 Mon Sep 17 00:00:00 2001 From: gerard Date: Wed, 5 Sep 2018 11:48:38 +0200 Subject: [PATCH] Tarea #446 claim.development --- client/claim/src/development/index.html | 114 +++++++++++++++++++++ client/claim/src/development/index.js | 30 ++++++ client/claim/src/development/locale/es.yml | 7 ++ client/claim/src/development/style.scss | 0 client/claim/src/index.js | 2 +- 5 files changed, 152 insertions(+), 1 deletion(-) create mode 100644 client/claim/src/development/index.html create mode 100644 client/claim/src/development/index.js create mode 100644 client/claim/src/development/locale/es.yml create mode 100644 client/claim/src/development/style.scss diff --git a/client/claim/src/development/index.html b/client/claim/src/development/index.html new file mode 100644 index 000000000..2d40387dc --- /dev/null +++ b/client/claim/src/development/index.html @@ -0,0 +1,114 @@ + + + + + + + + + + + + + + + + + +
+ Development + + + + + + + + + {{firstName}} {{name}} + + + + + + +
+ + + + +
+
+ + + +
\ No newline at end of file diff --git a/client/claim/src/development/index.js b/client/claim/src/development/index.js new file mode 100644 index 000000000..6253e6b5a --- /dev/null +++ b/client/claim/src/development/index.js @@ -0,0 +1,30 @@ +import ngModule from '../module'; +import './style.scss'; + +class Controller { + constructor($state, $scope, $http, $translate, vnApp) { + this.$state = $state; + this.$ = $scope; + this.$http = $http; + this.$translate = $translate; + this.vnApp = vnApp; + } + + onSubmit() { + this.$.watcher.check(); + this.$.model.save().then(() => { + this.$.watcher.notifySaved(); + this.$.model.refresh(); + }); + } +} + +Controller.$inject = ['$state', '$scope', '$http', '$translate', 'vnApp']; + +ngModule.component('vnClaimDevelopment', { + template: require('./index.html'), + controller: Controller, + bindings: { + claim: '<' + } +}); diff --git a/client/claim/src/development/locale/es.yml b/client/claim/src/development/locale/es.yml new file mode 100644 index 000000000..dc5cd3554 --- /dev/null +++ b/client/claim/src/development/locale/es.yml @@ -0,0 +1,7 @@ +Destination: Destino +Development: Trazabilidad +Reason: Motivo +Result: Consecuencia +Responsible: Responsable +Worker: Trabajador +Redelivery: DevoluciĆ³n \ No newline at end of file diff --git a/client/claim/src/development/style.scss b/client/claim/src/development/style.scss new file mode 100644 index 000000000..e69de29bb diff --git a/client/claim/src/index.js b/client/claim/src/index.js index ef11ae80e..2d9b4fa21 100644 --- a/client/claim/src/index.js +++ b/client/claim/src/index.js @@ -5,7 +5,7 @@ import './basic-data'; import './card'; import './detail'; import './descriptor'; -// import './development'; +import './development'; import './index/'; import './search-panel'; // import './summary';