pdnew/themes/default/templates/form/form.html

41 lines
1.0 KiB
HTML
Raw Permalink Normal View History

<form enctype="multipart/form-data"
2024-04-12 19:22:00 +00:00
{% if content.id %}
id="{{ content.id }}"
{% endif %}
class="{{ content.css_classes }}"
{% if content.action %}
action="{{ content.action }}"
{% endif %}
method="{{ content.method }}"
>
{% block intro %}
{% if content.intro %}
<div class="intro">
{{ content.intro }}
</div>
{% endif %}
{% endblock %}
2024-04-12 19:22:00 +00:00
{% block fields %}
{% if content.fields_pending_render|length %}
<div class="fields">
{% for field in content.fields_pending_render %}
{{ field.render() }}
{% endfor %}
</div>
{% endif %}
2024-04-12 19:22:00 +00:00
{% endblock %}
{% block buttons %}
{% if content.buttons_pending_render|length %}
<div class="buttons">
{% for button in content.buttons_pending_render %}
{{ button.render() }}
{% endfor %}
</div>
{% endif %}
2024-04-12 19:22:00 +00:00
{% endblock %}
</form>