diff --git a/fastapi_admin/templates/widgets/inputs/image.html b/fastapi_admin/templates/widgets/inputs/image.html new file mode 100644 index 0000000..44f2b10 --- /dev/null +++ b/fastapi_admin/templates/widgets/inputs/image.html @@ -0,0 +1,13 @@ +
+ + {% if value %} +
+ {% endif %} + + {% if help_text %} + + {{ help_text }} + + {% endif %} +
\ No newline at end of file diff --git a/fastapi_admin/widgets/inputs.py b/fastapi_admin/widgets/inputs.py index 0f9ea64..988a3d9 100644 --- a/fastapi_admin/widgets/inputs.py +++ b/fastapi_admin/widgets/inputs.py @@ -234,6 +234,7 @@ class File(Input): class Image(File): + template = "widgets/inputs/image.html" input_type = "file"