2015-11-24 06:19:23 +01:00
|
|
|
<h1>Genre Editor</h1>
|
|
|
|
|
2015-11-24 11:49:47 +01:00
|
|
|
<section class="genre-list stretch-to-bottom">
|
|
|
|
<table class="table">
|
|
|
|
<thead>
|
|
|
|
<th>Genre</th>
|
|
|
|
<th class="-status"></th>
|
|
|
|
<th># of tracks (including deleted)</th>
|
|
|
|
<th>Actions</th>
|
|
|
|
</thead>
|
|
|
|
<tr ng-repeat="genre in genres">
|
|
|
|
<td>
|
|
|
|
<input
|
|
|
|
type="text"
|
|
|
|
class="x-large"
|
|
|
|
ng-class="{'x-saving': genre.isSaving, 'x-error': genre.isError}"
|
|
|
|
ng-model="genre.name"
|
|
|
|
pfm-on-enter="renameGenre(genre)"
|
|
|
|
/>
|
|
|
|
<div class="alert alert-error" ng-show="genre.isError">
|
|
|
|
{{ genre.errorMessage }}
|
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
<td><i ng-show="genre.isSaving" class="icon-cog icon-spin icon-large"></i></td>
|
2015-11-24 12:37:33 +01:00
|
|
|
<td><a ng-href="{{ genre.url }}">{{ genre.track_count }}</a></td>
|
2015-11-24 11:49:47 +01:00
|
|
|
<td>
|
|
|
|
<button class="btn btn-warning" disabled>Merge…</button>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</section>
|