Drop the form twig overrides as they break the forms, and don't really
customise the output
This commit is contained in:
Flavio Copes 2016-09-09 17:27:11 +02:00
parent 359cd8cafc
commit 6ff958bf2f
4 changed files with 2 additions and 27 deletions

View File

@ -3,6 +3,8 @@
1. [](#improved)
* Invert order of previous and next button in the blog posts navigation
1. [](#bugfix)
* Fix forms not working as expected. Drop the form twig overrides as they break the forms, and don't really customise the output
# v1.5.0
## 07/14/2016

View File

@ -1,3 +0,0 @@
{% for field in form.fields %}
<div><strong>{{ field.label }}</strong>: {{ form.value(field.name)|e }}</div>
{% endfor %}

View File

@ -1,3 +0,0 @@
{% for field in form.fields %}
{{ field.label }}: {{ form.value(field.name)|e }}
{% endfor %}

View File

@ -1,21 +0,0 @@
<div class="alert">{{ form.message }}</div>
<form name="{{ form.name }}"
action="{{ uri.rootUrl ~ (form.action|default(page.route)) }}"
method="{{ form.method|upper|default('POST') }}">
{% 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>