As we move closer to being bootstrap centered, now may be a good time to decide how, why, when or where modals should be used, if at all. Also a standard modal layout should be decided.
Browser windows have several advantages over B.S modals for dialog’s with one being the ability for user to move dialog with a downside that sometimes user forgets to close (use to be could force modal behavior of window), however, one could argue modals are easier to deal with data and element manipulations.
Hopefully others will comment on preferences.
I’ve started the process to convert our existing window dialog to a bootstrap modal with some options while maintaining legacy support. Comments and suggestions are welcomed. PR is here:
My vote is definitely to move towards a standard bootstrap modal. I am pretty sure both @robert.down and @zbig01 have examples of bootstrap modal use in the respective PR’s on github. Hopefully they can point us to them.
-brady
My vote is modals only. The modal can still be dragged around and it’s far less complex to manage a modal and its content. If the content should be persistent, it’s a bad choice for a modal anyway and should be given its own page.
I like the bootstrap modals for their ease of use and for easily being responsive. I have several examples of bootstrap modals in openEMR that I have experimented with. I am in the process of refining a help modal and will post a PR soon. However to see previous versions go to openemr-bootstarp-flatstyle
Fees > Posting and click on the ?
Procedures > Patient Results
The code is very simple, just add this modal div and jquery script after the end of the container div , adjust the src and call it form any suitable element in the DOM with id=“help-href”. It will bring any refrenced page into the modal as an iframe.
Yep nice, I’m also pretty sure they nicely handle iframes or really most any container, especially if the advice of placing the modal outside the pages container is followed.