Skip to content

create modal using window.open()

Bengfort requested to merge 1178-spike-subwindow into master

based on !887 (closed)

So far the extra views duplicate a lot of code. The JS has grown quite large but should be ok.

The window.open() API is quite old and exact behavior varies across browsers. It is the approach used by django-admin for managing relations. Not pretty but does the job.

TODO

  • switch to create tab on validation errors
  • close popup after create
  • reduce code duplication
Edited by Bengfort

Merge request reports