1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2024-12-24 15:15:22 +00:00

fix multiple media selection in instance settings form

This commit is contained in:
Ing. Jan KRCMAR 2017-04-20 14:45:01 +02:00
parent 14b0751930
commit 6858448b60

View file

@ -546,8 +546,8 @@
<!-- Tab panes --> <!-- Tab panes -->
<div class="tab-content"> <div class="tab-content">
<div role="tabpanel" class="tab-pane tab-pane-bordered active" id="media"> <div role="tabpanel" class="tab-pane tab-pane-bordered active" id="media">
<form class="form-horizontal" action="" method="post" role="form">{% csrf_token %} {% for cd in media %}
{% for cd in media %} <form class="form-horizontal" action="" method="post" role="form">{% csrf_token %}
<div class="form-group"> <div class="form-group">
<label class="col-sm-2 control-label">{% trans "CDROM" %} {{ forloop.counter }}</label> <label class="col-sm-2 control-label">{% trans "CDROM" %} {{ forloop.counter }}</label>
{% if not cd.image %} {% if not cd.image %}
@ -579,8 +579,8 @@
</div> </div>
{% endif %} {% endif %}
</div> </div>
{% endfor %} </form>
</form> {% endfor %}
<div class="clearfix"></div> <div class="clearfix"></div>
</div> </div>
{% if request.user.is_superuser %} {% if request.user.is_superuser %}