fix: creates form for user media preferences
This commit is contained in:
17
templates/components/field/select.html.twig
Normal file
17
templates/components/field/select.html.twig
Normal file
@@ -0,0 +1,17 @@
|
||||
<div{{ attributes }}>
|
||||
<label class="text-gray-50" for="quality">{{ label }}</label>
|
||||
<select class="p-1.5 rounded-md mb-2" name="quality" id="quality" value="{{ value }}">
|
||||
{% if true == show_na %}
|
||||
<option class="text-gray-800"
|
||||
value=""
|
||||
{{ value is null ? "selected" }}
|
||||
>n/a</option>
|
||||
{% endif %}
|
||||
{% for option in options %}
|
||||
<option class="text-gray-800"
|
||||
value="{{ option.value }}"
|
||||
{{ quality == option.value ? "selected" }}
|
||||
>{{ option.label }}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
</div>
|
||||
Reference in New Issue
Block a user