{% extends "principal.html" %} {% load staticfiles %} {% load url from future %} {% block jquery %} function ejecutaForm(enlace){ document.getElementById("frmPanel").action = enlace; document.getElementById("frmPanel").submit(); } function validaDatos(){ if (document.getElementById("nombre").value.length == 0){ alert('Falta capturar el nombre.'); } else { ejecutaForm('/cat/paises/1'); } } {% endblock %} {% block breadcrumbs %}