From 713519dc79cb6522be1299168b3efe4491499105 Mon Sep 17 00:00:00 2001 From: Jelle van der Waa Date: Sat, 9 Feb 2019 17:11:07 +0100 Subject: packages: remove inline style from flag out of date Remove inline style and add new CSS rule for it. --- packages/views/flag.py | 2 +- sitestatic/archweb.css | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) 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; -- cgit v1.2.3-55-g3dc8