Skip to content

A community-supported supercharged document management system: scan, index and archive all your documents

Change date fields to actual date fields #278

Daniel Quinn6fe37678f2c8
diff --git a/src/documents/templates/admin/documents/document/change_form.html b/src/documents/templates/admin/documents/document/change_form.html
new file mode 100644
index 000000000..7bd0e483f
--- /dev/null
+++ b/src/documents/templates/admin/documents/document/change_form.html
@@ -0,0 +1,13 @@
+{% extends 'admin/change_form.html' %}
+
+
+{% block footer %}
+
+ {{ block.super }}
+
+ {# Hack to force Django to make the created date a date input rather than `text` (the default) #}
+ <script>
+ django.jQuery(".field-created input").first().attr("type", "date")
+ </script>
+
+{% endblock footer %}
\ No newline at end of file