From 471bd48f1c699cb233daeda662ae2737df0af26f Mon Sep 17 00:00:00 2001 From: Kevin Chung Date: Sun, 31 Jul 2022 22:18:58 -0400 Subject: [PATCH] Add autocomplete='off' to admin pages to fix Firefox caching checkboxes (#2158) * Add autocomplete='off' to admin pages to fix Firefox caching checkboxes --- .../admin/templates/challenges/challenges.html | 4 ++-- CTFd/themes/admin/templates/notifications.html | 2 +- CTFd/themes/admin/templates/pages.html | 4 ++-- .../admin/templates/scoreboard/standings.html | 4 ++-- .../admin/templates/scoreboard/users.html | 4 ++-- CTFd/themes/admin/templates/submissions.html | 4 ++-- CTFd/themes/admin/templates/teams/team.html | 18 ++++++++++-------- CTFd/themes/admin/templates/teams/teams.html | 4 ++-- CTFd/themes/admin/templates/users/user.html | 18 ++++++++++-------- 9 files changed, 33 insertions(+), 29 deletions(-) diff --git a/CTFd/themes/admin/templates/challenges/challenges.html b/CTFd/themes/admin/templates/challenges/challenges.html index acbcc0c2..6b26a91b 100644 --- a/CTFd/themes/admin/templates/challenges/challenges.html +++ b/CTFd/themes/admin/templates/challenges/challenges.html @@ -72,7 +72,7 @@
-   +  
ID @@ -88,7 +88,7 @@
-   +  
{{ challenge.id }} diff --git a/CTFd/themes/admin/templates/notifications.html b/CTFd/themes/admin/templates/notifications.html index c5ebbe30..634e8c55 100644 --- a/CTFd/themes/admin/templates/notifications.html +++ b/CTFd/themes/admin/templates/notifications.html @@ -10,7 +10,7 @@
{% with form = Forms.notifications.NotificationForm() %} -
+
{{ form.title.label }} {{ form.title(class="form-control") }} diff --git a/CTFd/themes/admin/templates/pages.html b/CTFd/themes/admin/templates/pages.html index 550496a4..bfbf47d5 100644 --- a/CTFd/themes/admin/templates/pages.html +++ b/CTFd/themes/admin/templates/pages.html @@ -35,7 +35,7 @@
-   +  
Title @@ -50,7 +50,7 @@
-   +  
diff --git a/CTFd/themes/admin/templates/scoreboard/standings.html b/CTFd/themes/admin/templates/scoreboard/standings.html index 32f7eb04..729cb6db 100644 --- a/CTFd/themes/admin/templates/scoreboard/standings.html +++ b/CTFd/themes/admin/templates/scoreboard/standings.html @@ -3,7 +3,7 @@
-   +  
Place @@ -17,7 +17,7 @@
-   +  
{{ loop.index }} diff --git a/CTFd/themes/admin/templates/scoreboard/users.html b/CTFd/themes/admin/templates/scoreboard/users.html index 82f461ff..baa86150 100644 --- a/CTFd/themes/admin/templates/scoreboard/users.html +++ b/CTFd/themes/admin/templates/scoreboard/users.html @@ -3,7 +3,7 @@
-   +  
Place @@ -17,7 +17,7 @@
-   +  
{{ loop.index }} diff --git a/CTFd/themes/admin/templates/submissions.html b/CTFd/themes/admin/templates/submissions.html index d4f969b7..0425f5ad 100644 --- a/CTFd/themes/admin/templates/submissions.html +++ b/CTFd/themes/admin/templates/submissions.html @@ -63,7 +63,7 @@
-   +  
ID @@ -82,7 +82,7 @@
-   +  
diff --git a/CTFd/themes/admin/templates/teams/team.html b/CTFd/themes/admin/templates/teams/team.html index b9453000..bc60ec1a 100644 --- a/CTFd/themes/admin/templates/teams/team.html +++ b/CTFd/themes/admin/templates/teams/team.html @@ -332,7 +332,7 @@
-   +  
Challenge @@ -348,7 +348,8 @@
-  
@@ -397,7 +398,7 @@
-   +  
Challenge @@ -411,7 +412,8 @@
-  
@@ -458,7 +460,7 @@
-   +  
Name @@ -475,7 +477,7 @@
-   +  
{{ award.name }} @@ -519,7 +521,7 @@
-   +  
Challenge @@ -532,7 +534,7 @@
-  
diff --git a/CTFd/themes/admin/templates/teams/teams.html b/CTFd/themes/admin/templates/teams/teams.html index fee3e5d7..70485074 100644 --- a/CTFd/themes/admin/templates/teams/teams.html +++ b/CTFd/themes/admin/templates/teams/teams.html @@ -70,7 +70,7 @@
-   +  
ID @@ -85,7 +85,7 @@
-   +  
{{ team.id }} diff --git a/CTFd/themes/admin/templates/users/user.html b/CTFd/themes/admin/templates/users/user.html index ffc0dd4e..bb9dc391 100644 --- a/CTFd/themes/admin/templates/users/user.html +++ b/CTFd/themes/admin/templates/users/user.html @@ -218,7 +218,7 @@
-   +  
Challenge @@ -233,7 +233,8 @@
-  
@@ -277,7 +278,7 @@
-   +  
Challenge @@ -290,7 +291,8 @@
-  
@@ -334,7 +336,7 @@
-   +  
Name @@ -350,7 +352,7 @@
-   +  
{{ award.name }} @@ -389,7 +391,7 @@
-   +  
Challenge @@ -402,7 +404,7 @@
-