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

Gestión de servidores de AWS SES

@if (Session::has('message'))
{{ Session::get('message') }}
@endif

Agregar servidor de AWS SES

{{ HTML::linkRoute('SysWebEmailMarketingSrvAWSSES', 'Cancelar', array(), array('class' => 'btn btn-default')) }}
@stop @section('JS') {{ HTML::script('bootstrap-select/js/bootstrap-select.min.js') }} {{ HTML::script('bootstrap-select/js/i18n/defaults-es_CL.min.js') }} {{ HTML::script('ajax-bootstrap-select/js/ajax-bootstrap-select.min.js') }} {{ HTML::script('ajax-bootstrap-select/js/locale/ajax-bootstrap-select.es-ES.min.js') }} @stop @section('JSOr') $("#btnAgregar").click(function(e){ $("#frmAgregar").trigger("submit"); }); $("#frmAgregar").submit(function(e){ $.isLoading({ text: "Cargando..." }); NProgress.start(); $('[id^="err"]').html(""); $("#btnAgregar").html(' Cargando').prop("disabled", true); e.preventDefault(); $("#btnAgregar").prop("disabled", true); $.post( "{{ URL::route('SysWebEmailMarketingSrvAWSSESAgregar', array()) }}", $("#frmAgregar").serialize(), function(data){ $.isLoading("hide"); NProgress.done(); $("#btnAgregar").html("Agregr").prop("disabled", false); if(data.success){ new PNotify({ title: "Realizado", text: data.mensaje, type: "success" }); setTimeout( function(){ window.location.href = "{{ URL::route('SysWebEmailMarketingSrvAWSSES') }}"; }, 3000 ); } 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(""); } }); } }, "json" ); }); var options = { ajax : { url: "{{ URL::route("SysWebEmailMarketingSrvAWSSESClientesSelect") }}", type: "POST", dataType: "json", data: { q: "{{{q}}}" } }, locale: { emptyTitle: "Seleccione un cliente, buscando el correo electrónico asociado a su cuenta..." }, log: 3, preprocessData: function (data) { var i, l = data.length, array = []; if (l) { for (i = 0; i < l; i++) { array.push($.extend(true, data[i], { text: data[i].correo_electronico, value: data[i].id, data: { subtext: data[i].correo_electronico } })); } } return array; } }; $("#clientes_id").selectpicker().filter(".with-ajax").ajaxSelectPicker(options); $("#clientes_id").trigger("change"); @if(Session::has('MensajeS')) new PNotify({ title: "Realizado", text: "{{ Session::get('MensajeS') }}", type: "success" }); @endif @if(Session::has('MensajeE')) new PNotify({ title: "Realizado", text: "{{ Session::get('MensajeE') }}", type: "error" }); @endif @stop