mirror of
https://github.com/fastapi-admin/fastapi-admin.git
synced 2025-08-26 02:39:01 +08:00
new project
This commit is contained in:
5
fastapi_admin/templates/widgets/displays/boolean.html
Normal file
5
fastapi_admin/templates/widgets/displays/boolean.html
Normal file
@ -0,0 +1,5 @@
|
||||
{% if value %}
|
||||
<span class="badge bg-green">true</span>
|
||||
{% else %}
|
||||
<span class="badge bg-red">false</span>
|
||||
{% endif %}
|
1
fastapi_admin/templates/widgets/displays/image.html
Normal file
1
fastapi_admin/templates/widgets/displays/image.html
Normal file
@ -0,0 +1 @@
|
||||
<img src="{{ value }}" alt="" width="{{ width }}" height="{{ height }}">
|
4
fastapi_admin/templates/widgets/displays/json.html
Normal file
4
fastapi_admin/templates/widgets/displays/json.html
Normal file
@ -0,0 +1,4 @@
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@10.7.2/build/styles/default.min.css">
|
||||
<script src="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@10.7.2/build/highlight.min.js"></script>
|
||||
<script>hljs.highlightAll();</script>
|
||||
<pre><code class="json">{{ value }}</code></pre>
|
Reference in New Issue
Block a user