sensio/SensioGeneratorBundle — Issue #83: variables "form" does not exit
Author: DRAKUN
Created: 2011-12-11 21:08:21+00:00
State: open

hello, i have problem

{{ '{% block content %}' }}

{{ entity }} creation

x
{{ "{{ form_errors(form) }}" }}

{%- for field in form.fields %}

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

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

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

{%- endfor %}

{{ "{{ form_rest(form) }}" }}

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

{% set hide_edit, hide_delete = true, true %}
{% include 'views/others/record_actions.html.twig' %}
{{ '{% endblock content %}' }}