Fix https://github.com/getgrav/grav-plugin-form/issues/91 forms not working as expected
Drop the form twig overrides as they break the forms, and don't really customise the output
This commit is contained in:
parent
359cd8cafc
commit
6ff958bf2f
4 changed files with 2 additions and 27 deletions
|
@ -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
|
||||
|
|
|
@ -1,3 +0,0 @@
|
|||
{% for field in form.fields %}
|
||||
<div><strong>{{ field.label }}</strong>: {{ form.value(field.name)|e }}</div>
|
||||
{% endfor %}
|
|
@ -1,3 +0,0 @@
|
|||
{% for field in form.fields %}
|
||||
{{ field.label }}: {{ form.value(field.name)|e }}
|
||||
{% endfor %}
|
|
@ -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>
|
Loading…
Reference in a new issue