diff --git a/core/templates/wagtailadmin/shared/field.html b/core/templates/wagtailadmin/shared/field.html deleted file mode 100644 index 9473d42f..00000000 --- a/core/templates/wagtailadmin/shared/field.html +++ /dev/null @@ -1,30 +0,0 @@ -{% load wagtailadmin_tags %} -{% load core_tags %} -
- {% if show_label|default_if_none:True %}{{ field.label_tag }}{% endif %} -
-
- {% block form_field %} - {% if field|can_render %} - {{ field|render_with_errors }} - {% endif %} - {% endblock %} - - {# This span only used on rare occasions by certain types of input #} - -
- {% if show_help_text|default_if_none:True and field.help_text %} -

{{ field.help_text }}

- {% endif %} - - {% if field|can_render %} - {% if field|has_unrendered_errors %} -

- {% for error in field.errors %} - {{ error|escape }} - {% endfor %} -

- {% endif %} - {% endif %} -
-
diff --git a/core/templatetags/__init__.py b/core/templatetags/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/core/templatetags/core_tags.py b/core/templatetags/core_tags.py deleted file mode 100644 index dd61f8a9..00000000 --- a/core/templatetags/core_tags.py +++ /dev/null @@ -1,9 +0,0 @@ -from django import template - - -register = template.Library() - - -@register.filter("can_render") -def can_render(bound_field): - return hasattr(bound_field, 'field')