optimized: TCP Selected by default
- assume TCP by default was considering jquery autoselect but some ports can be UDP or TCP it would be inconvenient to the user
This commit is contained in:
parent
8b990bfa56
commit
e9b37393b6
|
@ -49,8 +49,8 @@
|
|||
<div class="form-group types typeService">
|
||||
<label for="protocol">{{ label_protocol }}</label>
|
||||
<select id="protocol" name="protocol" class="custom-select">
|
||||
<option {% if not edit_value_protocol %}selected {% endif %} disabled>{{ label_please_select }}</option>
|
||||
<option {% if edit_value_protocol|lower=='tcp' %}selected {% endif %}value="tcp">TCP</option>
|
||||
<!-- Lets assume TCP by default, no need for js to autoselect as some ports can be UDP or TCP -->
|
||||
<option {% if not edit_value_protocol %}selected {% elseif edit_value_protocol|lower=='tcp' %}selected {% endif %}value="tcp">TCP</option>
|
||||
<option {% if edit_value_protocol|lower=='udp' %}selected {% endif %}value="udp">UDP</option>
|
||||
</select>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue