<script src="<?php echo ADMIN_URL;?>/assets/js/jquery.dataTables.min.js"></script>
<script src="<?php echo ADMIN_URL;?>/assets/js/dataTables.bootstrap4.min.js"></script>

<div id="divClientes">
	<div class="row">
		<div class="col-xl-12">
			<div class="breadcrumb-holder">
				<h1 class="main-title float-left"><i class="fa fa-user"></i> Catalogo <span class="etiquetaVerde">cliente<span></span></span></h1>
					<ol class="breadcrumb float-right">
						<a id="btnNuevo" role="button" href="#" class="btn btn-secondary"><span class="btn-label"><i class="fa fa-plus"></i></span>Nuevo</a>
                    </ol>
                    <div class="clearfix"></div>
            </div>
		</div>
	</div>
	<div class="row">
	
		<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12 col-xl-12">						
			<div class="card mb-12">
				<div class="card-header">
					<h6><i class="fa fa-table"></i>Clientes registrados</h6>					
				</div>
					
				<div class="card-body">
					<table id="tablaDatos" class="table table-bordered table-hover display" cellspacing="0" width="100%">
						  <thead>
							<tr>
							  <th data-field="id">Nombre</th>
							  <th data-field="name">Patente</th>
							  <th data-field="price"></th>
							</tr>			
						  </thead>
					</table>
				</div>														
			</div><!-- end card-->					
		</div>	
	</div>
    <!-- end row -->
</div>

<input type="hidden" id="hfIdSeleccionado">
<div class="modal fade" tabindex="-1" role="dialog" aria-labelledby="modal_add_user" id="popupDetalleCliente" aria-hidden="true" style="display: none;">
	<div class="modal-dialog">
    	<div class="modal-content">
        			
            <div class="modal-header">
				<h5 class="modal-title" id="modal_add_user">Detalles del cliente</h5>
				<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button>          	
			</div>
				
			<div class="modal-body">               
				<div class="row">
					<div class="col-sm-12 col-md-12 col-lg-12">
						<div class="form-group">
						<label>Razon social</label>
							<input id="txtNombre" class="form-control"  type="text" onfocus="removeHas('txtNombre');">
						</div>
					</div>
					<div class="col-sm-12 col-md-12 col-lg-12">
						<div class="form-group">
						<label>Patente</label>
							<input id="txtPatente" class="form-control"  type="text" onfocus="removeHas('txtPatente');">
						</div>
					</div>
					<div class="col-sm-12 col-md-12 col-lg-12">
						<div class="form-group">
						<label>Token</label>
							<input id="txtToken" class="form-control"  type="text" onfocus="removeHas('txtToken');">
						</div>
					</div>
					<div class="col-sm-12 col-md-12 col-lg-12">
						<div class="form-group">
						<label>RFC</label>
							<input id="txtRfc" class="form-control"  type="text" onfocus="removeHas('txtRfc');">
						</div>
					</div>
					
					<div class="col-sm-12 col-md-6 col-lg-12">
						<div class="form-group">
						<label>Domicilio</label>
							<input id="txtDomicilio" class="form-control"  type="text" onfocus="removeHas('txtDomicilio');">
						</div>
					</div>					
					<div class="col-sm-6 col-md-6 col-lg-6">
						<div class="form-group">
						<label>No.Exterior</label>
							<input id="txtNoExterior" class="form-control"  type="text" onfocus="removeHas('txtNoExterior');">
						</div>
					</div>						
					
					<div class="col-sm-6 col-md-6 col-lg-6">
						<div class="form-group">
						<label>No. Interior</label>
							<input id="txtNoInterior" class="form-control"  type="text" onfocus="removeHas('txtNoInterior');">
						</div>
					</div>
					<div class="col-sm-12 col-md-6 col-lg-6">
						<div class="form-group">
							<label>Pais</label>								
							<select id="ddlPaises" name="role_id" class="form-control" onfocus="removeHas('ddlPaises');">
								<option value="-1">- Seleccione -</option>
							</select>
						</div>
					</div>
					<div class="col-sm-6 col-md-6 col-lg-6">
						<div class="form-group">
						<label>ID TRIB</label>
							<input id="txtTrib" type="number" text="0" class="form-control" onfocus="removeHas('txtTrib');" disabled>
						</div>
					</div>
					<div class="col-sm-12 col-md-6 col-lg-6">
						<div class="form-group">
							<label>Colonia</label>								
							<input id="txtColonia" class="form-control"   onfocus="removeHas('txtColonia');">
						</div>
					</div>
					<div class="col-sm-6 col-md-6 col-lg-6">
						<div class="form-group">
						<label>C.P</label>
							<input id="txtCp" class="form-control"  type="number" onfocus="removeHas('txtCp');">
						</div>
					</div>						
					<div class="col-sm-12 col-md-6 col-lg-6">
						<div class="form-group">
							<label>Localidad</label>								
							<input id="txtLocalidad" class="form-control"   onfocus="removeHas('txtLocalidad');">
						</div>
					</div>
					<div class="col-sm-12 col-md-6 col-lg-6">
						<div class="form-group">
							<label>Municipio</label>								
							<input id="txtMunicipios" class="form-control"   onfocus="removeHas('txtMunicipios');">
						</div>
					</div>
					
					<div class="col-sm-12 col-md-6 col-lg-12">
						<div class="form-group">
							<label>Entidad federativa</label>								
							<input id="txtEstado" class="form-control"   onfocus="removeHas('txtEstado');">
						</div>
					</div>

					<div class="col-sm-6 col-md-6 col-lg-6">
						<div class="form-group">
						<label>Telefono</label>
							<input id="txtTelefono" class="form-control"  type="number" onfocus="removeHas('txtTelefono');">
						</div>
					</div>									
										
					<div class="col-sm-12 col-md-6 col-lg-6">
						<div class="form-group">
						<label>Fecha corte</label>
							<input id="txtFechaCorte" class="form-control"  type="text" onfocus="removeHas('txtFechaCorte');">
						</div>
					</div>
					
					<div class="col-sm-12 col-md-12 col-lg-12">
						<div class="form-group">
						<label>Correo</label>
							<input id="txtCorreo" class="form-control"  type="text" onfocus="removeHas('txtCorreo');">
						</div>
					</div>	
					
					<div class="col-sm-12 col-md-12 col-lg-12">
						<div class="form-group">
							<label>Uso CFDI</label>								
							<select id="ddlUsoCFDI" name="role_id" class="form-control" onfocus="removeHas('ddlUsoCFDI');">
							</select>
						</div>
					</div>
					
					<div class="col-sm-12 col-md-12 col-lg-12">
						<div class="form-group">
							<label>Metodo pago</label>								
							<select id="ddlMetodoPago" name="role_id" class="form-control" onfocus="removeHas('ddlMetodoPago');">
							</select>
						</div>
					</div>
					
					<div class="col-sm-12 col-md-12 col-lg-12">
						<div class="form-group">
							<label>Formas pago</label>								
							<select id="ddlFormasPago" name="role_id" class="form-control" onfocus="removeHas('ddlFormasPago');">
							</select>
						</div>
					</div>

				</div>
            </div>             
			
			<div class="modal-footer">
				<button id="btnGuardar" class="btn btn-secondary"><i class="iconoBoton fa fa-save"></i>Guardar</button>
				<button id="btnActualizar" class="btn btn-secondary"><i class="iconoBoton fa fa-save"></i>Actualizar</button>
				<button id="btnEliminar" class="btn btn-secondary"><i class="iconoBoton fa fa-trash"></i>Eliminar</button>
				<button type="button" class="btn btn-secondary" data-dismiss="modal"><i class="iconoBoton fa fa-close"></i>Cancelar</button>
			</div>		
			
        </div>
	</div>
</div>


<script src="<?php echo ADMIN_URL;?>/Scripts/catClientes.js"></script>
