1
Fork 0
mirror of https://github.com/Steffo99/estus.git synced 2024-11-21 23:24:18 +00:00

Always select 0.0.0.0 as the default network

This commit is contained in:
Steffo 2017-09-22 08:36:38 +02:00
parent b6cbb10af2
commit 64dee29ce6

View file

@ -94,7 +94,7 @@
<label class="col-xs-2" for="form-so">Sistema operativo</label> <label class="col-xs-2" for="form-so">Sistema operativo</label>
<div class="col-xs-10"> <div class="col-xs-10">
<input type="text" class="form-control" placeholder="Sistema operativo [...]" name="so" list="form-so" {% if dispositivo %}value="{{ dispositivo.so }}"{% endif %}> <input type="text" class="form-control" placeholder="Sistema operativo [...]" name="so" list="form-so" {% if dispositivo %}value="{{ dispositivo.so }}"{% endif %}>
<datalist id="form-so" name="so"> <datalist id="form-so">
{% for sistema in sistemi %} {% for sistema in sistemi %}
<option value="{{ sistema.so }}">{{ sistema.so }}</option> <option value="{{ sistema.so }}">{{ sistema.so }}</option>
{% endfor %} {% endfor %}
@ -145,7 +145,7 @@
<div class="col-xs-10"> <div class="col-xs-10">
<select id="form-rete" class="form-control" name="rete"> <select id="form-rete" class="form-control" name="rete">
{% for rete in reti %} {% for rete in reti %}
<option value="{{ rete.nid }}" {% if dispositivo and rete.nid == dispositivo.nid %}selected{% endif %}>{{ rete.nome }} - {{ rete.network_ip }}/{{ rete.subnet }}</option> <option value="{{ rete.nid }}" {% if (dispositivo and rete.nid == dispositivo.nid) or (action == "add" and rete.network_ip == "0.0.0.0" %}selected{% endif %}>{{ rete.nome }} - {{ rete.network_ip }}/{{ rete.subnet }}</option>
{% endfor %} {% endfor %}
</select> </select>
</div> </div>