<div class="modal fade" id="cadequip"  role="dialog"  aria-hidden="true">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <h3 class="modal-title" style="float:left;"><i class="fa fa-user"></i> Cadastrar Equipe</h3>
                <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                    <span class="glyphicon glyphicon-remove" aria-hidden="true"></span>
                </button>
                <br>
            </div>
            <form method="POST" action="<?= base_url('cadEquipe') ?>">
                <div class="modal-body">

                    <label for="imgquip">Icone da Equipe</label>
                    <div class="form">		
                        <input type="file" name="img_file" id="img_file" class="form-control-file"  >
                    </div>
                    <br>

                    <div class="form-group" id="cut">
                        <canvas id="canvas"></canvas>
                    </div>

                    <button id="crop" class="btn btn btn-primary"><i class="fa fa-crop" aria-hidden="true"></i> Recortar</button>

                    <div id="result"></div>
                    <br>

                    <div class="form-group">
                        <label for="nomequip">Nome da Equipe</label>
                        <input type="text" class="form-control" name="nomequip" placeholder="Nome" autocomplete="off" required="">
                    </div>

                </div>

                <div class="modal-footer">
                    <button type="button" class="btn btn-sm" data-dismiss="modal">Fechar</button>
                    <button class="btn btn btn-primary" >Cadastrar</button>
                </div>
                <input type="hidden" name="file_name"   id="file_name">
                <input type="hidden" name="cropped_img" id="cropped_img">
            </form>
        </div>
    </div>
</div>
<script src="<?php echo base_url('assets/js/recorte.js') ?>"></script>
