Skip to content

Commit

Permalink
stub filtering module
Browse files Browse the repository at this point in the history
  • Loading branch information
mattcook committed Jan 17, 2015
1 parent a6214e3 commit 3408f99
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 1 deletion.
10 changes: 10 additions & 0 deletions www/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,16 @@ angular.module('starter', ['ionic', 'starter.controllers', 'firebase'])
}
})

.state('app.filtering', {
url: "/type/image-filter",
views: {
'menuContent': {
templateUrl: "templates/types/filtering.html",
controller: 'FilterCtrl'
}
}
})

.state('app.emotion', {
url: "/type/emotion-sentiment",
views: {
Expand Down
7 changes: 6 additions & 1 deletion www/js/controllers.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ angular.module('starter.controllers', ['firebase'])
ref: ref.child('info'),
icon: 'icon ion-ios7-search'},
{ title: 'Image Filtering',
id: 'filtering',
id: 'image-filter',
tasks: 13,
ref: ref.child('filtering'),
icon: 'icon ion-ios7-settings'},
Expand Down Expand Up @@ -70,6 +70,11 @@ angular.module('starter.controllers', ['firebase'])
};
})

.controller('FilterCtrl', function($scope, $stateParams, $ionicModal) {
$scope.modal_text = "Select the category that most appropriately suits the image. If you cannot determine a suitable category, you may skip this task."
popupModal($scope, $ionicModal);
})

.controller('EmotionCtrl', function($scope, $stateParams, $ionicModal) {
$scope.modal_text = "Using the information provided, please complete the missing field. If you cannot determine an answer, you may skip this task."
popupModal($scope, $ionicModal);
Expand Down
9 changes: 9 additions & 0 deletions www/templates/types/filtering.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<ion-view view-title="Image Filtering">
<ion-content>
<div class='list list-inset'>
<div class="item item-divider item-icon-right">
Provided Information
<i class="icon ion-ios7-help-outline" ng-click="openModal()"></i>
</div>
</ion-content>
</ion-view>

0 comments on commit 3408f99

Please sign in to comment.