regular_costs #5

Merged
jlusiardi merged 19 commits from regular_costs into master 2021-06-18 20:20:13 +02:00
1 changed files with 5 additions and 0 deletions
Showing only changes of commit ae6dfa8ae6 - Show all commits

View File

@ -34,6 +34,9 @@ class CreateServiceForm(FlaskForm):
else: else:
self.costs.default = 0 self.costs.default = 0
if self.description.data:
self.description.default = self.description.data
class DeleteServiceForm(FlaskForm): class DeleteServiceForm(FlaskForm):
submit = SubmitField(label='Really delete this service!') submit = SubmitField(label='Really delete this service!')
@ -67,4 +70,6 @@ class EditServiceForm(FlaskForm):
else: else:
self.costs.default = 0 self.costs.default = 0
if self.description.data:
self.description.default = self.description.data