Files
brewman/brewman/static/partial/ledger.html
tanshu c90651aa8c Disabled autocomplete
Autocomplete has been disabled by setting the autocomplete="off" tag in
each form.
2016-12-04 11:34:44 +05:30

86 lines
3.7 KiB
HTML

<form class="form-horizontal" role=form autocomplete="off">
<h2>Ledger</h2>
<div class="form-group">
<label for="txtStartDate" class="col-md-2 control-label">Date</label>
<div class="col-md-5">
<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"/>
<span class="input-group-btn">
<button class="btn btn-default"><i class="glyphicon glyphicon-calendar"></i></button>
</span>
</div>
</div>
<div class="col-md-5">
<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>
<div class="form-group">
<label for="txtLedger" class="col-md-2 control-label">Ledger</label>
<div class="col-md-10">
<div class="input-group">
<input type="text" id="txtLedger" class="form-control" ng-model="info.Ledger" autocomplete="off"
typeahead="account as account.Name for account in accounts($viewValue)"
typeahead-editable="false" on-return="show()" focus-on="foLedger"/>
<span class="input-group-btn">
<button class="btn btn-info" ng-click="show()">Show <i class="glyphicon glyphicon-eye-open"></i>
</button>
</span>
</div>
</div>
</div>
<table class="table table-condensed table-bordered table-striped" keypress="shortcuts" focus-on="foGrid">
<thead>
<tr>
<th>Date</th>
<th>Particulars</th>
<th>Type</th>
<th>Narration</th>
<th>Debit</th>
<th>Credit</th>
<th>Running</th>
</tr>
</thead>
<tbody>
<tr id="{{$index}}" ng-repeat="item in ledger"
ng-class="{danger:!item.Posted && $index!=selected, warning:$index==selected}"
ng-click="setSelected($index)">
<td class="no-wrap">{{item.Date}}</td>
<td ng-if="!item.Url">{{item.Name}}</td>
<td ng-if="item.Url"><a href="{{item.Url}}">{{item.Name}}</a></td>
<td class="no-wrap">{{item.Type}}</td>
<td>{{item.Narration}}</td>
<td class="text-right no-wrap">{{item.Debit | currency | clr}}</td>
<td class="text-right no-wrap">{{item.Credit | currency | clr}}</td>
<td class="text-right no-wrap">{{item.Running | accounting}}</td>
</tr>
</tbody>
<tfoot>
<tr>
<td class="no-wrap"></td>
<td>Closing Balance</td>
<td>Closing Balance</td>
<td></td>
<td class="text-right no-wrap">{{footer.Debit | currency}}</td>
<td class="text-right no-wrap">{{footer.Credit | currency}}</td>
<td class="text-right no-wrap">{{footer.Running | accounting}}</td>
</tr>
</tfoot>
</table>
<div class="form-group">
<div class="col-md-offset-2 col-md-10">
<button class="btn btn-info" ng-click="downloadTable()">Download <i
class="glyphicon glyphicon-download-alt"></i></button>
</div>
</div>
</form>