diff --git a/budget/forms.py b/budget/forms.py index adf3de7..ac181ec 100644 --- a/budget/forms.py +++ b/budget/forms.py @@ -118,7 +118,7 @@ class BillForm(Form): payer = SelectField(_("Payer"), validators=[Required()], coerce=int) amount = CommaDecimalField(_("Amount paid"), validators=[Required()]) payed_for = SelectMultipleField(_("For whom?"), - validators=[Required()], widget=select_multi_checkbox, coerce=int) + validators=[Required()], coerce=int) submit = SubmitField(_("Submit")) submit2 = SubmitField(_("Submit and add a new one")) diff --git a/budget/templates/forms.html b/budget/templates/forms.html index af24fe2..8698e37 100644 --- a/budget/templates/forms.html +++ b/budget/templates/forms.html @@ -85,7 +85,18 @@ {{ input(form.what, inline=True) }} {{ input(form.payer, inline=True, class="form-control custom-select") }} {{ input(form.amount, inline=True) }} - {{ input(form.payed_for, inline=True, class="form-check-input") }} + +
+ +
+ +
+
{{ form.submit(class="btn btn-primary") }} diff --git a/budget/templates/list_bills.html b/budget/templates/list_bills.html index 9421650..a9af4de 100644 --- a/budget/templates/list_bills.html +++ b/budget/templates/list_bills.html @@ -107,7 +107,7 @@ {{ _("When?") }}{{ _("Who paid?") }}{{ _("For what?") }}{{ _("For whom?") }}{{ _("How much?") }}{{ _("Actions") }} {% for bill in bills %} - + {{ bill.date }} {{ bill.payer }} {{ bill.what }}