diff --git a/ihatemoney/forms.py b/ihatemoney/forms.py index 0029e151..356450f7 100644 --- a/ihatemoney/forms.py +++ b/ihatemoney/forms.py @@ -373,3 +373,9 @@ class InviteForm(FlaskForm): raise ValidationError( _("The email %(email)s is not valid", email=email) ) + + +class EmptyForm(FlaskForm): + """Used for CSRF validation""" + + pass diff --git a/ihatemoney/static/css/main.css b/ihatemoney/static/css/main.css index a4fae280..3a6630bf 100644 --- a/ihatemoney/static/css/main.css +++ b/ihatemoney/static/css/main.css @@ -313,7 +313,7 @@ footer .footer-left { text-align: center; } -.bill-actions > .delete, +.bill-actions > form > .delete, .bill-actions > .edit, .bill-actions > .show { font-size: 0px; @@ -323,9 +323,10 @@ footer .footer-left { margin: 2px; margin-left: 5px; float: left; + border: none; } -.bill-actions > .delete { +.bill-actions > form > .delete { background: url("../images/delete.png") no-repeat right; } diff --git a/ihatemoney/templates/list_bills.html b/ihatemoney/templates/list_bills.html index 849fc15b..0240191f 100644 --- a/ihatemoney/templates/list_bills.html +++ b/ihatemoney/templates/list_bills.html @@ -131,7 +131,10 @@