From 3c6bb7c7bb0c1326aa966e44501951f4e06d1fe6 Mon Sep 17 00:00:00 2001 From: arnaucode Date: Fri, 24 Feb 2017 13:04:43 +0100 Subject: [PATCH] calendar started --- bower.json | 3 ++- www/index.html | 5 +++++ www/js/app.js | 10 ++++++++++ www/js/calendar.js | 5 +++++ www/templates/calendar.html | 6 ++++++ www/templates/main.html | 2 +- www/templates/menu.html | 2 +- 7 files changed, 30 insertions(+), 3 deletions(-) create mode 100644 www/js/calendar.js create mode 100644 www/templates/calendar.html diff --git a/bower.json b/bower.json index 99b9df9..756770d 100644 --- a/bower.json +++ b/bower.json @@ -7,6 +7,7 @@ "dependencies": { "angular-translate": "^2.14.0", "ui-leaflet": "^2.0.0", - "ngCordova": "^0.1.27-alpha" + "ngCordova": "^0.1.27-alpha", + "ionic-calendar": "^0.3.7" } } diff --git a/www/index.html b/www/index.html index 665ccb5..a2106da 100644 --- a/www/index.html +++ b/www/index.html @@ -42,6 +42,10 @@ + + + + @@ -55,6 +59,7 @@ + diff --git a/www/js/app.js b/www/js/app.js index 2be6109..3b4cdbe 100644 --- a/www/js/app.js +++ b/www/js/app.js @@ -18,6 +18,7 @@ angular.module('app', [ 'app.byCategory', 'app.place', 'app.byPlace', + 'app.calendar', 'app.users', 'app.user', 'app.login', @@ -142,6 +143,15 @@ angular.module('app', [ } } }) + .state('app.calendar', { + url: '/calendar', + views: { + 'menuContent': { + templateUrl: 'templates/calendar.html', + controller: 'CalendarCtrl' + } + } + }) .state('app.users', { url: '/users', views: { diff --git a/www/js/calendar.js b/www/js/calendar.js new file mode 100644 index 0000000..77d4ff7 --- /dev/null +++ b/www/js/calendar.js @@ -0,0 +1,5 @@ +angular.module('app.calendar', ['pascalprecht.translate', 'ui.rCalendar']) + +.controller('CalendarCtrl', function($scope, $http, $ionicModal, $timeout, $ionicLoading, $filter) { + +}); diff --git a/www/templates/calendar.html b/www/templates/calendar.html new file mode 100644 index 0000000..7891f97 --- /dev/null +++ b/www/templates/calendar.html @@ -0,0 +1,6 @@ + + + + + diff --git a/www/templates/main.html b/www/templates/main.html index 565c47d..055fd30 100644 --- a/www/templates/main.html +++ b/www/templates/main.html @@ -25,7 +25,7 @@
- + diff --git a/www/templates/menu.html b/www/templates/menu.html index 19455c7..98fffec 100644 --- a/www/templates/menu.html +++ b/www/templates/menu.html @@ -39,7 +39,7 @@ - + By Date