mirror of
https://github.com/spiral-project/ihatemoney.git
synced 2025-05-05 20:51:49 +02:00
forms.py, forms.html Update of add bills
This commit is contained in:
parent
f68263328c
commit
835dbfdd31
2 changed files with 4 additions and 4 deletions
|
@ -306,7 +306,7 @@ class ResetPasswordForm(FlaskForm):
|
|||
|
||||
class BillForm(FlaskForm):
|
||||
date = DateField(_("Date"), validators=[DataRequired()], default=datetime.now)
|
||||
what = StringField(_("What?"), validators=[DataRequired()])
|
||||
what = StringField(_("Description"), validators=[DataRequired()])
|
||||
payer = SelectField(_("Payer"), validators=[DataRequired()], coerce=int)
|
||||
amount = CalculatorStringField(_("Amount paid"), validators=[DataRequired()])
|
||||
currency_helper = CurrencyConverter()
|
||||
|
|
|
@ -150,9 +150,9 @@
|
|||
{% include "display_errors.html" %}
|
||||
{{ form.hidden_tag() }}
|
||||
{{ input(form.date, inline=True) }}
|
||||
{{ input(form.what, inline=True) }}
|
||||
{{ input(form.payer, inline=True, class="form-control custom-select") }}
|
||||
{{ input(form.amount, inline=True) }}
|
||||
{{ input(form.what, inline=True, placeholder="Payment for...") }}
|
||||
{{ input(form.payer, inline=True, class="form-control custom-select", placeholder="Who paid?") }}
|
||||
{{ input(form.amount, inline=True, placeholder="How much?") }}
|
||||
|
||||
<div class="form-group row">
|
||||
<label class="col-3" for="payed_for">{{ _("For whom?") }}</label>
|
||||
|
|
Loading…
Reference in a new issue