From e5031e5a0f968ef38c37c8bcc212decd2514e044 Mon Sep 17 00:00:00 2001 From: Luke Faraone Date: Fri, 5 Jul 2013 21:38:37 -0400 Subject: [PATCH] Perform JS validation of the login form. This reduces roundtrips hopefully and will provide a friendlier error message than what would otherwise be produced by Django. (imported from commit 034aeef00043e3bf059583770f6c08c4f73ceeb5) --- templates/zephyr/login.html | 13 ++++++++++--- zephyr/static/js/signup.js | 4 ++++ 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/templates/zephyr/login.html b/templates/zephyr/login.html index d7d41d514f..0500864ab8 100644 --- a/templates/zephyr/login.html +++ b/templates/zephyr/login.html @@ -2,6 +2,13 @@ {# Login page. #} +{% load compressed %} + +{% block customhead %} + {{ block.super }} + {% compressed_js 'signup' %} +{% endblock %} + {% block portico_content %}