Understanding modals
Examples from Michael Joseph Giarlo (from slack)
- The work type modal: https://github.com/samvera/hyrax/blob/master/app/views/shared/_select_work_type_modal.html.erb
- the data tags: https://github.com/samvera/hyrax/blob/master/app/views/shared/_select_work_type_modal.html.erb#L14-L15 (edited)
- And here's the PR that brought in said data tags and built the select type modal: https://github.com/samvera/hyrax/commit/239d4baa46d45a94659a043ec0bd7a9f97ceb629
See https://github.com/samvera/hyrax/pull/1453/files#diff-f84b92cea9d9bc9be178bf601da510f6 and https://github.com/samvera/hyrax/pull/1453/files#diff-2ba33708304f62447903f24cadcb4278 for an example of moving methods into the presenter (could also do this in a form) that wrap path logic.
Bootstrap Modal Documentation:
https://getbootstrap.com/docs/3.3/javascript/#modals