{% load wagtailcore_tags my my_amp %}
{{ form.text|richtext }}
{% csrf_token %}
{% for field in form|cached_form:request %} {% with widget_class=field.field.widget|klass %}
{% with form_icon=icons|ico_get:widget_class|ico:theme %} {% if form_icon %} {% amp_img %} Icon {{ widget_class }} {% endamp_img %} {% endif %} {% endwith %} {{ field.label_tag }}
{{ field }}
{{ field.errors }} {% if field.help_text %} {{ field.help_text|safe }} {% endif %}
{% endwith %} {% endfor %}