mirror of
https://github.com/retspen/webvirtcloud
synced 2024-12-24 23:25:24 +00:00
patch for old libvirts to populate video graphics type.
This commit is contained in:
parent
1bf99b796f
commit
33f334289c
1 changed files with 9 additions and 1 deletions
|
@ -112,6 +112,10 @@
|
||||||
<label class="col-sm-3 control-label">{% trans "Video" %}</label>
|
<label class="col-sm-3 control-label">{% trans "Video" %}</label>
|
||||||
<div class="col-sm-6">
|
<div class="col-sm-6">
|
||||||
<select name="video" class="form-control">
|
<select name="video" class="form-control">
|
||||||
|
{% if not videos %}
|
||||||
|
<option value="vga">vga</option>
|
||||||
|
<option value="cirrus">cirrus</option>
|
||||||
|
{% endif %}
|
||||||
{% for video in videos %}
|
{% for video in videos %}
|
||||||
<option value="{{ video }}">{{ video }}</option>
|
<option value="{{ video }}">{{ video }}</option>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
@ -232,6 +236,10 @@
|
||||||
<label class="col-sm-3 control-label">{% trans "Video" %}</label>
|
<label class="col-sm-3 control-label">{% trans "Video" %}</label>
|
||||||
<div class="col-sm-6">
|
<div class="col-sm-6">
|
||||||
<select name="video" class="form-control">
|
<select name="video" class="form-control">
|
||||||
|
{% if not videos %}
|
||||||
|
<option value="vga">vga</option>
|
||||||
|
<option value="cirrus">cirrus</option>
|
||||||
|
{% endif %}
|
||||||
{% for video in videos %}
|
{% for video in videos %}
|
||||||
<option value="{{ video }}">{{ video }}</option>
|
<option value="{{ video }}">{{ video }}</option>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
@ -419,7 +427,7 @@
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
<button type="button" class="btn btn-default" data-dismiss="modal">{% trans "Close" %}</button>
|
<button type="button" class="btn btn-default" data-dismiss="modal">{% trans "Close" %}</button>
|
||||||
{% if storages %}
|
{% if storages %}
|
||||||
<button type="submit" class="btn btn-primary" name="create" onclick="showPleaseWaitDialog()">{% trans "Create" %}</button>
|
<button type="submit" class="btn btn-primary" name="create">{% trans "Create" %}</button>
|
||||||
{% else %}
|
{% else %}
|
||||||
<button class="btn btn-primary disabled">{% trans "Create" %}</button>
|
<button class="btn btn-primary disabled">{% trans "Create" %}</button>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
Loading…
Reference in a new issue