{{ form_start(form) }}
{{ form_label(form.parentRegion) }} {{ form_widget(form.parentRegion) }}
{{ form_label(form.name) }} {{ form_widget(form.name) }}
{{ form_label(form.slug) }} {{ form_widget(form.slug) }}
{{ form_label(form.isAlias, 'Is it an alias of parent region ?', {'label_attr': {'class': 'sp_radio__main-label'}}) }}
{% for key, choice in form.isAlias %} {% endfor %} {% do form.isAlias.setRendered %}
{{ form_label(form.anchor, 'Alias anchor') }} {{ form_widget(form.anchor) }}
{{ form_label(form.description) }} {{ form_widget(form.description) }}
{% for key, choice in form.icon %} {% endfor %} {% do form.icon.setRendered %}
{{ form_label(form.mapBackground, 'Is region active ?', {'label_attr': {'class': 'sp_radio__main-label'}}) }}
{% for key, choice in form.mapBackground %} {% endfor %} {% do form.mapBackground.setRendered %}
{% if route|end_with('_new') %}
{{ form_label(form.gridHeight) }} {{ form_widget(form.gridHeight) }}
{{ form_label(form.gridWidth) }} {{ form_widget(form.gridWidth) }}
{% endif %}
{{ form_label(form.version) }} {{ form_widget(form.version) }}
{{ form_label(form.sortOrder) }} {{ form_widget(form.sortOrder) }}
{{ form_label(form.isActive, 'Is region active ?', {'label_attr': {'class': 'sp_radio__main-label'}}) }}
{% for key, choice in form.isActive %} {% endfor %} {% do form.isActive.setRendered %}
Cancel
{{ form_end(form) }}