Pony.fm/public/templates/tracks/index.html

59 lines
2.9 KiB
HTML
Raw Permalink Normal View History

2016-08-04 04:42:46 +02:00
<div layout="row" layout-wrap flex flex-gt-md="50">
<md-input-container flex flex-xs="50">
<label>Type</label>
<md-select ng-model="type" md-on-close="filterDropdownAfterClose(type, 'trackTypes')" multiple>
<md-option value="any" selected>Any</md-option>
<md-option ng-repeat="type in ::filters.trackTypes.values track by type.id" value="{{type.id}}">{{::type.title}}</md-option>
</md-select>
</md-input-container>
<md-input-container flex flex-xs="50">
<label>Show songs</label>
<md-select ng-model="showSongs" md-on-close="filterDropdownAfterClose(showSongs, 'showSongs')" multiple>
<md-option value="any" selected>Any</md-option>
<md-option ng-repeat="song in ::filters.showSongs.values track by song.id" value="{{song.id}}">{{::song.title}}</md-option>
</md-select>
</md-input-container>
<md-input-container flex flex-xs="50">
<label>Genre</label>
<md-select ng-model="genres" md-on-close="filterDropdownAfterClose(genres, 'genres')" multiple>
<md-option value="any" selected>Any</md-option>
<md-option ng-repeat="genre in ::filters.genres.values track by genre.id" value="{{genre.id}}">{{::genre.title}}</md-option>
</md-select>
</md-input-container>
<md-input-container flex flex-xs="50">
<label>Has vocals</label>
<md-select ng-model="isVocal" md-on-close="handleSingularDropdown('isVocal', isVocal)">
<md-option ng-repeat="item in ::filters.isVocal.values track by $index" value="{{item}}">{{::item.title}}</md-option>
</md-select>
</md-input-container>
<md-input-container flex>
<label>Order by</label>
<md-select ng-model="order" md-on-close="handleSingularDropdown('sort', order)">
<md-option ng-repeat="filter in ::filters.sort.values track by $index" value="{{filter}}">{{::filter.title}}</md-option>
</md-select>
</md-input-container>
</div>
2013-07-31 13:47:16 +02:00
2016-01-08 01:46:12 +01:00
<div class="pagination" ng-if="totalPages > 1">
2015-10-25 03:35:37 +01:00
<ul>
<li ng-class="{disabled: !prevPage}"><a href="#" ng-click="gotoPage(prevPage);" pfm-eat-click>Prev</a></li>
<li ng-repeat="page in pages track by page" ng-class="{active: page == currentPage}">
2016-02-16 14:04:00 +01:00
<a href="#" ng-click="gotoPage(page);" pfm-eat-click>{{page}}</a>
2015-10-25 03:35:37 +01:00
</li>
<li ng-class="{disabled: !nextPage}"><a href="#" ng-click="gotoPage(nextPage);" pfm-eat-click>Next</a></li>
<li class="pagination-jump">
<a href="#" ng-click="showPageSelector();" ng-hide="pageSelectorShown" pfm-eat-click>Jump&hellip;</a>
2016-02-16 14:04:00 +01:00
<form ng-submit="jumpToPage(inputPageNumber)" ng-show="pageSelectorShown">
<input type="number" id="pagination-jump-destination" ng-model="inputPageNumber" ng-blur="hidePageSelector()" />
<input type="submit" />
</form>
</li>
2015-10-25 03:35:37 +01:00
</ul>
2013-07-31 13:47:16 +02:00
</div>
2015-10-25 03:35:37 +01:00
<ui-view></ui-view>