summaryrefslogtreecommitdiff
path: root/ishtar_common/widgets.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2022-03-24 10:31:52 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2022-07-08 09:58:50 +0200
commitc814bd19a943dcc71ec435caafa7cc9569137e20 (patch)
tree74f205d9d8e4c22e479fba867e8983879d477a51 /ishtar_common/widgets.py
parentc4326466ffed98aea0cb65f0adedb64c24bfe3d1 (diff)
downloadIshtar-c814bd19a943dcc71ec435caafa7cc9569137e20.tar.bz2
Ishtar-c814bd19a943dcc71ec435caafa7cc9569137e20.zip
Improve file widget with bootstrap
Diffstat (limited to 'ishtar_common/widgets.py')
-rw-r--r--ishtar_common/widgets.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/ishtar_common/widgets.py b/ishtar_common/widgets.py
index efea07065..1f5a169ba 100644
--- a/ishtar_common/widgets.py
+++ b/ishtar_common/widgets.py
@@ -479,6 +479,10 @@ class DeleteSwitchWidget(SwitchWidget):
extra_label = _("Delete")
+class BSClearableFileInput(ClearableFileInput):
+ template_name = "widgets/clearable_file_input.html"
+
+
class ImageFileInput(ClearableFileInput):
template_name = "widgets/image_input.html"
NO_FORM_CONTROL = True