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

E-Mail Marketing

Crear nueva plantilla de correo electrónico

{{ Form::open(array('route' => 'SysWebEmailMarketingListasSubscriptoresAgregar', 'method' => 'post', 'class' => 'form-horizontal row-border', 'id' => 'frmAgregar', 'files' => true, 'target' => 'upload_iframe')) }}
{{ Form::text('nombre', '', array('class' => 'form-control', 'placeholder' => '')) }}
{{ Form::button('Guardar', array('class' => 'btn btn-primary', 'id' => 'btnAgregar', 'type' => 'submit')) }} {{-- Cancelar --}} {{ HTML::linkRoute('SysWebEmailMarketingPlantillas', 'Cancelar', array(), array('class' => 'btn btn-default')) }}
{{ Form::close() }}
@stop @section('JS') {{ HTML::script('bootstrap-select/js/bootstrap-select.min.js') }} {{ HTML::script('bootstrap-select/js/i18n/defaults-es_CL.min.js') }} @stop @section('JSOr') $("#frmAgregar").submit(function(e){ $.isLoading({ text: "Cargando..." }); NProgress.start(); $("#btnAgregar").html(' Cargando').prop("disabled", true); e.preventDefault(); $("input[type='submit']").prop("disabled", true); $.post( "{{ URL::route('SysWebEmailMarketingPlantillasCrear', array()) }}", $("#frmAgregar").serialize(), function(data){ $.isLoading("hide"); NProgress.done(); $("#btnAgregar").html("Guardar").prop("disabled", false); if(data.success){ var urlRetorno = "{{ URL::route('SysWebEmailMarketingPlantillasEditor', array('idPCE')) }}"; urlRetorno = urlRetorno.replace("idPCE", data.idPCE); new PNotify({ title: "Realizado", text: data.mensaje, type: "success" }); setTimeout( function(){ window.location.href = urlRetorno; }, 3000 ); } else{ if(data.mensaje != ''){ new PNotify({ title: "Error", text: data.mensaje, type: "error" }); } $("[id^='err']").html(""); $.each(data.errMensajes, function(key, value){ $("#err"+key).html(value); }); } }, "json" ); }); @stop