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-orders.html
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
119 lines (111 sloc)
7.18 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' 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)"> | |
  <span class="glyphicon glyphicon-search"></span>   | |
</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 ng-show="x.is_default == 1"> | |
<b>Default Payment Type: </b> <b ng-show="x.token && !x.email">Apple Pay {{x.token}}</b> <b ng-show="x.expr_date">Credit Card {{x.cardnum}}</b> <b ng-show="x.email">Google Pay {{x.email}}</b> | |
<input type="radio" ng-model="$parent.pay" name="pay" value="{{x.PayId}}" /> | |
</label> | |
<label ng-show="x.is_default == 0"> | |
Payment Type: <b ng-show="x.token && !x.email">Apple Pay {{x.token}}</b> <b ng-show="x.expr_date">Credit Card {{x.cardnum}}</b> <b ng-show="x.email">Google Pay {{x.email}}</b> | |
<input type="radio" ng-model="$parent.pay" name="pay" value="{{x.PayId}}" /> | |
</label> | |
</li> | |
</ul> | |
</form> | |
<div ng-show="pay" align="right"><button ng-disabled="myForm.$invalid" data-ng-click="buy(pay)" class="btn btn-primary btn-lg"> Purchase Cart </button></div> | |
<div ng-show="!pay" align="right"> <b>You have no payment method selected! <br />Please select a payment method or add one in Manage account.</b> </div> | |
<br /><br /><br /><br /><br /><br /><br /><br /> | |
</div> |