Show two save actions besides each other instead of dropdown #454
-
Hello everyone! I'm working on a kind of CMS. My clients are able to write content. This content can either be saved as a draft or published. Right now I have two actions for the save button:
The default behavior of Backpack is to show all other actions besides the default one in a dropdown/select. My question: Is it possible to show two save buttons beside each other instead of in a select/dropdown? The intention behind this is to make both actions visible in one place. Does someone know if this is possible? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
An additional note. What I want to achieve looks like this (just played around with the DOM in the browser inspektor): |
Beta Was this translation helpful? Give feedback.
-
Hi @hagealex To add a save action you need to follow instruction in our documentation If you additionally want to customize button view you will need to override /backpack/crud/src/resources/views/crud/inc/form_save_buttons.blade.php because the only way to show today is "btn-group". Cheers |
Beta Was this translation helpful? Give feedback.
Hi @hagealex
To add a save action you need to follow instruction in our documentation
If you additionally want to customize button view you will need to override /backpack/crud/src/resources/views/crud/inc/form_save_buttons.blade.php because the only way to show today is "btn-group".
Cheers