Refactor: Renamed column, table, and uses of Cost Center to Cost Centre Refactor: Renamed costcenter to cost_centre
56 lines
2.2 KiB
HTML
56 lines
2.2 KiB
HTML
<form class="form-horizontal" role=form>
|
|
<h2>Raw Material Cost</h2>
|
|
|
|
<div class="form-group">
|
|
<label for="txtStartDate" class="col-md-2 control-label">Date</label>
|
|
|
|
<div class="col-md-4">
|
|
<div class="input-group">
|
|
<input class="form-control" id="txtStartDate" type="text" datepicker-popup="dd-MMM-yyyy"
|
|
is-open="sdOpen" ng-focus="sdOpen = true" ng-model="info.StartDate" focus-on="foDate"/>
|
|
<span class="input-group-btn">
|
|
<button class="btn btn-default"><i class="glyphicon glyphicon-calendar"></i></button>
|
|
</span>
|
|
</div>
|
|
</div>
|
|
<div class="col-md-4">
|
|
<div class="input-group">
|
|
<input type="text" id="txtFinishDate" class="form-control" datepicker-popup="dd-MMM-yyyy"
|
|
is-open="fdOpen" ng-focus="fdOpen = true" ng-model="info.FinishDate"/>
|
|
<span class="input-group-btn">
|
|
<button class="btn btn-default"><i class="glyphicon glyphicon-calendar"></i></button>
|
|
</span>
|
|
</div>
|
|
</div>
|
|
<div class="col-md-2">
|
|
<button class="btn btn-info" ng-click="show()">Show <i class="glyphicon glyphicon-eye-open"></i></button>
|
|
</div>
|
|
</div>
|
|
<table class="table table-condensed table-bordered table-striped">
|
|
<thead>
|
|
<tr>
|
|
<th>Cost Centre</th>
|
|
<th>Issue</th>
|
|
<th>Sale</th>
|
|
<th>Rmc</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr ng-repeat="item in info.Body">
|
|
<td><a href="{{item.Url}}">{{item.Name}}</a></td>
|
|
<td class="text-right">{{item.Issue | currency}}</td>
|
|
<td class="text-right">{{item.Sale | currency}}</td>
|
|
<td class="text-right">{{item.Rmc | percent}}</td>
|
|
</tr>
|
|
</tbody>
|
|
<tfoot>
|
|
<tr ng-repeat="item in info.Footer">
|
|
<td>{{item.Name}}</td>
|
|
<td class="text-right">{{item.Issue | currency}}</td>
|
|
<td class="text-right">{{item.Sale | currency}}</td>
|
|
<td class="text-right">{{item.Rmc | percent}}</td>
|
|
</tr>
|
|
</tfoot>
|
|
</table>
|
|
</form>
|