admin: Fix modals in details

Due to the recent changes with the associations, the modals
functionality in the details page was broken. Restore it to its previous
state.
Merge branch 'feature-admin-fix-modals' into feature-admin