Skip to content

Commit

Permalink
Town6: Editmode People
Browse files Browse the repository at this point in the history
Add "save" and "cancel" to Edit-bar when editing people.

TYPE: Feature
  • Loading branch information
BreathingFlesh authored Jul 8, 2024
1 parent a0458ba commit 7412046
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/onegov/org/views/people.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ def handle_new_person(
layout = layout or PersonCollectionLayout(self, request)
layout.breadcrumbs.append(Link(_("New"), '#'))
layout.include_editor()
layout.edit_mode = True

return {
'layout': layout,
Expand Down Expand Up @@ -173,6 +174,7 @@ def handle_edit_person(
layout = layout or PersonLayout(self, request)
layout.breadcrumbs.append(Link(_("Edit"), '#'))
layout.include_editor()
layout.edit_mode = True

return {
'layout': layout,
Expand Down

0 comments on commit 7412046

Please sign in to comment.