{% if config.DEBUG %}<span class="debug-hint" title="{{ self._TemplateReference__context.name }}">?</span>{% endif %}
{% block pre %}{% if content.pre %}{{ content.pre.render() }}{% endif %}{% endblock %}

<form
    id="{{ content.ref_id }}"
    method="{{ content.method }}"
    {% if content.action %}action="{{ content.action }}"{% endif %}
    enctype="multipart/form-data" >

{% block header %}{%endblock%}

<div class="content">
{% block fields %}
    {% for field in content %}
        {{ field.render() }}
    {% endfor %}
{% endblock %}
</div>

<section class="controls">
{% block controls %}
    {{ content.render_controls() }}
{% endblock %}
</section>

</form>

{% block post %}{% if content.post %}{{ content.post.render() }}{% endif %}{% endblock %}
