



<div class="page-content-wrapper">
    <div class="page-content">
        <!-- BEGIN PAGE HEAD -->
        <div class="page-head">
            <!-- BEGIN PAGE TITLE -->
            <div class="page-title">
                <h3>Armazéns</h3>
            </div>
            <!-- END PAGE TITLE -->
        </div>
        <?php helper('mensagem');?>
        <!-- Basic Forms -->
        <div class="portlet box blue-hoki">
            <div class="portlet-title">
                <div class="caption">
                    <?php echo isset($armazem->ID_ARMAZEM) ? 'Edição' : 'Cadastro';?> de armazém
                </div>
                <div class="tools">
                    <a href="javascript:;" class="collapse">
                    </a>
                    <a href="javascript:;" class="reload">
                    </a>
                    <a href="javascript:;" class="remove">
                    </a>
                </div>
            </div>
            <div class="portlet-body">
                 <div class="row">
                    <div class="col-md-12">
            	         <form novalidate method="POST" action="/Administrativo/Armazens/armazensInserir" id="cadarmazens" class="validate" enctype="multipart/form-data">
                            <?= csrf_field() ?> 
                            
                                        <div class="row">
                                
                                            <div class="form-group col-md-4">
                                                <label for="campo1">Nome*</label>
                                                <input type="hidden" name="id_armazem" value="<?php echo isset($armazem->ID_ARMAZEM) ? $armazem->ID_ARMAZEM : '';?>" id="id_armazem">
                                                <input type="text" required class="form-control" name="nome_armazem" id="nome_armazem" value="<?php echo isset($armazem->NOME_ARMAZEM) ? $armazem->NOME_ARMAZEM :"";?>">
                                            </div>

                                            <div class="form-group col-md-4">
                                                <label for="campo2">CNPJ*</label>
                                                <input type="text" required class="form-control" name="documento_armazem" id="documento_armazem" value="<?php echo isset($armazem->DOCUMENTO_ARMAZEM) ? $armazem->DOCUMENTO_ARMAZEM :"";?>">
                                            </div>  
                                            <div class="form-group col-md-4">
                                                <label for="campo11">I.E*</label>
                                                <input type="text" required class="form-control" name="ie_armazem" id="ie_armazem" value="<?php echo isset($armazem->IE_ARMAZEM) ? $armazem->IE_ARMAZEM :"";?>">
                                            </div> 
                                        </div>
                                        <div class="row">
                                            <div class="form-group col-md-4">
                                                <label for="campo3">Telefone*</label>
                                                <input type="text" required class="form-control" name="telefone_armazem" id="telefone_armazem" value="<?php echo isset($armazem->TELEFONE_ARMAZEM) ? $armazem->TELEFONE_ARMAZEM :"";?>">
                                            </div>  
                                            <div class="form-group col-md-4">
                                                <label for="campo6">Cep*</label>
                                                <input type="text" required class="form-control" name="cep_armazem" id="cep_armazem" value="<?php echo isset($armazem->CEP_ARMAZEM) ? $armazem->CEP_ARMAZEM :"";?>" onblur="pesquisacep(this.value);" >
                                            </div>  
                                            <div class="form-group col-md-4">
                                                <label for="campo4">Endereço*</label>
                                            <input type="text" required class="form-control" name="endereco_armazem" id="endereco_armazem" value="<?php echo isset($armazem->ENDERECO_ARMAZEM) ? $armazem->ENDERECO_ARMAZEM :"";?>">
                                            </div>  
                                        </div>
                                        <div class="row">
                                            <div class="form-group col-md-4">
                                                <label for="campo5">Bairro*</label>
                                            <input type="text" required class="form-control" name="bairro_armazem" id="bairro_armazem" value="<?php echo isset($armazem->BAIRRO_ARMAZEM) ? $armazem->BAIRRO_ARMAZEM :"";?>">
                                            </div>
                                            <div class="form-group col-md-4">
                                                <label for="campo7">Cidade*</label>
                                                <input type="text" required class="form-control" name="cidade_armazem" id="cidade_armazem" value="<?php echo isset($armazem->CIDADE_ARMAZEM) ? $armazem->CIDADE_ARMAZEM :"";?>">
                                            </div> 

                                            <div class="form-group col-md-4">
                                                <label for="campo7">UF*</label>
                                                <input type="text" required class="form-control" name="estado_armazem" id="estado_armazem" value="<?php echo isset($armazem->ESTADO_ARMAZEM) ? $armazem->ESTADO_ARMAZEM :"";?>">
                                            </div>  
                                        </div>

                                </div> 
                                                        
                                                        
                                        <div class="text-xs-right bt-1 pt-10">
                                            <div class="pull-right">
						                    <button type="button" id="gravar_armazem" class="btn blue btn-sm"><span class="fa fa-save"> Salvar</span></button>
                                        </div>
                                                        
                                
                        </form>    
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<script src="/template/assets/global/scripts/cad_armazens.js"></script>
