ajax form, send data from js modal to form
I have worked on a similar case in D7.
Take a look at these tutorials.
https://www.deeson.co.uk/labs/insert-form-pop-modal-ctools-and-drupal-7
http://internetdevels.com/blog/big-manual-for-creating-ctools-popups-in-drupal-7