Files
fastapi-admin/fastapi_admin/templates/widgets/inputs/image.html
2021-06-18 11:12:24 +08:00

14 lines
489 B
HTML

<div class="form-group mb-3">
<label class="form-label">{{ label }}</label>
{% if value %}
<div class="my-2"><img src="{{ value }}"/></div>
{% endif %}
<input {% if not null %}required{% endif %} type="{{ input_type }}" class="form-control" name="{{ name }}"
placeholder="{{ placeholder }}" {% if disabled %}disabled{% endif %}>
{% if help_text %}
<small class="form-hint">
{{ help_text }}
</small>
{% endif %}
</div>