diff options
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 |
commit | 0fb2540a3359a38a2df7db05b76f6238e0d5ae35 (patch) | |
tree | 74f205d9d8e4c22e479fba867e8983879d477a51 /ishtar_common/widgets.py | |
parent | cec6d7b3112b95ea2c10848f824d48a3e8cce035 (diff) | |
download | Ishtar-0fb2540a3359a38a2df7db05b76f6238e0d5ae35.tar.bz2 Ishtar-0fb2540a3359a38a2df7db05b76f6238e0d5ae35.zip |
Improve file widget with bootstrap
Diffstat (limited to 'ishtar_common/widgets.py')
-rw-r--r-- | ishtar_common/widgets.py | 4 |
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 |