<form class="form-horizontal" role=form>
    <h2>Balance Sheet</h2>

    <div class="form-group">
        <label for="txtDate" class="col-md-2 control-label">Date</label>

        <div class="col-md-8">
            <div class="input-group">
                <input type="text" class="form-control" id="txtDate" datepicker-popup="dd-MMM-yyyy"
                       ng-model="info.Date"/>
                <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>Group</th>
            <th>Name</th>
            <th>Amount</th>
            <th>Total</th>
        </tr>
        </thead>
        <tbody>
        <tr ng-repeat="item in info.Body">
            <td>{{item.Group}}</td>
            <td>{{item.Name}}</td>
            <td class="text-right">{{item.SubAmount | currency | clr}}</td>
            <td class="text-right">{{item.Amount | currency | clr}}</td>
        </tr>
        </tbody>
        <tfoot>
        <tr ng-repeat="item in info.Footer">
            <td><strong>{{item.Group}}</strong></td>
            <td>{{item.Name}}</td>
            <td class="text-right">{{item.SubAmount | currency | clr}}</td>
            <td class="text-right"><strong>{{item.Amount | currency | clr}}</strong></td>
        </tr>
        </tfoot>
    </table>
</form>
