<section class="content">
  <div class="row">
    <div class="col-xs-12">
      <div class="box box-primary">
        <div class="box-header">
          <h3 class="box-title"><?= lang('update_info'); ?></h3>
        </div>
        <div class="box-body">
          <?php echo form_open("customers/edit/".$customer->id);?>
          
       
			<div class="modal-body">
				<div id="c-alert" class="alert alert-danger" style="display:none;"></div>
        <div class="row">
					<div class="col-xs-12">
						<div class="form-group">
							<label class="control-label" for="tipo">
								Tipo Cadastro (1 = Pessoa Fisica / 2 = Pessoa Jurídica)
							</label>
							<?= form_input('tipo_cad', $customer->tipo_cad, 'class="form-control input-sm kb-text" id="tipo"'); ?>
						</div>
					</div>
				</div>
				<div class="row">
					<div class="col-xs-12">
						<div class="form-group">
							<label class="control-label" for="cname">
								<?= lang("name"); ?>
							</label>
							<?= form_input('name', $customer->name, 'class="form-control input-sm kb-text" id="cname"'); ?>
						</div>
					</div>
				</div>
				<div class="row">
					<div class="col-xs-6">
						<div class="form-group">
							<label class="control-label" for="cemail">
								<?= lang("email_address"); ?>
							</label>
							<?= form_input('email', $customer->email, 'class="form-control input-sm kb-text" id="cemail"'); ?>
						</div>
					</div>
					<div class="col-xs-6">
						<div class="form-group">
							<label class="control-label" for="phone">
								<?= lang("phone"); ?>
							</label>
							<?= form_input('phone', $customer->phone, 'class="form-control input-sm kb-pad" id="cphone"');?>
						</div>
					</div>
				</div>
				<div class="row">
					<div class="col-xs-6">
						<div class="form-group">
							<label class="control-label" for="cf1">
								<?= lang("cf1"); ?>
							</label>
							<?= form_input('cf1', $customer->cf1, 'class="form-control input-sm kb-text" id="cf1"'); ?>
						</div>
					</div>
					<div class="col-xs-6">
						<div class="form-group">
							<label class="control-label" for="cf2">
								<?= lang("cf2"); ?>
							</label>
							<?= form_input('cf2', $customer->cf2, 'class="form-control input-sm kb-text" id="cf2"');?>
						</div>
					</div>
				</div>
        <!-- Campos personalizados-->
        <div class="row">
					<div class="col-xs-6">
						<div class="form-group">
							<label class="control-label" for="endereco">
								Endereço
							</label>
							<?= form_input('endereco', $customer->endereco, 'class="form-control input-sm kb-text" id="endereco"'); ?>
						</div>
					</div>
					<div class="col-xs-6">
						<div class="form-group">
							<label class="control-label" for="numero">
								Número
							</label>
							<?= form_input('numero', $customer->numero, 'class="form-control input-sm kb-text" id="numero"');?>
						</div>
					</div>
				</div>
        
        <div class="row">
					<div class="col-xs-6">
						<div class="form-group">
							<label class="control-label" for="complemento">
								Complemento
							</label>
							<?= form_input('complemento', $customer->complemento, 'class="form-control input-sm kb-text" id="complemento"'); ?>
						</div>
					</div>
					<div class="col-xs-6">
						<div class="form-group">
							<label class="control-label" for="bairro">
								Bairro
							</label>
							<?= form_input('bairro', $customer->bairro, 'class="form-control input-sm kb-text" id="bairro"');?>
						</div>
					</div>
				</div>
        
        <div class="row">
					<div class="col-xs-6">
						<div class="form-group">
							<label class="control-label" for="cidade">
							 Cidade
							</label>
							<?= form_input('cidade', $customer->cidade, 'class="form-control input-sm kb-text" id="cidade"'); ?>
						</div>
					</div>
					<div class="col-xs-6">
						<div class="form-group">
							<label class="control-label" for="codigocidade">
								Código IBGE Cidade
							</label>
							<?= form_input('codigocidade', $customer->codigocidade, 'class="form-control input-sm kb-text" id="codigocidade"');?>
						</div>
					</div>
				</div>
        
        <div class="row">
					<div class="col-xs-6">
						<div class="form-group">
							<label class="control-label" for="estado">
							 Estado (Ex.: SP)
							</label>
							<?= form_input('estado', $customer->estado, 'class="form-control input-sm kb-text" id="estado"'); ?>
						</div>
					</div>
		
				</div>
        
        <div class="row">
					<div class="col-xs-6">
						<div class="form-group">
							<label class="control-label" for="cep">
							 CEP
							</label>
							<?= form_input('cep', $customer->cep, 'class="form-control input-sm kb-text" id="cep"'); ?>
						</div>
					</div>
					<div class="col-xs-6">
						<div class="form-group">
							<label class="control-label" for="pais">
								País
							</label>
							<?= form_input('pais', $customer->pais, 'class="form-control input-sm kb-text" id="pais"');?>
						</div>
					</div>
				</div>
        <!-- Fim campos personalizados -->

         

            <div class="form-group">
              <?php echo form_submit('edit_customer', $this->lang->line("edit_customer"), 'class="btn btn-primary"');?>
            </div>
          </div>
          <?php echo form_close();?>
        </div>
      </div>
    </div>
  </div>
</section>
