mirror of
https://github.com/retspen/webvirtcloud
synced 2026-11-08 19:26:48 +00:00
The create page's flavor dialog posted its forms the normal way, and the server sent a fresh page back: the VM's name, sizes, disk choices and MAC edits were lost, and a refused flavor left the page for a bare form. The dialog's forms are now posted from the page. The flavor views answer such a post with the presets and the dialog body, rendered from the same includes as the page, and the script swaps them in: a refused flavor shows its errors in the dialog, and the focus stays in it. A post without the script, or one whose request fails, still goes the normal way. Fixes #173 Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
3 lines
159 B
HTML
3 lines
159 B
HTML
{# What the create page's flavor forms get back: the parts of the page they change. #}
|
|
{% include 'create_presets.html' %}
|
|
{% include 'create_flavors.html' %}
|