@Nacho_B wrote:
Hi, I have a pretty standard CRUD for clients. The main route is clients.js, and the subroutes are index.js, show.js, edit.js, etc. You know…, mostly the structure learned from tutorials. Image may be NSFW.
Clik here to view.But I want the edit form page to be loaded as a modal OVER the show page.
It seems that “ember-modal-dialog” can be used to display a model for a specific route (https://github.com/yapplabs/ember-modal-dialog#routable-usage).
After some intents, as promised, my edit route pops as modal, with the edit form template, BUT the show template disappears from the background. Only the headers remain.
I think that this is not the right approach. As far as I know (as a newbie) the edit form template still REPLACES the show template. The only difference is that the {{modal-dialog}} tags forces the template to go modal.
So… what should be a right technique? A dumb input form without a route?
Thank you in advance.
Nacho B.
Posts: 2
Participants: 2