-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Dayana
committed
Apr 19, 2015
1 parent
e8d787b
commit 296941e
Showing
14 changed files
with
113 additions
and
133 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,48 +1,23 @@ | ||
angular.module('starter.controllers', []) | ||
|
||
.controller('AppCtrl', function($scope, $ionicModal, $timeout) { | ||
// Form data for the login modal | ||
$scope.loginData = {}; | ||
|
||
// Create the login modal that we will use later | ||
$ionicModal.fromTemplateUrl('templates/login.html', { | ||
scope: $scope | ||
}).then(function(modal) { | ||
$scope.modal = modal; | ||
}); | ||
|
||
// Triggered in the login modal to close it | ||
$scope.closeLogin = function() { | ||
$scope.modal.hide(); | ||
}; | ||
|
||
// Open the login modal | ||
$scope.login = function() { | ||
$scope.modal.show(); | ||
}; | ||
|
||
// Perform the login action when the user submits the login form | ||
$scope.doLogin = function() { | ||
console.log('Doing login', $scope.loginData); | ||
|
||
// Simulate a login delay. Remove this and replace with your login | ||
// code if using a login system | ||
$timeout(function() { | ||
$scope.closeLogin(); | ||
}, 1000); | ||
}; | ||
angular.module('jsconfuy.controllers', []) | ||
|
||
.controller('AppCtrl', function($scope) { | ||
|
||
}) | ||
|
||
.controller('SpeakersCtrl', function($scope) { | ||
|
||
}) | ||
|
||
.controller('VenueCtrl', function($scope) { | ||
|
||
}) | ||
|
||
.controller('AgendaCtrl', function($scope) { | ||
|
||
}) | ||
|
||
.controller('PlaylistsCtrl', function($scope) { | ||
$scope.playlists = [ | ||
{ title: 'Reggae', id: 1 }, | ||
{ title: 'Chill', id: 2 }, | ||
{ title: 'Dubstep', id: 3 }, | ||
{ title: 'Indie', id: 4 }, | ||
{ title: 'Rap', id: 5 }, | ||
{ title: 'Cowbell', id: 6 } | ||
]; | ||
.controller('EventCtrl', function($scope, $stateParams) { | ||
$scope.eventId = $stateParams.eventId; | ||
}) | ||
|
||
.controller('PlaylistCtrl', function($scope, $stateParams) { | ||
}); | ||
; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<ion-view class="agenda-view"> | ||
<ion-nav-title> | ||
<span>Agenda</span> | ||
</ion-nav-title> | ||
<ion-content> | ||
<h1>Agenda</h1> | ||
<a ui-sref="app.event({eventId: 1})">This is an event</a> | ||
<a ui-sref="app.event({eventId: 2})">This is other event</a> | ||
</ion-content> | ||
</ion-view> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<ion-view class="event-view"> | ||
<ion-nav-title> | ||
<span>Event</span> | ||
</ion-nav-title> | ||
<ion-content> | ||
<h1>Event {{eventId}}</h1> | ||
</ion-content> | ||
</ion-view> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<div class="row"> | ||
<div class="col event-time"> | ||
<span class="time-from">{{event.time_from}}</span> | ||
<span ng-show="event.time_to" class="time-to">to {{event.time_to}}</span> | ||
</div> | ||
<a ng-if="event.type !== 'global'" class="col col-75 event-content {{event.type}}" style="background-image:url({{event.background_img}})" ui-sref="app.event({eventId: event.id})"> | ||
<p class="event-title" ng-bind-html="event.title"></p> | ||
<p class="event-speakers" ng-show="{{ event.speakers }}"> | ||
<span ng-repeat="speaker in event.speakers">{{speaker.name}}{{$last ? '' : ', '}}</span> | ||
</p> | ||
<p class="event-room" ng-show="event.room">{{event.room}}</p> | ||
<div class="event-type-tag {{event.type+'-event'}}">{{event.type}}</div> | ||
</a> | ||
<div ng-if="event.type === 'global'" class="col col-75 event-content {{event.type}}"> | ||
<p class="event-title" ng-bind-html="event.title"></p> | ||
<p class="event-room">{{event.room}}</p> | ||
</div> | ||
</div> |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<ion-view class="speakers-view"> | ||
<ion-nav-title> | ||
<span>Speakers</span> | ||
</ion-nav-title> | ||
<ion-content> | ||
<h1>Speakers</h1> | ||
</ion-content> | ||
</ion-view> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<ion-view class="venue-view"> | ||
<ion-nav-title> | ||
<span>Venue</span> | ||
</ion-nav-title> | ||
<ion-content> | ||
<h1>Venue</h1> | ||
</ion-content> | ||
</ion-view> |