From 3b6cf61b932331c4696a2ccb3b33b6f747d95342 Mon Sep 17 00:00:00 2001 From: kakwa Date: Wed, 6 Jul 2016 20:37:24 +0200 Subject: [PATCH] grotesque hacks to disable firefox autofilling of the forms --- resources/static/css/custom.css | 10 ++++++++++ resources/templates/adduser.tmpl | 2 +- resources/templates/form.tmpl | 14 +++++++------- resources/templates/selfmodify.tmpl | 2 +- 4 files changed, 19 insertions(+), 9 deletions(-) diff --git a/resources/static/css/custom.css b/resources/static/css/custom.css index 49372d6..83b8cdb 100644 --- a/resources/static/css/custom.css +++ b/resources/static/css/custom.css @@ -70,3 +70,13 @@ div#footer { font-size: 12px; text-align: center; } + +.form-control:-moz-read-only { /* For Firefox */ + background-color: white; + cursor: default; +} + +.form-control:read-only { + background-color: white; + cursor: default; +} diff --git a/resources/templates/adduser.tmpl b/resources/templates/adduser.tmpl index 505bb72..7b690fc 100644 --- a/resources/templates/adduser.tmpl +++ b/resources/templates/adduser.tmpl @@ -6,7 +6,7 @@
-
diff --git a/resources/templates/selfmodify.tmpl b/resources/templates/selfmodify.tmpl index 5b4d4eb..ee58c77 100644 --- a/resources/templates/selfmodify.tmpl +++ b/resources/templates/selfmodify.tmpl @@ -6,7 +6,7 @@
- + Modify your attributes: ${form}