I have
{{ select('category', category, 'using': ['id_category', 'name_category'],
'useEmpty': true, 'emptyText': 'Escolha a categoria', 'emptyValue': '@')
}}
This shows
<select id="category" name="category">
<option value="@">Escolha a categoria</option>
<option value="1">Antivírus</option>
<option value="2">Escritório</option>
</select>
He puts the category id in the option value, ok, but a need to do something like this
<option value="cat-1">Antivírus</option>
<option value="cat-2">Escritório</option>
...
How i do to customize the option value using the volt sintax?