1
0
Fork 0
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:
catborise 2018-09-18 09:53:34 +03:00
parent 1bf99b796f
commit 33f334289c

View file

@ -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 %}