Compare commits
1 commit
libretic
...
flaviocope
Author | SHA1 | Date | |
---|---|---|---|
|
e3c8e07e96 |
1 changed files with 4 additions and 20 deletions
|
@ -1,21 +1,5 @@
|
||||||
<div class="alert">{{ form.message }}</div>
|
{% extends "forms/default/form.html.twig" %}
|
||||||
|
|
||||||
<form name="{{ form.name }}"
|
{% block button_classes %}
|
||||||
action="{{ uri.rootUrl ~ (form.action|default(page.route)) }}"
|
class="button"
|
||||||
method="{{ form.method|upper|default('POST') }}">
|
{% endblock %}
|
||||||
{% for field in form.fields %}
|
|
||||||
{% set value = form.value(field.name) %}
|
|
||||||
<div>
|
|
||||||
{% include "forms/fields/#{field.type}/#{field.type}.html.twig" %}
|
|
||||||
</div>
|
|
||||||
{% endfor %}
|
|
||||||
|
|
||||||
<div class="buttons">
|
|
||||||
{% for button in form.buttons %}
|
|
||||||
<button class="button" type="{{ button.type|default('submit') }}">{{ button.value|default('Submit') }}</button>
|
|
||||||
{% endfor %}
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{{ nonce_field('form', 'form-nonce') }}
|
|
||||||
|
|
||||||
</form>
|
|
||||||
|
|
Loading…
Reference in a new issue