<div ng-controller="ocorrenciasController">

    <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">
                    <label>Descrição</label>
                    <input type="text" class="form-control" ng-model="selected.item.TextoProcura" placeholder="" ng-change="">
                    <br />
                    <label>Gestor</label>
                    <input type="text" class="form-control" ng-model="selected.item.Gestor" placeholder="" ng-change="">
                    <br />
                    
                    <label>Máx. Items por página</label>
                    <input type="text" class="form-control" ng-model="selected.item.RegistosPorPagina" 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</b>
                        </label>
                    </div>
                    <br />-->
                    <label>Data de início</label>
                    <input type="text"
                           class="date form-control readonly simple-field-data-mask"
                           data-mask="0000-00-00"
                           ng-model="selected.item.DataInicialStr"
                           placeholder="____-__-__" />
                    <br />
                    <label>Data de fim</label>
                    <input type="text"
                           class="date form-control readonly simple-field-data-mask"
                           data-mask="0000-00-00"
                           ng-model="selected.item.DataFinalStr"
                           placeholder="____-__-__" />
                    <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.NinvInicial"
                                       maxlength="8"
                                       numbers-only
                                       placeholder="">
                            </td>
                            <td style="width: 30px; padding-left: 5px">Até</td>
                            <td>
                                <input type="text"
                                       class="form-control"
                                       ng-model="selected.item.NinvFinal"
                                       numbers-only
                                       maxlength="8"
                                       placeholder="">
                            </td>
                        </tr>
                    </table>

                    <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>
<script>
    $(document).ready(function () {
        $('.date').mask('0000-00-00');

    });
</script>
