Commit ff2397443a823546dcfd30b2d138b58bc48b8ea2
1 parent
d9ebbe3d97
Exists in
master
and in
1 other branch
Nicer formatting for search
Showing 2 changed files with 5 additions and 7 deletions Side-by-side Diff
scripts/CardListController.js
View file @
ff23974
... | ... | @@ -5,7 +5,7 @@ |
5 | 5 | $rootScope.currentSection = $rootScope.SectionResource.get({sectionId: sectionId}); |
6 | 6 | $scope.cards = []; |
7 | 7 | |
8 | - $http.get('/api/sections/' + sectionId + '/flashcards/'). | |
8 | + $http.get('/api/sections/' + sectionId + '/flashcards/?hidden=yes'). | |
9 | 9 | success(function(data) { |
10 | 10 | console.log(data); |
11 | 11 | $scope.cards = data; |
templates/cardlist.html
View file @
ff23974
1 | 1 | <div class="row"> |
2 | 2 | <a class="btn" id="showHidden" ng-click="show = !show" style="margin-top: 15px">Show Hidden</a> |
3 | - <form class="col s6"> | |
4 | - <div class="input-field col s6"> | |
3 | + <div class="input-field col s4 right"> | |
5 | 4 | <i class="mdi-action-search prefix"></i> |
6 | - <input id="search" type="text" class="validate" ng-model="searchText"> | |
5 | + <input id="search" type="text" class="validate" ng-model="searchText"/> | |
7 | 6 | <label for="search">Search</label> |
8 | 7 | </div> |
9 | - </form> | |
10 | 8 | </div> |
11 | 9 | |
12 | 10 | <div class="row"> |
13 | 11 | <form> |
14 | - <div class="row"> | |
12 | + <div class="col s12"> | |
15 | 13 | <div class="col s2"> |
16 | 14 | <input type="checkbox" class="filled-in" id="weekOneCheck" ng-model="filter['week1']"/> |
17 | 15 | <label for="weekOneCheck">Week One</label> |
... | ... | @@ -33,7 +31,7 @@ |
33 | 31 | <label for="weekFiveCheck">Week Five</label> |
34 | 32 | </div> |
35 | 33 | </div> |
36 | - <div class="row"> | |
34 | + <div class="col s12"> | |
37 | 35 | <div class="col s2"> |
38 | 36 | <input type="checkbox" class="filled-in" id="weekSixCheck" ng-model="filter['week6']"/> |
39 | 37 | <label for="weekSixCheck">Week Six</label> |