diff --git a/client/ticket/src/tracking/edit/edit.html b/client/ticket/src/tracking/edit/edit.html new file mode 100644 index 000000000..ff5b0de40 --- /dev/null +++ b/client/ticket/src/tracking/edit/edit.html @@ -0,0 +1,23 @@ + + + +
+ + New state + + + + + + + + +
\ No newline at end of file diff --git a/client/ticket/src/tracking/edit/edit.js b/client/ticket/src/tracking/edit/edit.js new file mode 100644 index 000000000..2d1f5e5a0 --- /dev/null +++ b/client/ticket/src/tracking/edit/edit.js @@ -0,0 +1,25 @@ +import ngModule from '../../module'; + +export default class Controller { + constructor($scope, $state) { + this.$ = $scope; + this.$state = $state; + this.ticket = { + ticketFk: $state.params.id, + text: null + }; + } + onSubmit() { + this.$.watcher.submit().then( + () => { + this.$state.go('ticket.card.tracking.index'); + } + ); + } +} +Controller.$inject = ['$scope', '$state']; + +ngModule.component('vnTicketTrackingEdit', { + template: require('./edit.html'), + controller: Controller +}); diff --git a/services/loopback/common/locale/en.json b/services/loopback/common/locale/en.json index 35acd8506..288480f55 100644 --- a/services/loopback/common/locale/en.json +++ b/services/loopback/common/locale/en.json @@ -6,5 +6,6 @@ "Unable to default a disabled consignee": "Unable to default a disabled consignee", "El método de pago seleccionado requiere que se especifique el IBAN": "El método de pago seleccionado requiere que se especifique el IBAN", "Ya existe un usuario con ese nombre": "Ya existe un usuario con ese nombre", - "Quantity cannot be zero": "Quantity cannot be zero" + "Quantity cannot be zero": "Quantity cannot be zero", + "can't be blank": "can't be blank" } \ No newline at end of file