From 4ba6bfa009c35a305a9dee83517239bc037fd142 Mon Sep 17 00:00:00 2001 From: mlabusch Date: Fri, 19 May 2017 15:37:20 +0200 Subject: [PATCH] [Task]: Add date validation :) --- webroot/static/html/item-add.html | 6 ++++-- webroot/static/js/item-add.controller.js | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/webroot/static/html/item-add.html b/webroot/static/html/item-add.html index 808e551..628ae09 100644 --- a/webroot/static/html/item-add.html +++ b/webroot/static/html/item-add.html @@ -8,8 +8,10 @@
- -
+ +
diff --git a/webroot/static/js/item-add.controller.js b/webroot/static/js/item-add.controller.js index 5b76347..291318a 100644 --- a/webroot/static/js/item-add.controller.js +++ b/webroot/static/js/item-add.controller.js @@ -16,7 +16,7 @@ angular.module('microStock') $scope.obj = {}; $scope.msg = {type:'success',text:'Saved '+$scope.count+' good(s) from product '+$scope.product.title+'.'}; }, function(){ - $scope.msg = {type:'error',text:'Error: During saving of '+$scope.count+' good(s) from product '+$scope.product.title+'.'}; + $scope.msg = {type:'error',text:'An error occurred while saving good(s) from product '+$scope.product.title+'.'}; }); }; }]);