gl-website-deployer/admin/phpMyAdmin/templates/sql/set_column.twig

8 lines
347 B
Twig
Raw Normal View History

2024-11-19 08:02:04 +01:00
{% set values_amount = values|length %}
{% set selected_values = current_values|split(',') %}
<select class="resize-vertical" size="{{ values_amount < 10 ? values_amount : 10 }}" multiple>
{% for value in values %}
<option value="{{ value|raw }}"{{ value in selected_values ? ' selected' }}>{{ value|raw }}</option>
{% endfor %}
</select>