mirror of
https://github.com/fastapi-admin/fastapi-admin.git
synced 2026-03-13 10:32:25 +08:00
update image input
This commit is contained in:
13
fastapi_admin/templates/widgets/inputs/image.html
Normal file
13
fastapi_admin/templates/widgets/inputs/image.html
Normal file
@@ -0,0 +1,13 @@
|
||||
<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 %} value="{{ value }}">
|
||||
{% if help_text %}
|
||||
<small class="form-hint">
|
||||
{{ help_text }}
|
||||
</small>
|
||||
{% endif %}
|
||||
</div>
|
||||
Reference in New Issue
Block a user