Permalink
Cannot retrieve contributors at this time
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?
TeamDbAwesome/TeamDBAwesome/TeamDBAwesome/pages/user-playlists.html
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
100 lines (95 sloc)
5.21 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div ng-controller='userController'> | |
<!--<h1> Playlist Stuff goes here</h1><br /> | |
Link to a screen that for a Customer to create/manage/modify his/her playlists (new | |
MyPlaylist and MyPlaylistTrack entities/tables) which involves detailed searching of | |
tracks by track name, album name, artist name, composer name, genre name, and/or | |
media name<br /><br /> | |
Create/Manage MyPlaylists: A screen that for a Customer to create/manage/modify his/her | |
playlists (new MyPlaylist and MyPlaylistTrack entities/tables) which requires detailed | |
search capabilities for tracks (by track name, album name, artist name, composer name, | |
genre name, and/or media name.). This will display a list of a customer’s play list and when | |
clicking upon a list will show all of the tracks. This has the ability to modify an existing play | |
list (add or remove tracks or remove the entire playlist). This also has the ability to create a | |
new named play list which will allow the customer to perform a detailed search and select | |
tracks. The Search Screen, as shown in Figure 3 for the UConn Job Search, the upper left | |
should have a set of options to search media, by name, artist, composer, genre, media, and/or | |
composer; and, based on the values, return the results. You will need to support multiple | |
pages for the result sets since there can be many results based on the search criteria.--> | |
<!--List of playlists--> | |
<div ng-hide="editing" ng-init="getCustomPlaylists();"> | |
<a ng-click="addCustomPlaylist();">Create New Playlist</a> | |
<!--<div id="playlistGrid" ui-grid="playlistGridOptions" class="gridStyle" ng-if="!editing" style="height: 400px"></div>--> | |
<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 ng-click="deletePlaylist(playlist.PlaylistID)">Delete</a></td> | |
</tr> | |
</table> | |
<h1 ng-show="noPlaylists">You don't have any playlists, try making a new one</h1> | |
</div> | |
<!--Edit Playlist view--> | |
<div ng-show="editing"> | |
<a ng-click="editing=false; addingTrack=false;" ui-sref="user-playlists" class="btn btn-lg btn-primary center-block">Back</a> | |
<a ng-hide="addingTrack" ng-click="addingTrack=true;" class="btn btn-lg btn-primary center-block">Add a track</a> | |
<!--Search for adding tracks to playlist--> | |
<div ng-show="addingTrack"> | |
<form name="myForm"> | |
<table> | |
<td width="90%"><center><input type="text" ng-model="token" class="form-control" placeholder="Find a song for this playlist!" /></center></td> | |
<td width="20%"> | |
<center> | |
<select name="singleSelect" ng-model="data.singleSelect"> | |
<option value="">Please select Search</option> | |
<option value="Track">Search by Track</option> | |
<option value="Artist">Search by Artist</option> | |
<option value="Album">Search by Album</option> | |
<option value="Genre">Search by Genre</option> | |
<option value="Composer">Search by Composer</option> | |
<option value="Media">Search by Media</option> | |
</select><br> | |
</center> | |
</td> | |
<td width="10%"> | |
<center> | |
<button type="button" class="btn btn-default" ng-click="trackSearch(token,data.singleSelect)"> | |
  <span class="glyphicon glyphicon-search"></span>   | |
</button> | |
</center> | |
</td> | |
</table> | |
</form> | |
<div id="trackSearchGrid" ui-grid="trackSearchGridOptions" class="gridStyle" ng-if="addingTrack"></div> | |
<a ng-click="addingTrack=false;" ui-sref="admin-playlist-manager" class="btn btn-lg btn-primary center-block">Done</a> | |
<br /> | |
<br /> | |
</div> | |
<!--List of tracks in playlist--> | |
<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 | formatTime }}</td> | |
<td>{{ track.UnitPrice | currency }}</td> | |
<td><a ng-click="deleteTrack(track.TrackId)">Delete</a></td> | |
</tr> | |
</table> | |
<h1 ng-show="emptyPlaylist">This playlist is empty, try adding a track</h1> | |
</div> | |
</div> |