Skip to content

Instantly share code, notes, and snippets.

@ayushghosh
Created November 2, 2014 18:28
Show Gist options
  • Save ayushghosh/d45e33ba57e6cef1248d to your computer and use it in GitHub Desktop.
Save ayushghosh/d45e33ba57e6cef1248d to your computer and use it in GitHub Desktop.
track
<h4 class="sectionTitle">Track Shippment</h4>
<hr>
<div ng-show="thisSection.data.length === 0" class="panel panel-default">
<div class="panel-body">
We did not find any shipment information.
</div>
</div>
<div class="well" ng-hide="thisSection.data.length === 0">
<h3>Shipped packages</h3>
<br>
<table class="table">
<thead>
<tr>
<th>#</th>
<th>Tracking ID</th>
<th>Service Provider</th>
<th>Description</th>
<th>Dispatch Date</th>
<th>Tracking Url</th>
<th>Status</th>
</tr>
</thead>
<tbody>
<tr ng-repeat="package in thisSection.data">
<td>{{ $index + 1 }}</td>
<td>{{ package.trackingCode }}</td>
<td>{{ package.serviceProvidor.serviceProvidorName }}</td>
<td>
{{ package.description }}
</td>
<td>
<span am-time-ago="package.dispatchedOn"></span>
</td>
<td>
<a class="btn btn-info btn-xs" target="_blank" href="{{ package.serviceProvidor.trackingUrl }}">Track</a>
</td>
<td>
<button class="btn btn-success disabled btn-xs" ng-show="package.isReceived == 'yes'">Received</button>
<button class="btn btn-default btn-xs" ng-show="package.isReceived == 'N/A'" ng-click="trackingReceived(package.trackingId)" >Mark Received</button>
<button class="btn btn-danger btn-xs" ng-show="package.isReceived == 'no'">No</button>
</td>
</tr>
</tbody>
</table>
</div>
<!-- <div ng-hide="thisSection.data.length === 0" class="panel panel-default">
<div class="panel-heading">Tracking following packages</div>
<div class="panel-body">
<p>Legal text</p>
</div>
<table class="table">
<thead>
<tr>
<th>#</th>
<th>Tracking ID</th>
<th>Service Provider</th>
<th>Description</th>
<th>Dispatch Date</th>
<th>Status</th>
<th>Tracker</th>
</tr>
</thead>
<tbody>
<tr ng-repeat="package in thisSection.data">
<td>{{ $index + 1 }}</td>
<td>{{ package.trackingId }}</td>
<td>{{ package.serviceProvidor.serviceProvidorName }}</td>
<td>{{ package.description }}</td>
<td>{{ package.dispatchedOn }}</td>
<td>{{ package.isReceived }}</td>
<td><a class="btn btn-info" target="_blank" href="{{ package.serviceProvidor.trackingUrl }}">Track</a></td>
</tr>
</tbody>
</table>
</div>
-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment