always use dropdown list for alias suffix

This commit is contained in:
Son NK 2020-01-22 22:51:52 +01:00
parent b5357d0f4e
commit 3f2f2cabf4

View File

@ -32,9 +32,8 @@
</div> </div>
<div class="col-sm-6 {% if suffixes|length == 1 %} align-self-center {% endif %}" <div class="col-sm-6"
style="padding-left: 5px"> style="padding-left: 5px">
{% if suffixes|length > 1 %}
<select class="form-control" name="suffix"> <select class="form-control" name="suffix">
{% for suffix in suffixes %} {% for suffix in suffixes %}
<option value="{{ suffix[1] }}"> <option value="{{ suffix[1] }}">
@ -46,9 +45,6 @@
</option> </option>
{% endfor %} {% endfor %}
</select> </select>
{% else %}
<span>{{ suffixes[0][1] }}</span>
{% endif %}
</div> </div>
</div> </div>