thedevdojo / voyager

Voyager - The Missing Laravel Admin
https://voyager.devdojo.com
MIT License
11.78k stars 2.67k forks source link

Add a button to save content and create a new one. #1515

Open alanpilloud opened 7 years ago

alanpilloud commented 7 years ago

Description:

First of all, I would like to thank you all for this great work you did !

Here is my proposition: when creating/editing new BREAD content, it would be great to have 3 buttons to save :

That would be a great time saver.

Steps To Reproduce:

Add a new BREAD content, there is only a "Save" button which will show you the create content.

Have a nice day !

akazorg commented 7 years ago

Hi @alanpilloud, we will certainly work on that, it has been requested several times.

I suggest having a config for defining the default button, and instead of 3 buttons, have a drop down next to the submit button (so it doesn't take much space at the UI).

alanpilloud commented 7 years ago

Hi @akazorg, I would be more than happy to contribute on this, could do you provide me any guidance on how you want me to do that ?

xotik commented 7 years ago

+100k for this feature :)

I kind of hardcoded this in the VoyagerBreadController.php file. I'm passing a parameter on the request that afterwards is used to decide to which view the user is redirected.

handiwijoyo commented 6 years ago

Hello guys, I've submit PR #2459 for this feature. Please take a look and test it. Feedback are welcome.