@extends('BaseSistemaWeb') @section('CSS') {{ HTML::style('bootstrap-select/css/bootstrap-select.min.css') }} @stop @section('Contenido')

Gestión de ventas en línea

Editar tabla de rangos de precios de envío por {{ strtolower($tipo) }} total

@if( $tipo == 'PESO' )
El peso debe de ser ingresado en gramos y recuerda que 1 Kilogramo equivale a 1000 Gramos
@endif {{ Form::open(array('route' => 'SysWebVentasConfEnviosProveedoresDepartamentosRangosEditar', 'method' => 'post', 'class' => 'form-horizontal row-border', 'id' => 'frmAgregar', 'files' => true, 'target' => 'upload_iframe')) }} @forelse($RangosPreciosEnvios as $indice => $Rango) @empty @endforelse
De Hasta Precio Acciones

No existe ningún registro actualmente...

{{ Form::button('Guardar', array('class' => 'btn btn-primary', 'id' => 'btnAgregar', 'type' => 'submit')) }} {{ HTML::linkRoute('SysWebVentasConfEnviosProveedoresDepartamentos', 'Cancelar', array($Pais->id, $ProveedorEnvioxPais->proveedores_envios_x_paises_id), array('class' => 'btn btn-default')) }}
{{ Form::close() }}
@stop @section('JS') {{ HTML::script('bootstrap-select/js/bootstrap-select.min.js') }} {{ HTML::script('country-region-selector/crs.min.js') }} {{ HTML::script('bootstrap-number-input/bootstrap-number-input-Mod.min.js') }} {{ HTML::script('Alphanum/jquery.alphanum.min.js') }} @stop @section('JSOr') $(".tBodyValores").find('button[data-original-title="Eliminar"]').addClass("disabled"); $(".tBodyValores").find('button[data-original-title="Eliminar"]:last').removeClass("disabled"); $(".tBodyValores").find('input[type="text"]').numeric(); $("#frmAgregar").validate({ errorClass: "text-danger", errorElement: "span", errorPlacement: function(error, element){ $(element).closest(".form-group").append(error); }, ignore: [] }); $("#frmAgregar").submit(function(e){ $.isLoading({ text: "Cargando..." }); NProgress.start(); $("#btnAgregar").html(' Cargando').prop("disabled", true); e.preventDefault(); var frmAgregar = new FormData(document.getElementById("frmAgregar")); $.ajax({ type: "POST", url: "{{ URL::route('SysWebVentasConfEnviosProveedoresDepartamentosRangosEditar', array($Pais->id, $ProveedorEnvioxPais->id, $tipo)) }}", data: frmAgregar, cache: false, contentType: false, processData: false, dataType: "json", success: function(data){ $.isLoading("hide"); NProgress.done(); $("#btnAgregar").html("Guardar").prop("disabled", false); if(data.success){ new PNotify({ title: "Realizado", text: data.mensaje, type: "success" }); setTimeout( function(){ window.location.reload; }, 2000 ); } else{ if(data.mensaje != ''){ new PNotify({ title: "Error", text: data.mensaje, type: "error" }); } $.each(data.errMensajes, function(key, value){ if(value != ''){ $("#err"+key).html(value); } else{ $("#err"+key).html(""); } }); } }, error: function(jqXHR, textStatus, errorThrown){ new PNotify({ title: "Error", text: textStatus + " " + errorThrown, type: "error" }); } }); }); @stop