This commit is contained in:
Flavio Copes 2016-08-25 18:45:11 +00:00 committed by GitHub
commit 95c00d5933
1 changed files with 4 additions and 20 deletions

View File

@ -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>