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:
Nayef Alebrahim 2020-01-15 10:30:36 +03:00
parent 8b990bfa56
commit e9b37393b6
No known key found for this signature in database
GPG Key ID: 7F1502304671A40F
1 changed files with 2 additions and 2 deletions

View File

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