mirror of
https://github.com/fastapi-admin/fastapi-admin.git
synced 2025-08-16 11:54:15 +08:00
21 lines
724 B
HTML
21 lines
724 B
HTML
{% with id = 'form-select-' + name %}
|
|
<div class="form-group mb-3">
|
|
<div class="form-label">{{ label }}</div>
|
|
<select class="form-select" autocomplete="off" name="{{ name }}" id="{{ id }}">
|
|
{% for option in options %}
|
|
<option value="{{ option[1] }}" {% if option[1] == value %}
|
|
selected
|
|
{% endif %} >{{ option[0] }}</option>
|
|
{% endfor %}
|
|
</select>
|
|
{% if help_text %}
|
|
<div class="mt-2">
|
|
<small class="form-hint">
|
|
{{ help_text }}
|
|
</small>
|
|
</div>
|
|
{% endif %}
|
|
</div>
|
|
{% include "components/select.html" %}
|
|
{% endwith %}
|