<!--Cabecalho -->
<?php $this->load->view('commons/cabecalho'); ?>
<!--Header -->
<?php $this->load->view('commons/header'); ?>

<br>

<div class="row">
    <h4 style="margin-left: 7%; font-size: 30pt;"><b>Confirmação de Endereço</b></h4>
    <?php echo $this->session->flashdata('prova-erro'); ?>

             <div class="alert alert-success alert-conf" role="alert">
                 <i class="fa fa-check-circle"></i> O seu Certificado Web será liberado imediatamente no site e enviado por <b>e-mail</b> após a identificação do pagamento.
            </div>
    <?php echo $erro_conf ?>

    <form action="<?= base_url('confirmacao') ?>" method="POST" autocomplete="off" class="form-conf" style="margin-left: 6%;">
        <button class="btn waves-effect waves-light btn-curso btn-end" type="submit" name="action" style="margin-left: 1%; margin-bottom: 2%;">Continuar <i class="fa fa-arrow-circle-o-right" aria-hidden="true"></i></button>
        <div class="row">
            <div class="input-field col s12 m4">
                <i class="material-icons prefix">loupe</i>  
                <input class="ceps cep-conf" id="cep" type="tel" name="cep" required="" pattern="\d{5}-\d{3}" placeholder="CEP"  value="<?php echo $aluno['cep'] ?>">
                <label for="nome">CEP</label>
            </div>
            <div class="input-field col s12 m8">
                <i class="material-icons prefix">location_on</i>  
                <input id="endereco" type="text" name="endereco" required="" placeholder="Endereço"  value="<?php echo $aluno['endereco'] ?>">
                <label for="endereco">Endereço</label>
            </div>
        </div>
        <div class="row">
            <div class="input-field col  s12 m4">
                <i class="material-icons prefix">looks_one</i>
                <input id="numero" type="text"  required="" name="numero" pattern="[a-zA-Z0-9]+" maxlength="10" placeholder="Número"  value="<?php echo $aluno['numero'] ?>">
                <label for="numero">Número</label>
            </div>
            <div class="input-field col s12 m8">
                <i class="material-icons prefix">home</i>  
                <input id="complemento" type="text" name="complemento"  placeholder="Complemento"  value="<?php echo $aluno['complemento'] ?>">
                <label for="complemento">Complemento</label>
            </div>
        </div>
        <div class="row">
            <div class="input-field col s12 m4">
                <i class="material-icons prefix">equalizer</i>  
                <input id="bairro" type="text" name="bairro" required="" placeholder="Bairro"  value="<?php echo $aluno['bairro'] ?>">
                <label for="bairro">Bairro</label>
            </div>
            <div class="input-field col s12 m4">
                <i class="material-icons prefix">location_city</i>  
                <input id="cidade" type="text" name="cidade" required="" placeholder="Cidade"  value="<?php echo $aluno['cidade'] ?>">
                <label for="cidade">Cidade</label>
            </div>
            <div class="input-field col s12 m4">
                <i class="material-icons prefix">language</i>  
                <input id="uf" type="text" name="estado" required="" minlength="2" maxlength="2" placeholder="Estado"  value="<?php echo $aluno['estado'] ?>">

                <label for="estado">Estado</label>
            </div>
        </div>
        <div class="row">
            <div class="input-field col s5 m4">
                <i class="material-icons prefix">phone</i>
                <input id="ddd_celular" type="tel" class="only-number" required="" name="ddd_celular" maxlength="2" minlength="2"  pattern="[0-9]+$" placeholder="DDD"  value="<?php echo $aluno['ddd'] ?>">
                <label for="ddd_celular">DDD</label>
            </div>
            <div class="input-field col s7 m6">
                <i class="material-icons prefix">phone_iphone</i>
                <input id="celular" type="tel" class="only-number" required="" name="celular" maxlength="9" minlength="9"  pattern="[0-9]+$" placeholder="Celular"  value="<?php echo $aluno['telefone'] ?>">
                <label for="celular">Celular</label>
            </div>
        </div>
        <button class="btn waves-effect waves-light btn-curso btn-end" type="submit" name="action" style="">Continuar <i class="fa fa-arrow-circle-o-right" aria-hidden="true"></i></button>
    </form>
</div>
<br><br>
<?php $this->load->view('commons/rodape'); ?>
