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

fix form-select conversion from from-control

This commit is contained in:
catborise 2021-07-12 11:30:50 +03:00 committed by catborise
parent 8db77f6136
commit b08df75c53
2 changed files with 6 additions and 6 deletions

View file

@ -23,7 +23,7 @@
<div class="row"> <div class="row">
<label class="col-sm-4 col-form-label">{% trans "Network" %}</label> <label class="col-sm-4 col-form-label">{% trans "Network" %}</label>
<div class="col-sm-6"> <div class="col-sm-6">
<select class="form-control" name="add-net-network"> <select class="form-select" name="add-net-network">
{% for c_net in networks_host %} {% for c_net in networks_host %}
<option value="net:{{ c_net }}">Network {{ c_net }}</option> <option value="net:{{ c_net }}">Network {{ c_net }}</option>
{% endfor %} {% endfor %}
@ -36,7 +36,7 @@
<div class="row"> <div class="row">
<label class="col-sm-4 col-form-label">{% trans "NWFilter" %}</label> <label class="col-sm-4 col-form-label">{% trans "NWFilter" %}</label>
<div class="col-sm-6"> <div class="col-sm-6">
<select class="form-control" name="add-net-nwfilter"> <select class="form-select" name="add-net-nwfilter">
<option value="">{% trans "None" %}</option> <option value="">{% trans "None" %}</option>
{% for nwfilter in nwfilters_host %} {% for nwfilter in nwfilters_host %}
<option value="{{ nwfilter }}">{{ nwfilter }}</option> <option value="{{ nwfilter }}">{{ nwfilter }}</option>

View file

@ -235,7 +235,7 @@
</div> </div>
{% empty %} {% empty %}
<div class="offset-3 col-sm-6"> <div class="offset-3 col-sm-6">
<div class="bg-light rounded shadow-sm">{% trans 'There is not any CD-ROM device.' %}</div> <div class="bg-warning rounded shadow-sm">{% trans 'There is not any CD-ROM device.' %}</div>
</div> </div>
{% endfor %} {% endfor %}
<div class="clearfix"></div> <div class="clearfix"></div>
@ -416,7 +416,7 @@
<label class="col-form-label">{% trans "Net Source" %}</label> <label class="col-form-label">{% trans "Net Source" %}</label>
<div class="input-group"> <div class="input-group">
<input class="form-control" type="text" value="{{ network.nic }}" readonly/> <input class="form-control" type="text" value="{{ network.nic }}" readonly/>
<select class="form-control" name="net-source-{{ forloop.counter0 }}"> <select class="form-select" name="net-source-{{ forloop.counter0 }}">
{% for c_net in networks_host %} {% for c_net in networks_host %}
<option value="net:{{ c_net }}" {% if c_net == network.nic %} selected {% endif %}>{% trans 'Network' %} {{ c_net }}</option> <option value="net:{{ c_net }}" {% if c_net == network.nic %} selected {% endif %}>{% trans 'Network' %} {{ c_net }}</option>
{% endfor %} {% endfor %}
@ -430,7 +430,7 @@
<label class="col-form-label">{% trans "NWFilter" %}</label> <label class="col-form-label">{% trans "NWFilter" %}</label>
<div class="input-group"> <div class="input-group">
<input class="form-control" type="text" value="{{ network.filterref }}" readonly/> <input class="form-control" type="text" value="{{ network.filterref }}" readonly/>
<select class="form-control" name="net-nwfilter-{{ forloop.counter0 }}"> <select class="form-select" name="net-nwfilter-{{ forloop.counter0 }}">
<option value="">{% trans "None" %}</option> <option value="">{% trans "None" %}</option>
{% for c_filters in nwfilters_host %} {% for c_filters in nwfilters_host %}
<option value="{{ c_filters }}" {% if c_filters == network.filterref %} selected {% endif %}>{{ c_filters }}</option> <option value="{{ c_filters }}" {% if c_filters == network.filterref %} selected {% endif %}>{{ c_filters }}</option>
@ -442,7 +442,7 @@
<label class="col-form-label">{% trans "Model" %} </label> <label class="col-form-label">{% trans "Model" %} </label>
<div class="input-group"> <div class="input-group">
<input class="form-control" type="text" value="{{ network.model }}" readonly/> <input class="form-control" type="text" value="{{ network.model }}" readonly/>
<select class="form-control" name="net-model-{{ forloop.counter0 }}"> <select class="form-select" name="net-model-{{ forloop.counter0 }}">
{% for model in net_models_host %} {% for model in net_models_host %}
<option value="{{ model }}" {% if model == network.model %} selected {% endif %}>{{ model }}</option> <option value="{{ model }}" {% if model == network.model %} selected {% endif %}>{{ model }}</option>
{% endfor %} {% endfor %}