elif prefix + '/edit' == parsed_url.path:
index = int(postvars['index'][0])
edit_mode = postvars['edit_mode'][0]
- validate = submit_button in {'save', 'copy', 'check'}
+ validate = submit_button in {'update', 'add', 'copy', 'check'}
starts_at = '?' if index == -1 else db.bookings[index].starts_at
if 'textarea' == edit_mode:
lines = [LedgerTextLine(line) for line in postvars['booking'][0].rstrip().split('\n')]