Skip to content

Commit

Permalink
Bootstrap 5 button classes in add/edit.
Browse files Browse the repository at this point in the history
  • Loading branch information
mauritsvanrees committed Jul 1, 2022
1 parent e8326a7 commit b2edb91
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions plone/dexterity/browser/add.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,10 +142,10 @@ def update(self):
def updateActions(self):
super().updateActions()
if "save" in self.actions:
self.actions["save"].addClass("context")
self.actions["save"].addClass("success")

if "cancel" in self.actions:
self.actions["cancel"].addClass("standalone")
self.actions["cancel"].addClass("secondary")

@property
def label(self):
Expand Down
4 changes: 2 additions & 2 deletions plone/dexterity/browser/edit.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,10 @@ def updateActions(self):
super().updateActions()

if "save" in self.actions:
self.actions["save"].addClass("context")
self.actions["save"].addClass("success")

if "cancel" in self.actions:
self.actions["cancel"].addClass("standalone")
self.actions["cancel"].addClass("secondary")

@property
def fti(self):
Expand Down

0 comments on commit b2edb91

Please sign in to comment.