<form method="post" autocomplete="off" class="form-horizontal">
    <legend>Daybook</legend>
    <div class="control-group">
        <label for="txtStartDate" class="control-label">Date</label>

        <div class="controls">
            <datepicker id="txtStartDate" model="info.StartDate" ng-model="info.StartDate"></datepicker>
            <datepicker id="txtFinishDate" model="info.FinishDate" ng-model="info.FinishDate"></datepicker>
            <button class="btn btn-info" ng-click="show()">Show <i class="icon-eye-open icon-white"></i></button>
        </div>
    </div>
    <div class="control-group">
        <label for="gvGrid" class="control-label"></label>

        <div class="controls">
            <table id="gvGrid" class="table table-condensed table-bordered table-striped">
                <thead>
                <tr>
                    <th>Date</th>
                    <th>Type</th>
                    <th>Narration</th>
                    <th>Debit</th>
                    <th class="right">Amount</th>
                    <th>Credit</th>
                    <th class="right">Amount</th>
                </tr>
                </thead>
                <tbody>
                <tr ng-repeat="item in info.Body" ng-class="{true:'', false:'error'}[item.Posted]">
                    <td><a href="{{item.Url}}">{{item.Date}}</a></td>
                    <td>{{item.Type}}</td>
                    <td>{{item.Narration}}</td>
                    <td class="right">{{item.DebitN}}</td>
                    <td class="right">{{item.DebitA}}</td>
                    <td class="right">{{item.CreditN}}</td>
                    <td class="right">{{item.CreditA}}</td>
                </tr>
                </tbody>
            </table>
        </div>
    </div>
</form>
