diff --git a/www/index.html b/www/index.html
index b869d2b..d2878b4 100644
--- a/www/index.html
+++ b/www/index.html
@@ -54,6 +54,8 @@
+
+
diff --git a/www/js/app.js b/www/js/app.js
index 2c1edab..cfe8f17 100644
--- a/www/js/app.js
+++ b/www/js/app.js
@@ -16,7 +16,9 @@ angular.module('app', [
'app.byCategories',
'app.users',
'app.user',
- 'app.login'
+ 'app.login',
+ 'app.userZone',
+ 'app.newEvent'
])
.run(function($ionicPlatform) {
@@ -126,6 +128,24 @@ angular.module('app', [
controller: 'LoginCtrl'
}
}
+ })
+ .state('app.userZone', {
+ url: '/userZone',
+ views: {
+ 'menuContent': {
+ templateUrl: 'templates/userZone.html',
+ controller: 'UserZoneCtrl'
+ }
+ }
+ })
+ .state('app.newEvent', {
+ url: '/newEvent',
+ views: {
+ 'menuContent': {
+ templateUrl: 'templates/newEvent.html',
+ controller: 'NewEventCtrl'
+ }
+ }
});
// if none of the above states are matched, use this as the fallback
diff --git a/www/js/newEvent.js b/www/js/newEvent.js
new file mode 100644
index 0000000..05639ff
--- /dev/null
+++ b/www/js/newEvent.js
@@ -0,0 +1,21 @@
+angular.module('app.newEvent', ['pascalprecht.translate'])
+
+.controller('NewEventCtrl', function($scope, $http, $ionicModal, $timeout, $ionicLoading, $filter) {
+
+ $scope.event={};
+ $scope.event.categories=[{name: "prova"}];
+ $scope.postEvent = function(){
+ $http({
+ url: urlapi + 'events',
+ method: "POST",
+ data: $scope.event
+ })
+ .then(function(data) {
+ window.location.href="#/app/events";
+ },
+ function(response) { // optional
+ // failed
+ console.log(response);
+ });
+ };
+});
diff --git a/www/js/userZone.js b/www/js/userZone.js
new file mode 100644
index 0000000..576b37a
--- /dev/null
+++ b/www/js/userZone.js
@@ -0,0 +1,8 @@
+angular.module('app.userZone', ['pascalprecht.translate'])
+
+.controller('UserZoneCtrl', function($scope, $http, $ionicModal, $timeout, $ionicLoading, $filter) {
+
+
+
+
+});
diff --git a/www/templates/menu.html b/www/templates/menu.html
index 00f8701..0ab4030 100644
--- a/www/templates/menu.html
+++ b/www/templates/menu.html
@@ -45,6 +45,9 @@
Settings
+
+ User zone
+
Login
diff --git a/www/templates/newEvent.html b/www/templates/newEvent.html
new file mode 100644
index 0000000..f0a59fc
--- /dev/null
+++ b/www/templates/newEvent.html
@@ -0,0 +1,36 @@
+
+
+
+
+
diff --git a/www/templates/userZone.html b/www/templates/userZone.html
new file mode 100644
index 0000000..0db10d1
--- /dev/null
+++ b/www/templates/userZone.html
@@ -0,0 +1,36 @@
+
+
+
+
+
+
+
+