{% set layout = userData.role != 'ROLE_DISTRIBUTOR' ? 'base.html.twig' : 'layout-distributors.html.twig' %} {% extends layout %} {% block title %}Customer Form - NIS {% endblock %} {% block stylesheets %} {% endblock %} {% block body %} {% if userData.role != 'ROLE_DISTRIBUTOR' %} {{ include("mx/nav_menu.twig", {option:'customers'}) }} {% else %} {{ include("distributors/nav_menu.twig", {option:'addClient'}) }} {% endif %}
{% if userData.role == "ROLE_DISTRIBUTOR" %} {% if disabledOnEdit %}

View Client

{% else %}

Add Client

{% endif %} {% else %}

Customer

{% endif %}
{# loader por si existe el customerId #}
Loading...
{% if disabledOnEdit == false or userData.role !='ROLE_DISTRIBUTOR' %} {{ form_widget(form.ownerType) }} {% else %} {% endif %}
{{ form_widget(form.contractingName, {'attr': {class: 'form-control', 'placeholder':'Contracting Name'}}) }}
{{ form_widget(form.firstName,{'attr': {class: 'form-control', 'placeholder':'First Name'}}) }}
{{ form_widget(form.lastName,{'attr': {class: 'form-control', 'placeholder':"Father's Last Name"}}) }}
{{ form_widget(form.secondLastName,{'attr':{class: 'form-control', 'placeholder':"Mother's Last Name"}}) }}
{{ form_widget(form.company,{'attr': {class: 'form-control', 'placeholder':'Company'}}) }}
{{ form_widget(form.otherInsured, {'attr':{class: 'form-control', 'placeholder':"Other Insured Name"}}) }}
{{ form_widget(form.birthday,{'attr': {class: 'form-control', 'placeholder':'mm/dd/YYYY', 'maxlength' : '10'}}) }}
{{ form_widget(form.email,{'attr': {class: 'form-control', 'placeholder':'example@company.com', 'class':'validate'}}) }}
{{ form_widget(form.nationality,{'attr': {'class':'validate'}}) }}
{{ form_widget(form.gender,{'attr': {'class':'validate'}}) }}
{{ form_widget(form.phone,{'attr': {class: 'form-control phone-format', 'placeholder':'Ex. 322-123-4567'}}) }}
{{ form_widget(form.phone2,{'attr': {class: 'form-control phone-format', 'placeholder':'Ex. 332-789-525'}}) }}
{{ form_widget(form.occupation,{'attr': {class: 'form-control', 'placeholder':'Occupation'}}) }}
{{ form_widget(form.rfc,{'attr': {class: 'form-control', 'placeholder':'RFC'}}) }}
{{ form_widget(form.reference) }} {{ form_widget(form.aboutUsList) }}
{{ form_widget(form.auxAboutUs, {attr: {class: 'form-control'}}) }}
{{ form_widget(form.saleChannel, {attr: {class: 'form-control'}})}}
{{ form_widget(form.salePerson,{'attr': {class: 'form-control', 'placeholder':'Client, Distributor link, Executive Name'}}) }}
{{ form_widget(form.comments,{'attr':{'class':' form-control', 'length':'120', 'rows':'2'}})}}
{{ form_widget(form.address,{'attr': {class: 'form-control', 'placeholder':'Address'}}) }}
{{ form_widget(form.postalCode,{'attr': {class: 'form-control', 'placeholder':'Ex. 40668'}}) }}
{{ form_widget(form.county,{'attr': {class: 'form-control', 'placeholder':'County or Neighborhood', 'class' : 'autocomplete'}}) }}
{{ form_widget(form.city, {'attr': {class: 'form-control', 'placeholder':'Ex. Puerto Vallarta'}}) }}
{{ form_widget(form.state, {'attr': {class: 'form-control', 'placeholder':'Ex. Jalisco'}}) }}
{% if disabledOnEdit == false or userData.role !='ROLE_DISTRIBUTOR' %} {{ form_widget(form.country, {'attr': {'placeholder':'México'}}) }} {% else %} {% endif %}
{{ form_widget(form.statusOfRecord) }}
{% endblock %} {% block javascripts %} {% if userData.role !='ROLE_DISTRIBUTOR' %} {% endif %} {% endblock %}