summaryrefslogtreecommitdiff
path: root/static/partials/albums/list.html
blob: 01ac2a8dce7e4d6d1d23c009873674e4cae5cb03 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<div class="row">
  <div class="col-sm-offset-1 col-sm-11 col-xs-12">
    <h2>Albums</h2>
  </div>
</div>
<div class="row">
  <div class="col-sm-offset-1 col-sm-6 col-xs-12">
    <input type="text" class="form-control" data-ng-model="search" placeholder="Search for...">
  </div>
</div>
<div class="row" data-ng-hide="search">
  <div class="col-sm-1 hidden-xs text-center">
    <div class="btn-group-vertical" role="group">
      <label data-ng-repeat="i in indices" data-ng-model="$parent.selectedIndex" class="btn btn-default btn-sm" uib-btn-radio="'{{ i }}'" uncheckable>{{ i }}</label>
    </div>
  </div>
  <div class="visible-xs-block col-xs-12">
    <select data-ng-model="selectedIndex">
      <option data-ng-repeat="i in indices" value="{{ i }}">{{ i }}</option>
    </select>
  </div>
  <div class="col-sm-11 col-xs-12">
    <p data-ng-repeat="album in albums | dateFilter:selectedIndex"><a data-ui-sref="albums.detail({ albumId: album.id })">{{ album.name }}<span ng-show="album.date"> ({{ album.date | amDateFormat: 'YYYY':'':'':'YYYY-MM-DD' }})</span></a></p>
  </div>
</div>
<div class="row" data-ng-show="search">
  <p data-ng-repeat="album in albums | filter:search"><a data-ui-sref="albums.detail({ albumId: album.id })">{{ album.name }}<span ng-show="album.date"> ({{ album.date | amDateFormat: 'YYYY':'':'':'YYYY-MM-DD' }})</span></a></p>
</div>