I'm developing an MVC component for Joomla 3.x with currently 3 views:
VIEWS |-PAGES (displays all pages in a list, ordinary joomla view) |-view.html.php |-TMPL |-default.php |-PAGE (forms for page editing) |-view.html.php |-TMPL |-edit.php |-ITEM (forms for item editing) |-view.html.php |-TMPL |-params.php
In my page.edit view, I wanna call my item.params view via a bootstrap modal. currently, I have this setup (working modal) (link in layout edit.php):
<a href="<?php echo JRoute::_('index.php?option=com_pages&view=item&layout=params&tmpl=component&id='.$elem->id); ?>" class="modal"><span class="icon icon-cog"></span></a>
with behavior.modal enabled.
&tmpl=component (administrator template disabled)
How can I e.g. display save buttons and get them working? (with JToolbar if possible?)
Are there possibly beter ways to accomplish this?
EDIT: I've tried @Dmitry-Rekun's answer and I'm glad to say it works! However I've run into some issues with the implementation... :(