diff --git a/accounts/templates/accounts/change_password_form.html b/accounts/templates/accounts/change_password_form.html index 046447e8..406fbab9 100644 --- a/accounts/templates/accounts/change_password_form.html +++ b/accounts/templates/accounts/change_password_form.html @@ -21,7 +21,7 @@
- {% trans "Cancel" %} + {% trans "Cancel" %}
diff --git a/templates/common/form.html b/templates/common/form.html index b08aaadd..1a6112d4 100644 --- a/templates/common/form.html +++ b/templates/common/form.html @@ -19,7 +19,7 @@
{% bootstrap_form form %}
- {% trans "Cancel" %} + {% trans "Cancel" %}
diff --git a/templates/error.html b/templates/error.html index d360274e..1bfb489a 100644 --- a/templates/error.html +++ b/templates/error.html @@ -23,7 +23,7 @@
- + {% trans "Back" %} diff --git a/templates/pleasewaitdialog.html b/templates/pleasewaitdialog.html index 448ab277..1a9a1951 100644 --- a/templates/pleasewaitdialog.html +++ b/templates/pleasewaitdialog.html @@ -1,4 +1,4 @@ -{% load i18n %} +{% load i18n static %}
- + diff --git a/webvirtcloud/tests/test_error_focus.py b/webvirtcloud/tests/test_error_focus.py index 27e847ce..307fefe0 100644 --- a/webvirtcloud/tests/test_error_focus.py +++ b/webvirtcloud/tests/test_error_focus.py @@ -1,9 +1,8 @@ -"""After a refused submission the page starts at the error: base.html's -script focuses the first visible invalid field, else the error message. +"""After a refused submission the page starts at the error: error_focus.js +focuses the first visible invalid field, else the error message. The script runs in Node against a stand-in document.""" import json -import re import shutil import subprocess import unittest @@ -11,11 +10,7 @@ from pathlib import Path from django.conf import settings -SCRIPT = re.search( - r"", - Path(settings.BASE_DIR, "templates/base.html").read_text(), - re.S, -).group(1) +SCRIPT = Path(settings.BASE_DIR, "static/js/error_focus.js").read_text() HARNESS = """ const els = %s;