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

Páginas de captura

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

API Keys de Sume Clientes @if( DominioDeConfianza::where('clientes_id', '=', $cid)->count() < $nSitiosPermitidos ) {{ Form::button('Generar', array('class' => 'btn btn-primary', 'id' => 'btnGenerar2', 'type' => 'button')) }} @endif

@forelse($APIKeys as $APIKey) @empty @endforelse
API Key Estado Sitio web Acciones
@if($APIKey->estado == 1) En uso @else Disponible @endif {{ $APIKey->sitio_web }}
No existe ningúna API Key generada
@if( DominioDeConfianza::where('clientes_id', '=', $cid)->count() < $nSitiosPermitidos )
{{ Form::button('Generar', array('class' => 'btn btn-primary', 'id' => 'btnGenerar', 'type' => 'button')) }}
@endif
@stop @section('JS') {{ HTML::script('ZeroClipBoard/ZeroClipboard.js') }} {{ HTML::script('ClipboardJS/clipboard.min.js') }} {{ HTML::script('DataTables/jquery.dataTables.min.js') }} {{ HTML::script('DataTables/dataTables.bootstrap.min.js') }} {{ HTML::script('DataTables/dataTables.responsive.min.js') }} @stop @section('JSOr') $("#btnGenerar").click(function(){ $.isLoading({ text: "Cargando..." }); NProgress.start(); $("#btnGenerar").prop("disabled", true).html(' Generando'); $.post( "{{ URL::route('SysWebPAterrizajeAPIKeysGenerar') }}", {cid: {{ $cid }}}, function(data){ $.isLoading("hide"); NProgress.done(); $("#btnGenerar").prop("disabled", false).html("Generar"); if(data.success){ new PNotify({ title: "Realizado", text: data.mensaje, type: "success" }); setTimeout( function(){ window.location.reload(); }, 3000 ); } else{ if(data.mensaje != ''){ new PNotify({ title: "Error", text: data.mensaje, type: "error" }); } } }, "json" ); }); $("#btnGenerar2").click(function(){ $.isLoading({ text: "Cargando..." }); NProgress.start(); $("#btnGenerar2").prop("disabled", true).html(' Generando'); $.post( "{{ URL::route('SysWebPAterrizajeAPIKeysGenerar') }}", {cid: {{ $cid }}}, function(data){ $.isLoading("hide"); NProgress.done(); $("#btnGenerar2").prop("disabled", false).html("Generar"); if(data.success){ new PNotify({ title: "Realizado", text: data.mensaje, type: "success" }); setTimeout( function(){ window.location.reload(); }, 3000 ); } else{ if(data.mensaje != ''){ new PNotify({ title: "Error", text: data.mensaje, type: "error" }); } } }, "json" ); }); var clipboard = new Clipboard(".btnCopiar"); clipboard.on("success", function(e) { $("#"+e.trigger.id).tooltip({trigger: "manual", title: "Copiado!"}); $("#"+e.trigger.id).tooltip("show"); $("#"+e.trigger.id).html(''); setTimeout(function(){ $("#"+e.trigger.id).html(''); $("#"+e.trigger.id).tooltip("destroy"); }, 1000); }).on("error", function(e) { var msj = ""; if(/iPhone|iPad/i.test(navigator.userAgent)) { msj = "El navegador web no soporta la función de copiado, debes hacerlo manualmente"; } else if (/Mac/i.test(navigator.userAgent)) { msj = "Presiona ⌘-C para copiar"; } else { msj = "Presiona Ctrl-C para copiar"; } $("#"+e.trigger.id).tooltip({trigger: "manual", title: msj}); $("#"+e.trigger.id).tooltip("show"); setTimeout(function(){ $("#"+e.trigger.id).tooltip("destroy"); }, 5000); }); $("#tblApiKey").DataTable({ "processing": true, preDrawCallback: function (settings) { $.isLoading("hide"); }, "language": { "url": "{{ asset('DataTables/Spanish.json') }}" }, "fnDrawCallback": function( oSettings ) { $(".tooltips").tooltip(); }, autoWidth: false, responsive: true, //initComplete: function(){ // var input = $("#tblApiKey_filter input").unbind(), // self = this.api(), // $searchButton = $('