From 0f951dcf029d4af284467543a3afdf5bf6581a20 Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Tue, 23 Apr 2024 11:16:38 +0100 Subject: switched to Django --- templates/w3/layout/uneditable_input.html | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 templates/w3/layout/uneditable_input.html (limited to 'templates/w3/layout/uneditable_input.html') diff --git a/templates/w3/layout/uneditable_input.html b/templates/w3/layout/uneditable_input.html new file mode 100644 index 0000000..0af45e4 --- /dev/null +++ b/templates/w3/layout/uneditable_input.html @@ -0,0 +1,14 @@ +{% load crispy_forms_field %} +
+ +
+ {% if field|is_select and use_custom_control %} + {% crispy_field field 'class' 'custom-select' 'disabled' 'disabled' %} + {% elif field|is_file %} + {% crispy_field field 'class' 'form-control-file' 'disabled' 'disabled' %} + {% else %} + {% crispy_field field 'class' 'form-control' 'disabled' 'disabled' %} + {% endif %} + {% include 'w3/layout/help_text.html' %} +
+
-- cgit v1.2.3