Blame view

templates/cardlist.html 4.26 KB
362cfb056   Melody   Flag cards and ba...
1
2
3
  <body>
    <div class="row">
      <a class="btn" id="showHidden" ng-click="show = !show" style="margin-top: 15px">Show Hidden</a>
ce21d0667   Andrew Buss   group by week number
4

e52721a27   Melody   Attempt to fix 1,...
5
      <div class="input-field col s6 right">
362cfb056   Melody   Flag cards and ba...
6
7
8
9
        <i class="mdi-action-search prefix"></i>
        <input id="search" type="text" class="validate" ng-model="searchText"/>
        <label for="search">Search</label>
      </div>
ce21d0667   Andrew Buss   group by week number
10
    </div>
de7bd6a9b   Melody   Primitive filtering
11

362cfb056   Melody   Flag cards and ba...
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
    <div class="row">
      <form>
        <div class="col s12">
          <div class="col s2">
            <input type="checkbox" class="filled-in" id="weekOneCheck" ng-model="filter['week1']"/>
            <label for="weekOneCheck">Week One</label>
          </div>
          <div class="col s2">
            <input type="checkbox" class="filled-in" id="weekTwoCheck" ng-model="filter['week2']"/>
            <label for="weekTwoCheck">Week Two</label>
          </div>
          <div class="col s2">
            <input type="checkbox" class="filled-in" id="weekThreeCheck" ng-model="filter['week3']"/>
            <label for="weekThreeCheck">Week Three</label>
          </div>
          <div class="col s2">
            <input type="checkbox" class="filled-in" id="weekFourCheck" ng-model="filter['week4']"/>
            <label for="weekFourCheck">Week Four</label>
          </div>
          <div class="col s2">
            <input type="checkbox" class="filled-in" id="weekFiveCheck" ng-model="filter['week5']"/>
            <label for="weekFiveCheck">Week Five</label>
          </div>
de7bd6a9b   Melody   Primitive filtering
35
        </div>
362cfb056   Melody   Flag cards and ba...
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
        <div class="col s12">
          <div class="col s2">
            <input type="checkbox" class="filled-in" id="weekSixCheck" ng-model="filter['week6']"/>
            <label for="weekSixCheck">Week Six</label>
          </div>
          <div class="col s2">
            <input type="checkbox" class="filled-in" id="weekSevenCheck" ng-model="filter['week7']"/>
            <label for="weekSevenCheck">Week Seven</label>
          </div>
          <div class="col s2">
            <input type="checkbox" class="filled-in" id="weekEightCheck" ng-model="filter['week8']"/>
            <label for="weekEightCheck">Week Eight</label>
          </div>
          <div class="col s2">
            <input type="checkbox" class="filled-in" id="weekNineCheck" ng-model="filter['week9']"/>
            <label for="weekNineCheck">Week Nine</label>
          </div>
          <div class="col s2">
            <input type="checkbox" class="filled-in" id="weekTenCheck" ng-model="filter['week10']"/>
            <label for="weekTenCheck">Week Ten</label>
          </div>
de7bd6a9b   Melody   Primitive filtering
57
        </div>
362cfb056   Melody   Flag cards and ba...
58
59
      </form>
    </div>
54c942ddf   Andrew Buss   recovered cardlis...
60

362cfb056   Melody   Flag cards and ba...
61
62
    <div class="list" style="padding: 0px 15px">
      <ul class="collection"
ff334700c   Melody   Attempt 2
63
          ng-repeat="(weeknum, week_cards) in cards | filter:searchText | filter:filterByDate | groupBy: 'material_week_num' | orderBy:-material_week_num">
362cfb056   Melody   Flag cards and ba...
64
65
66
67
68
        <li class="collection-header"><h3>Week {{weeknum}}</h3></li>
        <li class="collection-item" ng-click="expand = !expand" ng-repeat="card in week_cards" ng-show="show || !card.is_hidden">
          <div>{{card.text}}
            <span class="badge">{{dayofweek(card)}}</span>
            <p class="right-align" ng-show="expand">
b81f6487c   Melody   Yay for eyes, als...
69
70
71
72
73
74
75
76
              <a href="" class="tooltipped" ng-click="pull(card)" ng-show="!card.is_in_deck" data-position="bottom" data-delay="50" data-tooltip="Add to Deck">
                  <i class="mdi-content-add-circle-outline small"></i></a>
              <a href="" class="tooltipped" ng-click="unpull(card)" ng-show="card.is_in_deck" data-position="bottom" data-delay="50" data-tooltip="Add to Deck">
                  <i class="mdi-content-remove-circle-outline small"></i></a>
              <a href="" class="tooltipped" ng-click="hide(card)" ng-show="!card.is_hidden" data-position="bottom" data-delay="50" data-tooltip="Hide">
                  <i class="mdi-action-visibility-off small"></i></a>
              <a href="" class="tooltipped" ng-click="unhide(card)" ng-show="card.is_hidden" data-position="bottom" data-delay="50" data-tooltip="Unhide">
                  <i class="mdi-action-visibility small"></i></a>
e52721a27   Melody   Attempt to fix 1,...
77
              <a href="" ng-click="flag(card)" data-position="bottom" data-delay="50" data-tooltip="Flag">
b81f6487c   Melody   Yay for eyes, als...
78
                  <i class="mdi-content-flag small"></i></a>
362cfb056   Melody   Flag cards and ba...
79
80
81
82
83
84
85
86
87
88
89
90
91
            </p>
          </div>
        </li>
      </ul>
    </div>
  
  
    <div class="fixed-action-btn back-to-top" style="bottom: 45px; right: 24px; display: none;">
      <a class="btn-floating btn-large">
        <i class="mdi-editor-publish medium"></i>
      </a>
    </div>
  </body>