{# Variables - form - groups - fields #} {% set halfSize = embedded is defined ? 6 : 4 %} {% set fullSize = embedded is defined ? 12 : 8 %} {% for key, group in groups %} {% if fields[group] is defined %} {% set groupFields = fields[group] %} {% if groupFields is not empty %}
{% if embedded is not defined %}

{{ ('mautic.lead.field.group.'~group)|trans }}

{% endif %}
{% if 'core' == group %}
{% if form.companyname is defined %}
{{ form_row(form.companyname) }}
{% endif %} {% if form.companyemail is defined %}
{{ form_row(form.companyemail) }}
{% endif %}

{% if form.companyaddress1 is defined or form.companyaddress2 is defined or form.companycity is defined or form.companystate is defined or form.companyzipcode is defined or form.companycountry is defined %}
{% if form.companyaddress1 is defined %}
{{ form_widget(form.companyaddress1, {'attr': {'placeholder': form.companyaddress1.vars.label}}) }}
{% endif %} {% if form.companyaddress2 is defined %}
{{ form_widget(form.companyaddress2, {'attr': {'placeholder': form.companyaddress2.vars.label}}) }}
{% endif %}
{% if form.companycity is defined %}
{{ form_widget(form.companycity, {'attr': {'placeholder': form.companycity.vars.label}}) }}
{% endif %} {% if form.companystate is defined %}
{{ form_widget(form.companystate, {'attr': {'placeholder': form.companystate.vars.label}}) }}
{% endif %}
{% if form.companyzipcode is defined %}
{{ form_widget(form.companyzipcode, {'attr': {'placeholder': form.companyzipcode.vars.label}}) }}
{% endif %} {% if form.companycountry is defined %}
{{ form_widget(form.companycountry, {'attr': {'placeholder': form.companycountry.vars.label}}) }}
{% endif %}
{{ form_row(form.score) }}
{{ form_row(form.owner) }}
{% endif %}
{% endif %}
{% for alias, field in groupFields %} {% if not form[alias].isRendered %}
{{ form_row(form[alias]) }}
{% endif %} {% endfor %}
{% if embedded is defined and not form['owner'].isRendered %}
{{ form_row(form.owner) }}
{% endif %}
{% endif %} {% endif %} {% endfor %}