<div>

    <div class="modal-header">
        <h3>Pesquisa Avançada</h3>
    </div>
    <div class="modal-body">
        <div class="container-fluid">
            <div class="col-md-6">
                <form class="form-horizontal" role="form">
                    <div class="checkbox">
                        <label>
                            <input type="checkbox" ng-model="selected.item.abates"> <b>Abates</b>
                        </label>
                    </div>
                    <!--<div class="checkbox-inline">
                        <label>
                            <input type="checkbox" ng-model="selected.item.pornumero"> <b>Número</b>
                        </label>
                    </div>-->
                    <br />
                    <label>Descrição</label>
                    <input type="text" class="form-control" ng-model="selected.item.query" placeholder="Descrição ou localização" ng-change="">
                    <br />
                    <label>Nº Inventário</label>
                    <table>
                        <tr>
                            <td style="width:30px;">De</td>
                            <td><input type="text" 
                                       class="form-control" 
                                       ng-model="selected.item.ninicial"
                                       maxlength="10"
                                       numbers-only 
                                       placeholder="">
                            </td>
                            <td style="width: 30px; padding-left: 5px">Até</td>
                            <td><input type="text" 
                                       class="form-control" 
                                       ng-model="selected.item.nfinal"
                                       numbers-only
                                       maxlength="10" 
                                       placeholder=""></td>
                        </tr>
                    </table>
                    
                    <br />
                    <label>Máx. Items por página</label>
                    <input type="text" class="form-control" ng-model="selected.item.n" numbers-only
                           maxlength="3" placeholder="">
                    <br />
                </form>
            </div>
            <div class="col-md-6">
                <form class="form-horizontal" role="form">
                    <div class="checkbox">
                        <label>
                            <input type="checkbox" ng-model="selected.item.pordata"> <b>Data do Bem</b>
                        </label>
                    </div>
                    <br />
                    <label>Início</label>
                    <input type="text" class="form-control readonly"
                           ng-model="selected.item.datai"
                           readonly="readonly"
                           datepicker-popup="yyyy-MM-dd" is-open="false"
                           ng-required="true" close-text="Fechar" clear-text="Limpar" current-text="Hoje" />
                    <br />
                    <label>Fim</label>
                    <input type="text" class="form-control readonly"
                           ng-model="selected.item.dataf"
                           readonly="readonly"
                           datepicker-popup="yyyy-MM-dd" is-open="false"
                           ng-required="true" close-text="Fechar" clear-text="Limpar" current-text="Hoje" />
                    <br />
                    <label>Gestor</label>
                    <input type="text" class="form-control" ng-model="selected.item.gestor" placeholder="">
                    <br />
                </form>
            </div>
        </div>
        
    </div>
    <div class="modal-footer">
        <button class="btn btn-primary" ng-click="ok()">Ok</button>
        <button class="btn btn-warning" ng-click="cancel()">Cancelar</button>
    </div>

</div>