Files
fastapi-admin/fastapi_admin/templates/widgets/inputs/select.html
long2ice 1118e990a9 Sync pro
2021-05-01 20:45:28 +08:00

14 lines
505 B
HTML

{% with id = 'form-select-' + name %}
<div class="form-group mb-3">
<div class="form-label">{{ label }}</div>
<select class="form-select" name="{{ name }}" id="{{ id }}">
{% for option in options %}
<option value="{{ option[1] }}" {% if option[1] == value %}
selected
{% endif %} >{{ option[0] }}</option>
{% endfor %}
</select>
</div>
{% include "components/select.html" %}
{% endwith %}