From c29ec24bddfec31364bc080e0aea58a3c2763fa7 Mon Sep 17 00:00:00 2001 From: Sunpy Date: Sun, 12 May 2019 21:00:06 +0100 Subject: [PATCH] Bill form style update --- forms/login.py | 11 ++++++----- templates/pages/bills.html | 9 ++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/forms/login.py b/forms/login.py index 56cf477..c48da32 100644 --- a/forms/login.py +++ b/forms/login.py @@ -11,14 +11,15 @@ FORM_RENDER_KW = { } class BillForm(Form): - payment_to = StringField(_("Payment to"), [validators.DataRequired()]) + payment_to = StringField(_("Payment to"), [validators.DataRequired()], render_kw = FORM_RENDER_KW) description = TextAreaField(_("Description"), render_kw = { "cols": 55, - "rows": 8 + "rows": 8, + **FORM_RENDER_KW }) - sum = DecimalField(_("Sum")) - kid = IntegerField(_("KID")) - date_due = DateField(_("Date due")) + sum = DecimalField(_("Sum"), render_kw = FORM_RENDER_KW) + kid = IntegerField(_("KID"), render_kw = FORM_RENDER_KW) + date_due = DateField(_("Date due"), render_kw = FORM_RENDER_KW) class LoginForm(Form): email = StringField(_("Email"), [ diff --git a/templates/pages/bills.html b/templates/pages/bills.html index 47c4dd0..3dc4604 100644 --- a/templates/pages/bills.html +++ b/templates/pages/bills.html @@ -23,18 +23,17 @@ {% endmacro %}