<form name="frmForm" autocomplete="off" class="form-horizontal">
    <legend>Attendance</legend>
    <div class="control-group">
        <label for="txtDate" class="control-label">Date</label>

        <div class="controls">
            <datepicker id="txtDate" model="info.Date" ng-model="info.Date"></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 class="right">Code</th>
                    <th>Name</th>
                    <th>Designation</th>
                    <th>Department</th>
                    <th>Status</th>
                    <th>Prints</th>
                </tr>
                </thead>
                <tbody>
                <tr ng-repeat="item in info.Body"
                    ng-class="{0:'', 1:'Present', 2:'Off', 3:'Leave', 4:'Absent', 5:'HalfDay', 6:'Double', 7:'PaidLeaveAvailed', 8:'CasualLeaveAvailed', 9:'Overtime', 10:'OffWorked', 11:'COff', 12:'HalfPL', 13:'HalfCL'}[item.AttendanceTypeID]"
                    ng-controller="AttendanceSubCtrl">
                    <td class="right">{{item.Code}}</td>
                    <td><i class="icon-leaf" ng-show="isDirty()"></i> {{item.Name}}</td>
                    <td>{{item.Designation}}</td>
                    <td>{{item.Department}}</td>
                    <td>
                        <select class="select-box" ng-model="item.AttendanceTypeID"
                                ng-options="i.AttendanceTypeID as i.Name for i in attendance_types"> </select>

                    </td>
                    <td class="no-bg">{{item.Prints}} <span ng-show="item.Hours.length > 0"
                                                            ng-class="{'label': isLabel(), 'label-success': isGood(), 'label-warning': isBad(), 'label-important': isError()}">{{item.Hours}}</span>
                    </td>
                </tr>
                </tbody>
            </table>
        </div>
    </div>
    <div class="form-actions">
        <button ng-click="save()" ng-disabled="isClean() || frmForm.$invalid" class="btn btn-primary">Save</button>
    </div>

</form>
