Hello All!
I am trying to implement CRUD on a single page.
I have the Create and List implemented using custom routes on the same page. And both are functioning well.
My list view is a table that shows Edit and Delete buttons. Clicking the button trigger a bootstrap modal.
My issue is:
1. If i use
the entire page with the header and footer is displayed.
2. if i use cms:pages on modal it generates as many modals as the pages. Which will become troublesome when the number of pages grow.
3. If i embed the route
I just want to achieve:
1. single modal to display all the pages, upon button click trigger.
2. display only the content (form) of edit_route.html or delete_route.html in the modal body (without the header and footer, i do not want feel it is a right way to use a conditional statement in header or footer to hide the unnecessary.)
Any help will be greatly appreciated.
Regards,
GenXCoders (Aashish)
I am trying to implement CRUD on a single page.
I have the Create and List implemented using custom routes on the same page. And both are functioning well.
My list view is a table that shows Edit and Delete buttons. Clicking the button trigger a bootstrap modal.
My issue is:
1. If i use
- Code: Select all
<cms:route_link 'edit_rat' rt_id=k_page_id />
the entire page with the header and footer is displayed.
2. if i use cms:pages on modal it generates as many modals as the pages. Which will become troublesome when the number of pages grow.
3. If i embed the route
- Code: Select all
<cms:embed 'rating/edit_route.html' />
I just want to achieve:
1. single modal to display all the pages, upon button click trigger.
2. display only the content (form) of edit_route.html or delete_route.html in the modal body (without the header and footer, i do not want feel it is a right way to use a conditional statement in header or footer to hide the unnecessary.)
Any help will be greatly appreciated.
Regards,
GenXCoders (Aashish)