Commit 39bede71 authored by Andreas Åkre Solberg's avatar Andreas Åkre Solberg
Browse files

Require all fields to be filled out when creating new vms

parent 17b7888f
......@@ -142,6 +142,10 @@ var submitForm = function() {
data.image_id = $("#select-images2").val();
data.vm_name = randomName();
if (!data.hw_profile_id || !data.image_id) {
return alert('Fyll ut alle påkrevde felter før du oppretter en ny maskin.')
}
$("#debug").empty().append(JSON.stringify(data, undefined, 2));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment