Prevent form actions from appearing in a modal dialog footer

Hey,

I’m showing a view with exposed filters in a modal dialog. As form actions are placed in the footer by default, the exposed filter submit button appears in the footer. We want it to show the submit button (form actions) above the view content in alignment with the filter input elements.

Anyone know a nice approach to prevent a modal dialog from placing form actions in the modal dialog footer?

Thx

Drupal version: 


Source: https://www.drupal.org/taxonomy/term/3/feed