<div class="row">
	<form autocomplete='off' class='form-horizontal' name=''  method='post' action='' onsubmit="">
		<div class="panel blank-panel">
			<div class="panel-body">
				<div class="form-group">
					<label class="control-label col-sm-2">Tipo entrada</label>
					<div class="col-sm-5">
						<select id="entrada-nueva-transaccion-tipo" class="form-control">
							<option disabled selected>Seleccione una...</option>
							<option value="1">Compra</option>
							<option value="0">Inventario inicial</option>
							<option value="8">Traslado desde otra sucursal</option>
						</select>
					</div>
				</div>
				
				<div class="row">
					<div class="col-md-12">
						<div id="nueva-entrada-form-wrapper">
							<!---->
							
							
							<!---->
						</div>
					</div>
				</div>
				
			</div>
		</div>
	</form>
</div>
<script>
	$("#entrada-nueva-transaccion-tipo").change(function(){
		$.get('<?php echo base_url("productos/entradas_nueva_cargar_form")?>',{type:$(this).val()},function(form){
			$("#nueva-entrada-form-wrapper").html(form);
		},"html")
	});
	<?php if(isset($load)):?>
		  $("#entrada-nueva-transaccion-tipo").val('1');
		  $("#entrada-nueva-transaccion-tipo").trigger('change');
	<?php endif;?>
</script>