Skip to content
Permalink
5c762bb444
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
136 lines (121 sloc) 7.67 KB
<div ng-controller='userController' data-ng-init="initOrders()">
<div id="messages" class="alert alert-info" data-ng-show="messages" data-ng-bind="messages"></div>
<div class="container">
<div class="row sm-flex-center">
<div class="col-sm-7">
<uib-tabset>
<uib-tab heading="Add Playlists">
<table>
<center><b>Playlist Name</b></center>
<center>Click a playlist to see track listing</center>
<tr ng-repeat="x in myPlaylists">
<td width="80%">
<text ng-click="open(x)">{{x.Name}}</text>
</td>
<td width="20%"><center><button data-ng-click="addMPLToCart({{x.PlaylistID}})" class="btn btn-success btn-xs"> Add to cart </button></center></td></td>
</tr>
<tr ng-repeat="x in playlists">
<td width="80%">
<text ng-click="open(x)">{{x.Name}}</text>
</td>
<td width="20%"><center><button data-ng-click="addPLToCart({{x.PlaylistID}})" class="btn btn-success btn-xs"> Add to cart </button></center></td> </td></td>
</tr>
</table>
</uib-tab>
<uib-tab heading="Add Tracks">
<form name="myForm">
<table>
<td width="90%"><center><input type="text" ng-model="token" class="form-control" placeholder="Search our music database!" /></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-sm" ng-click="search(token,data.singleSelect)">
&nbsp&nbsp<span class="glyphicon glyphicon-search"></span>&nbsp&nbsp
</button>
</center>
</td>
</table>
</form>
<div style="overflow-y: scroll; height:450px;">
<table>
<td width="5%"><center></center></td>
<td width="25%"><center>Track Name</center></td>
<td width="25%"><center>Album Name</center></td>
<td width="16%"><center>Media Type</center></td>
<td width="8%"><center>Genre</center></td>
<td width="5%"><i class="glyphicon glyphicon-music"></i></td>
<td width="10%"><center>Price</center></td>
<tr ng-repeat="x in orderOptions.data">
<td width="3%"> <center> <button data-ng-click="addToCart({{x.TrackId}})" class="btn btn-success btn-xs"> + </button></center> </td> </td>
<td width="30%">{{x.TrackName}}</td>
<td width="30%">{{x.AlbumTitle}}</td>
<td width="16%">{{x.MediaType}}</td>
<td width="8%">{{x.Genre}}</td>
<td width="5%">
<audio id="audio1">
<source src="http://a1310.phobos.apple.com/us/r1000/167/Music3/v4/00/23/38/0023383d-1616-fbe2-b3a3-7f2de268911b/mzaf_7209253486009554987.plus.aac.p.m4a"></source>
Your browser isn't invited for super fun audio time.
</audio>
<center> <button data-ng-click="play()" class="btn btn-normal btn-xs"> <i class="glyphicon glyphicon-play"></i> </button></center>
</td>
<td width="4%">{{x.UnitPrice}}</td>
</tr>
</table>
</div>
</uib-tab>
</uib-tabset>
</div>
<div class="col-sm-3 middle" style="overflow-y: scroll; height:530px;">
<table>
<tr><th colspan="2"><center>Current Order</center></th></tr>
<td width="90%"><center>Track Name</center></td>
<td width="10%"><center>Price</center></td>
<tr ng-repeat="x in currOrder">
<td width="90%">{{x.TrackName}}</td>
<td width="10%">{{x.UnitPrice}}</td>
</tr>
</table>
</div>
</div>
</div>
<form name="myForm">
<p>Choose your payment method</p>
<ul>
<li ng-repeat="x in currpayments">
<label>
Payment Type: {{x.Type}}
<input type="radio" ng-model="$parent.pay" name="pay" value="{{x.PayId}}" required />
</label>
</li>
</ul>
</form>
<div align="right"><button ng-disabled="myForm.$invalid" data-ng-click="buy(pay)" class="btn btn-primary btn-lg"> Purchase Cart </button></div>
<br /><br /><br /><br /><br /><br /><br /><br />
Link to Order Screen that lets a customer select a playlist to order (from MyPlaylist
or Playlist) or as selected by track via the detailed searching of tracks by track name,
album name, artist name, composer name, genre name, and/or media name. The
Order screen is tied to a Shopping Cart.<br />
Pending/Completed Orders and Status Screen – this should drill down to one order in a read
only mode to view a specific order when reached from the selection on the Customer
Dashboard<br />Order Screen: A screen for that lets a customer select a playlist to order (from MyPlaylist or
Playlist) or as selected by track via the detailed searching of tracks by track name, album
name, artist name, composer name, genre name, and/or media name. The Order screen is
tied to a Shopping Cart. You need to decide the way for customers to select either playlists
(their own in MyPlaylists or in Playlists) or from tracks that are then included in a shopping
cart.<br />
Shopping Cart Screen – to show the items that are being placed for potential order. Time
permitting, you should add the ability to edit the order (remove tracks) but this is not an
immediate initial features.
</div>