diff --git a/members/static/html/lisaa_jasenia.html b/members/static/html/lisaa_jasenia.html index fc9dddf..5a7f22b 100644 --- a/members/static/html/lisaa_jasenia.html +++ b/members/static/html/lisaa_jasenia.html @@ -1,5 +1,14 @@

Lisää useampi jäsen

-
- +
+
+
+ +
+
+
+
+ +
+
diff --git a/members/static/js/members_controllers.js b/members/static/js/members_controllers.js index 03658f6..07d513e 100644 --- a/members/static/js/members_controllers.js +++ b/members/static/js/members_controllers.js @@ -146,3 +146,18 @@ app.controller("applController", function($scope, $http, $route, $routeParams, $ app.controller("editController",editor("/list")); app.controller("appleditController", editor("/applications")); + +app.controller("addManyController", function($scope, $http, $location) { + $scope.memberData = ''; + $scope.sendCSV = function($scope.memberData){ + $http.post("/members/api/csvimport").then( + function(response) { + notySuccess("Lähetys onnistui"); + $location.path("/addmany"); + }, + function(response) { + notyError("Lähetys epäonnistui"); + } + ); + }; +}); \ No newline at end of file