diff --git a/create/forms.py b/create/forms.py
index fccf944..0f208ce 100644
--- a/create/forms.py
+++ b/create/forms.py
@@ -2,6 +2,7 @@ import re
from django import forms
from django.utils.translation import ugettext_lazy as _
from create.models import Flavor
+from webvirtcloud.settings import QEMU_CONSOLE_LISTEN_ADDRESSES
class FlavorAddForm(forms.Form):
@@ -45,6 +46,9 @@ class NewVMForm(forms.Form):
meta_prealloc = forms.BooleanField(required=False)
virtio = forms.BooleanField(required=False)
mac = forms.CharField(required=False)
+ console_pass = forms.CharField(required=False,empty_value="", widget=forms.PasswordInput())
+ video = forms.CharField(error_messages={'required': _('Please select a graphic display')})
+ listener_addr = forms.ChoiceField(required=True, widget=forms.RadioSelect, choices=QEMU_CONSOLE_LISTEN_ADDRESSES)
def clean_name(self):
name = self.cleaned_data['name']
@@ -54,3 +58,4 @@ class NewVMForm(forms.Form):
elif len(name) > 20:
raise forms.ValidationError(_('The name of the virtual machine must not exceed 20 characters'))
return name
+
diff --git a/create/templates/create_instance.html b/create/templates/create_instance.html
index 42f18aa..210ee48 100644
--- a/create/templates/create_instance.html
+++ b/create/templates/create_instance.html
@@ -14,8 +14,8 @@
-
{% include 'errors_block.html' %}
+ {% include 'pleasewaitdialog.html' %}
{% if storages %}
-