@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 cPanel

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

Editar servidor cPanel

{{ HTML::linkRoute('SysWebSWebSrvCPanel', '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') $("#btnEditar").click(function(e){ $("#frmEditar").trigger("submit"); }); $("#frmEditar").submit(function(e){ $.isLoading({ text: "Cargando..." }); NProgress.start(); $('[id^="err"]').html(""); $("#btnEditar").html(' Cargando').prop("disabled", true); e.preventDefault(); $("#btnEditar").prop("disabled", true); $.post( "{{ URL::route('SysWebSWebSrvCPanelEditar', array($ConfiguracionCPanel->id)) }}", $("#frmEditar").serialize(), function(data){ $.isLoading("hide"); NProgress.done(); $("#btnEditar").html("Editar").prop("disabled", false); if(data.success){ new PNotify({ title: "Realizado", text: data.mensaje, type: "success" }); setTimeout( function(){ window.location.href = "{{ URL::route('SysWebSWebSrvCPanel') }}"; }, 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" ); }); @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