Skip to content
Permalink
b0d9c00313
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
44 lines (44 sloc) 1.51 KB
<head>
<title>Playlist Editor</title>
<meta charset="utf-8" />
</head>
<div ng-controller="adminController">
<div ng-hide="editing" ng-init="getPlaylists();">
<a>Create New Playlist</a>
<table>
<tr>
<td>Playlist Id</td>
<td>Playlist Name</td>
<td></td>
<td></td>
</tr>
<tr ng-repeat="playlist in playlists">
<td>{{ playlist.PlaylistID }}</td>
<td>{{ playlist.Name }}</td>
<td><a ng-click="toEdit(playlist.PlaylistID);">Edit</a></td>
<td><a ui-sref="admin-delete-playlist">Delete</a></td>
</tr>
</table>
</div>
<div ng-show="editing">
<a ng-click="editing=false;" ui-sref="admin-playlist-manager" class="btn btn-lg btn-primary center-block">Back</a>
<table>
<tr>
<td>Track Id</td>
<td>Track Name</td>
<td>Artist</td>
<td>Length</td>
<td>Price</td>
<td></td>
</tr>
<tr ng-repeat="track in playlistTracks">
<td>{{ track.TrackId }}</td>
<td>{{ track.TrackName }}</td>
<td>{{ track.artist }}</td>
<td>{{ track.Milliseconds }}</td>
<td>{{ track.UnitPrice | currency }}</td>
<td><a ui-sref="admin-delete-playlist">Delete</a></td>
</tr>
</table>
</div>
</div>