sensio/SensioGeneratorBundle — Issue #85: PERSONALISE VIEW in SKELETON
Author: DRAKUN
Created: 2011-12-13 16:19:41+00:00
State: open

Hi,
i want to use a loop for in new.html.twig
but i have message variables "fields" does not exists
{{ '{% block content %}' }}

{{ entity }} creation

x
{{ "{{ 'aler.error'|trans }}" }}{{ "{{ form_errors(form) }}" }}

{% include 'views/others/form.html.twig' %}
{%- for field in fields %}

{{ '{{ entity.'~ field|replace({'_': ''}) ~' }}' }}
{{"{{ form_label(form.'{{ entity.'"~ field|replace({'_': ''}) ~"' }}') }}" }}

{{"{{ form_widget(form.'{{ entity.'"~ field|replace({'_': ''}) ~"' }}') }}" }}
{{"{{ form_errors(form.'{{ entity.'"~ field|replace({'_': ''}) ~"' }}') }}" }}

{%- endfor %}

{{ "{{'boutton.new'|trans}}" }}
{{ "{{'boutton.reset'|trans}}" }}

{{ '{% endblock content %}' }}