diff options
| author | Alexis Metaireau <alexis@notmyidea.org> | 2011-11-28 01:42:02 +0100 |
|---|---|---|
| committer | Alexis Metaireau <alexis@notmyidea.org> | 2011-11-28 01:42:02 +0100 |
| commit | 3a2958a44ea6bc5cf452f2e75f9eb372ee0d513d (patch) | |
| tree | 7607b5557d0005a6bda017fc2cc0df2cff39ccef /budget/forms.py | |
| parent | 46f98078065a2c75c69523e39f4bd77575cf7a1e (diff) | |
| download | ihatemoney-mirror-3a2958a44ea6bc5cf452f2e75f9eb372ee0d513d.zip ihatemoney-mirror-3a2958a44ea6bc5cf452f2e75f9eb372ee0d513d.tar.gz ihatemoney-mirror-3a2958a44ea6bc5cf452f2e75f9eb372ee0d513d.tar.bz2 | |
Add a 'sumbit and add a new one' button for new bills. Fix #53
Diffstat (limited to 'budget/forms.py')
| -rw-r--r-- | budget/forms.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/budget/forms.py b/budget/forms.py index 0e95c73..dccf5fa 100644 --- a/budget/forms.py +++ b/budget/forms.py @@ -110,7 +110,8 @@ class BillForm(Form): amount = CommaDecimalField(_("Amount paid"), validators=[Required()]) payed_for = SelectMultipleField(_("For whom?"), validators=[Required()], widget=select_multi_checkbox, coerce=int) - submit = SubmitField(_("Send the bill")) + submit = SubmitField(_("Submit")) + submit2 = SubmitField(_("Submit and add a new one")) def save(self, bill, project): bill.payer_id=self.payer.data |
