{% form_theme form with easyadmin_config('design.form_theme') only %}
{% set _entity_config = easyadmin_entity(app.request.query.get('entity')) %}
{% trans_default_domain _entity_config.translation_domain %}
{% set _trans_parameters = { '%entity_name%': _entity_config.name|trans, '%entity_label%': _entity_config.label|trans } %}
{% extends '@!EasyAdmin/default/new.html.twig' %}
{% block content_breadcrumb_link %}
{% set _default_title = 'list.page_title'|trans(_trans_parameters, 'EasyAdminBundle') %}
<li>
<a href="#">
{{ (_entity_config.list.title is defined ? _entity_config.list.title|trans(_trans_parameters) : _default_title)|raw }}
</a>
</li>
<li class="active">{{ "action.add"|trans }}</li>
{% endblock content_breadcrumb_link %}
{% block content_header_title %}
<i class="fa fa-{{ _entity_config.icon is defined ? _entity_config.icon : "cog" }}"></i>
{% apply spaceless %}
{% set _default_title = 'list.page_title'|trans(_trans_parameters, 'EasyAdminBundle') %}
{{ _entity_config.list.title is defined ? _entity_config.list.title|trans(_trans_parameters) : _default_title }}
{% endapply %}
{% endblock %}
{% block main %}
<div class="panel">
{% block entity_form %}
<div class="panel-heading">
<div class="panel-control">
{{- block('global_actions') -}}
</div>
<h3 class="panel-title">{{- block('content_title') -}}</h3>
</div>
{{ form(form) }}
{% endblock entity_form %}
</div>
{% endblock %}