When you open a relation form to edit the fields, the CTRL+S button is not working, so you need to scroll down to the buttons to save the changes. I suppose that this is a bug.
I’d also like to know if there is any way to customize the buttons in this manage form: right now there are just the buttons Create/Update, and cancel. I’d like to add to be able to add a “Update and keep editing” button that doesn’t close the form, and a Delete button as it is in the “normal” create and update forms.
I’d also like to know if there is any way to customize the buttons in this manage form: right now there are just the buttons Create/Update, and cancel. I’d like to add to be able to add a “Update and keep editing” button that doesn’t close the form, and a Delete button as it is in the “normal” create and update forms.
Yes, you can customize the buttons by modifying the create.htm and update.htm files located in the respective controller’s folder. For example:
plugins/october/test/controllers/cities/create.htm and plugins/october/test/controllers/cities/update.htm
I’m talking about the Relation Widget manage view. Can I customize the forms for this? The create.htm and update.htm files in the controller folder only affect the main form views, not the relation manage views.
Ahhh I found a workaround! I can copy the file modules/backend/behaviors/relationcontroller/partials/_manage_form.php into my controller folder, and rename it to _relation_manage_form.php, and then I can add the data-hotkey="ctrl+s, cmd+s" to the update and create buttons and the shortcut works.
But I can’t find a way to add another button that only saves the form and doesn’t close the popup, any tip to do this?