{% if form is defined %}
  {% form_theme form with aa_admin_config.form_themes|default([]) %}
{% endif %}

{% if menuItemId is defined and menuItemId is not empty and item is defined and item is not empty %}
  {{ form_start(form, {action: admin_path(item, 'update', {menuId: menuId}) }) }}
{% else %}
  {{ form_start(form, {action: admin_path(item, 'create', {menuId: menuId}) }) }}
{% endif %}
{{ form_widget(form) }}
<button type="submit" class="btn btn-primary">{{ 'submit'|trans({}, 'aa_admin') }}</button>
{{ form_end(form) }}