<div id="gerarManutencao" 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">Gerar Manutenção Preventiva</h4>
    <div class="custom-modal-text">



        <form action="<?php echo base_url(); ?>manutencao/gerarOrdemServicoDaAgenda" method="post" name="formAtenderPreventiva" id="formAtenderPreventiva"
              class="floating-labels m-t-40">
                <h3 class="card-title">Abrir Ordem de Servicos ?</h3>
                <input type="hidden" id="idAgendaItemAtualizar" name="idAgendaItemAtualizar">
            <div class="modal-footer">

                <div class="col-lg-6 col-md-6 text-center">
                    <button type="button" class="btn btn-block btn-lg btn-danger text-center" onclick="Custombox.close();">Não</button>
                </div>
                <div class="col-lg-6 col-md-6 text-center">
                    <button type="submit" class="btn btn-block btn-lg btn-success text-center">Sim</button>
                </div>
            </div>
        </form>
    </div>
</div>



<script type="text/javascript">

    $(document).on('click', 'a', function (event) {
        if ($(this).attr('preventivaItem')) {
            $('#preventiva_id').val($(this).attr('preventivaItem'));
        }
    });

</script>