Browse Source

calendar started

master
arnaucode 7 years ago
parent
commit
3c6bb7c7bb
7 changed files with 30 additions and 3 deletions
  1. +2
    -1
      bower.json
  2. +5
    -0
      www/index.html
  3. +10
    -0
      www/js/app.js
  4. +5
    -0
      www/js/calendar.js
  5. +6
    -0
      www/templates/calendar.html
  6. +1
    -1
      www/templates/main.html
  7. +1
    -1
      www/templates/menu.html

+ 2
- 1
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"
}
}

+ 5
- 0
www/index.html

@ -42,6 +42,10 @@
<script src="lib/angular-translate/angular-translate.js"></script>
<script src="js/translations.js"></script>
<!-- ionic-calendar -->
<link rel="stylesheet" href="lib/ionic-calendar/dist/css/calendar.min.css"/>
<script src="lib/ionic-calendar/dist/js/calendar-tpls.min.js"></script>
<!-- your app's js -->
<script src="js/app.js"></script>
<script src="js/menu.js"></script>
@ -55,6 +59,7 @@
<script src="js/byCategory.js"></script>
<script src="js/place.js"></script>
<script src="js/byPlace.js"></script>
<script src="js/calendar.js"></script>
<script src="js/users.js"></script>
<script src="js/user.js"></script>
<script src="js/login.js"></script>

+ 10
- 0
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: {

+ 5
- 0
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) {
});

+ 6
- 0
www/templates/calendar.html

@ -0,0 +1,6 @@
<ion-view view-title="Calendar">
<ion-content>
<calendar calendar-mode="mode"
event-source="eventSource">
</ion-content>
</ion-view>

+ 1
- 1
www/templates/main.html

@ -25,7 +25,7 @@
</a>
</div>
<div class="row o_mainOptionRow">
<a class="col c_indigo300" ng-href="#/app/bydate">
<a class="col c_indigo300" ng-href="#/app/calendar">
<i class="icon ion-calendar"></i><!--by date-->
</a>
<a class="col c_orange400" ng-href="#/app/settings">

+ 1
- 1
www/templates/menu.html

@ -39,7 +39,7 @@
<!--<a class="item item-icon-left" menu-close href="#/app/place">
<i class="icon ion-ios-location"></i> By Place
</a>-->
<a class="item item-icon-left" menu-close href="#/app/events">
<a class="item item-icon-left" menu-close href="#/app/calendar">
<i class="icon ion-calendar"></i> By Date
</a>
<a class="item item-icon-left" menu-close href="#/app/search">

Loading…
Cancel
Save