mirror of
https://github.com/Poniverse/Pony.fm.git
synced 2024-11-23 13:37:59 +01:00
33 lines
1.5 KiB
HTML
33 lines
1.5 KiB
HTML
<h1>Genre Editor</h1>
|
|
|
|
<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 class="-actions">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>
|
|
<td><a ng-href="{{ genre.url }}">{{ genre.track_count }}</a></td>
|
|
<td class="-actions">
|
|
<button class="btn btn-warning" ng-hide="mergeInProgress" ng-click="startMerge(genre)">Merge…</button>
|
|
<button class="btn btn-danger" ng-show="mergeInProgress && genreToDelete.id != genre.id" ng-click="finishMerge(genre)">Merge in <em>{{ genreToDelete.name }}</em>…</button>
|
|
<button class="btn btn-warning" ng-show="mergeInProgress && genreToDelete.id == genre.id" ng-click="cancelMerge()">Cancel merge</button>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</section>
|