diff options
author | Jelle van der Waa <jelle@vdwaa.nl> | 2019-02-09 17:11:07 +0100 |
---|---|---|
committer | Jelle van der Waa <jelle@archlinux.org> | 2019-02-18 16:42:51 +0100 |
commit | 713519dc79cb6522be1299168b3efe4491499105 (patch) | |
tree | 947c55ad7858d6ef86bfd4b089f78b93cc7fdb63 | |
parent | 2a6d8b18bf5e1cacc5f869d8e25bc36d2d999de1 (diff) | |
download | archweb-713519dc79cb6522be1299168b3efe4491499105.tar.gz archweb-713519dc79cb6522be1299168b3efe4491499105.zip |
packages: remove inline style from flag out of date
Remove inline style and add new CSS rule for it.
-rw-r--r-- | packages/views/flag.py | 2 | ||||
-rw-r--r-- | sitestatic/archweb.css | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/packages/views/flag.py b/packages/views/flag.py index 62478d38..91995ee7 100644 --- a/packages/views/flag.py +++ b/packages/views/flag.py @@ -21,7 +21,7 @@ class FlagForm(forms.Form): # The field below is used to filter out bots that blindly fill out all # input elements website = forms.CharField(label='', - widget=forms.TextInput(attrs={'style': 'display:none;'}), + widget=forms.TextInput(), required=False) def __init__(self, *args, **kwargs): diff --git a/sitestatic/archweb.css b/sitestatic/archweb.css index 3b676442..ced3b64c 100644 --- a/sitestatic/archweb.css +++ b/sitestatic/archweb.css @@ -821,6 +821,10 @@ table.results { width: 45%; } +#flag-pkg-form #id_website { + display: none; +} + /* pkgdetails: deps, required by and file lists */ #pkgdetails #metadata { clear: both; |