<div id="adicionarPreventiva" class="modal-demo">
    <button type="button" class="close" onclick="Custombox.close();">
        <span>&times;</span><span class="sr-only">Close</span>
    </button>
    <h4 class="custom-modal-title">Cadastrar Preventiva</h4>
    <div class="custom-modal-text">

        <form action="<?php echo base_url(); ?>preventiva/adicionar" method="post" name="formAddPreventiva" id="formAddPreventiva"
              class="floating-labels m-t-40">
            <div class="form-body">
                <h3 class="card-title">Informações sobre a Preventiva [#<span id="teste"></span>]</h3>
                <input type="hidden" id="idVeiculo" name="idVeiculo">

                <hr>

                <div class="row p-t-20 ">

                    <div class="form-group col-lg-4">
                        <input type="text" class="form-control" id="prefixoPreventiva" name="prefixoPreventiva"
                               required >
                        <span class="bar"></span>
                        <label for="input1">Prefixo Veículo <i class="fa fa-search"></i></label>
                    </div>

                    <div class="form-group col-lg-3">
                        <input type="text" class="form-control text-center" id="placa" name="placa"
                               required readonly>
                        <span class="bar"></span>
                        <!--                        <label for="input1">Placa</label>-->
                    </div>
                    <div class="form-group col-lg-4 ">
                        <input type="text" class="form-control text-center" id="garagem" name="garagem"
                               required readonly>
                        <span class="bar"></span>
                        <!--                        <label for="input1">Garagem</label>-->
                    </div>
                </div>


                <div class="row p-t-20 ">
                    <div class="form-group col-lg-6">
<!--                        <select name="funcionario_id" id="funcionario_id" class="form-control m-b"-->
<!--                                required>-->
<!--                            --><?php
//                            foreach ($resultscomboFuncionarios as $r) {
//                                ?>
<!--                                <option value="--><?php //echo $r->idFuncionario ?><!--">--><?php //echo $r->nomeFuncionario ?><!--</option>-->
<!--                            --><?php //} ?>
<!--                        </select>-->

                        <label for="input1">Técnico</label>
                    </div>

                    <div class="form-group col-lg-6">
                        <input type="date" class="form-control text-center" id="dataPreventiva"
                               name="dataPreventiva"
                               required value="<?php echo date('Y-m-d')?>">
                        <span class="bar"></span>
                        <label for="input1">Data da Preventiva</label>
                    </div>
                </div>

            </div>
            <div class="modal-footer">
                <a onclick="Custombox.close();" class="btn btn-default"><i
                            class="icon-arrow-left"></i> Voltar</a>

                <button type="button" id="teste" class="btn btn-success"><i class="fa fa-save"></i> Save</button>
            </div>
        </form>
    </div>
</div>



<script>
    //$("#prefixoPreventiva").autocomplete({
    //    source: "<?php //echo base_url(); ?>//veiculos/autoCompleteVeiculo",
    //    minLength: 3,
    //    select: function (event, ui) {
    //        $("#proprietario_id").val(ui.item.id);
    //        $("#placa").val(ui.item.placa);
    //        $("#garagem").val(ui.item.garagem);
    //        $("#idVeiculo").val(ui.item.idVeiculo);
    //        $("#teste").html(ui.item.idVeiculo);
    //    }
    //});


</script>