{% set values_amount = values|length %}
<select class="resize-vertical" size="{{ values_amount < 10 ? values_amount : 10 }}" multiple>
  {% for value in values %}
    <option value="{{ value }}"{{ value in current_values ? ' selected' }}>{{ value }}</option>
  {% endfor %}
</select>
