{% extends 'UpdoonAppBundle::base_private_extension.html.twig' %} {% block title %}{{ parent() }}Kunden • Hinzufügen{% endblock %} {% block content %} {% if customer_add_form.vars.errors is not empty %}
Error: {{ customer_add_form.vars.errors|replace({'ERROR: ': ''}) }}
{% endif %} {% for message in app.session.flashbag.get('success') %}
Der Kunde {{ message.company }} wurde angelegt.
{% endfor %} {{ form_start(customer_add_form, {'attr' : {'class' : 'ui form'}}) }}
Hinzufügen

Allgemeine Daten

{% if customer_add_form.first_filter_account.vars.errors is not empty %}
Error: {{ customer_add_form.first_filter_account.vars.errors|replace({'ERROR: ': ''}) }}
{% endif %} {{ form_widget(customer_add_form.first_filter_account, {attr: {'class': 'ui fluid dropdown'}}) }}
{% if customer_add_form.second_filter_account.vars.errors is not empty %}
Error: {{ customer_add_form.second_filter_account.vars.errors|replace({'ERROR: ': ''}) }}
{% endif %}
{{ form_widget(customer_add_form.second_filter_account, {attr: {'class': 'ui fluid dropdown', 'data-id': 'pm-2'}}) }}
{% if customer_add_form.contact_data_managers.vars.errors is not empty %}
Error: {{ customer_add_form.contact_data_managers.vars.errors|replace({'ERROR: ': ''}) }}
{% endif %} {{ form_widget(customer_add_form.contact_data_managers, {attr: {'class': 'ui multiple search selection dropdown'}}) }}
{% if customer_add_form.implementer_account.vars.errors is not empty %}
Error: {{ customer_add_form.implementer_account.vars.errors|replace({'ERROR: ': ''}) }}
{% endif %} {{ form_widget(customer_add_form.implementer_account, {attr: {'class': 'ui fluid dropdown'}}) }}
{% if customer_add_form.lastname.vars.errors is not empty %}
Error: {{ customer_add_form.lastname.vars.errors|replace({'ERROR: ': ''}) }}
{% endif %}
{{ form_widget(customer_add_form.lastname, {'attr': {'placeholder' : 'Nachname'}}) }}
{% if customer_add_form.firstname.vars.errors is not empty %}
Error: {{ customer_add_form.firstname.vars.errors|replace({'ERROR: ': ''}) }}
{% endif %}
{{ form_widget(customer_add_form.firstname, {'attr': {'placeholder' : 'Vorname'}}) }}
{% if customer_add_form.company.vars.errors is not empty %}
Error: {{ customer_add_form.company.vars.errors|replace({'ERROR: ': ''}) }}
{% endif %}
{{ form_widget(customer_add_form.company, {'attr': {'placeholder' : 'Firma'}}) }}
{% if customer_add_form.addresses.0.addition.vars.errors is not empty %}
Error: {{ customer_add_form.addresses.0.addition.vars.errors|replace({'ERROR: ': ''}) }}
{% endif %}
{{ form_widget(customer_add_form.addresses.0.addition, {'attr': {'placeholder' : 'Adresszusatz'}}) }}
{% if customer_add_form.addresses.0.street.vars.errors is not empty %}
Error: {{ customer_add_form.addresses.0.street.vars.errors|replace({'ERROR: ': ''}) }}
{% endif %} {% if customer_add_form.addresses.0.housenumber.vars.errors is not empty %}
Error: {{ customer_add_form.addresses.0.housenumber.vars.errors|replace({'ERROR: ': ''}) }}
{% endif %}
{{ form_widget(customer_add_form.addresses.0.street, {'attr': {'placeholder' : 'Straße'}}) }}
{{ form_widget(customer_add_form.addresses.0.housenumber, {'attr': {'placeholder' : 'Hausnummer'}}) }}
{% if customer_add_form.addresses.0.zip.vars.errors is not empty %}
Error: {{ customer_add_form.addresses.0.zip.vars.errors|replace({'ERROR: ': ''}) }}
{% endif %} {% if customer_add_form.addresses.0.city.vars.errors is not empty %}
Error: {{ customer_add_form.addresses.0.city.vars.errors|replace({'ERROR: ': ''}) }}
{% endif %} {% if customer_add_form.addresses.0.country.vars.errors is not empty %}
Error: {{ customer_add_form.addresses.0.country.vars.errors|replace({'ERROR: ': ''}) }}
{% endif %}
{{ form_widget(customer_add_form.addresses.0.zip, {'attr': {'placeholder' : 'PLZ'}}) }}
{{ form_widget(customer_add_form.addresses.0.city, {'attr': {'placeholder' : 'Ort'}}) }}
{{ form_widget(customer_add_form.addresses.0.country, {attr: {'class': 'ui fluid dropdown'}}) }}
{% if customer_add_form.phoneNumbers.0.country_prefix.vars.errors is not empty %}
Error: {{ customer_add_form.phoneNumbers.0.country_prefix.vars.errors|replace({'ERROR: ': ''}) }}
{% endif %} {% if customer_add_form.phoneNumbers.0.county_prefix.vars.errors is not empty %}
Error: {{ customer_add_form.phoneNumbers.0.county_prefix.vars.errors|replace({'ERROR: ': ''}) }}
{% endif %} {% if customer_add_form.phoneNumbers.0.number.vars.errors is not empty %}
Error: {{ customer_add_form.phoneNumbers.0.number.vars.errors|replace({'ERROR: ': ''}) }}
{% endif %}
{{ form_widget(customer_add_form.phoneNumbers.0.country_prefix, {'attr': {'placeholder' : '49'}}) }}
{{ form_widget(customer_add_form.phoneNumbers.0.county_prefix, {'attr': {'placeholder' : 'Vorwahl'}}) }}
{{ form_widget(customer_add_form.phoneNumbers.0.number, {'attr': {'placeholder' : 'Telefonnummer'}}) }}
{% if customer_add_form.phoneNumbers.1.country_prefix.vars.errors is not empty %}
Error: {{ customer_add_form.phoneNumbers.1.country_prefix.vars.errors|replace({'ERROR: ': ''}) }}
{% endif %} {% if customer_add_form.phoneNumbers.1.county_prefix.vars.errors is not empty %}
Error: {{ customer_add_form.phoneNumbers.1.county_prefix.vars.errors|replace({'ERROR: ': ''}) }}
{% endif %} {% if customer_add_form.phoneNumbers.1.number.vars.errors is not empty %}
Error: {{ customer_add_form.phoneNumbers.1.number.vars.errors|replace({'ERROR: ': ''}) }}
{% endif %}
{{ form_widget(customer_add_form.phoneNumbers.1.country_prefix, {'attr': {'placeholder' : '49'}}) }}
{{ form_widget(customer_add_form.phoneNumbers.1.county_prefix, {'attr': {'placeholder' : 'Vorwahl'}}) }}
{{ form_widget(customer_add_form.phoneNumbers.1.number, {'attr': {'placeholder' : 'Faxnummer'}}) }}
{% if customer_add_form.website.vars.errors is not empty %}
Error: {{ customer_add_form.website.vars.errors|replace({'ERROR: ': ''}) }}
{% endif %}
{{ form_widget(customer_add_form.website, {'attr': {'placeholder' : 'Webseite'}}) }}
{% if customer_add_form.internalid.vars.errors is not empty %}
Error: {{ customer_add_form.internalid.vars.errors|replace({'ERROR: ': ''}) }}
{% endif %}
{{ form_widget(customer_add_form.internalid, {'attr': {'placeholder' : 'Interne KundenID'}}) }}
{% for contact in customer_add_form.contacts %}

{{ loop.index }}. Ansprechpartner

{% if contact.lastname.vars.errors is not empty %}
Error: {{ contact.lastname.vars.errors|replace({'ERROR: ': ''}) }}
{% endif %}
{{ form_widget(contact.lastname, {'attr': {'placeholder' : 'Nachname'}}) }}
{% if contact.firstname.vars.errors is not empty %}
Error: {{ contact.firstname.vars.errors|replace({'ERROR: ': ''}) }}
{% endif %}
{{ form_widget(contact.firstname, {'attr': {'placeholder' : 'Vorname'}}) }}
{% if contact.email.vars.errors is not empty %}
Error: {{ contact.email.vars.errors|replace({'ERROR: ': ''}) }}
{% endif %}
{{ form_widget(contact.email, {'attr': {'placeholder' : 'E-Mail Adresse'}}) }}
{% if contact.phoneNumbers.0.country_prefix.vars.errors is not empty %}
Error: {{ contact.phoneNumbers.0.country_prefix.vars.errors|replace({'ERROR: ': ''}) }}
{% endif %} {% if contact.phoneNumbers.0.county_prefix.vars.errors is not empty %}
Error: {{ contact.phoneNumbers.0.county_prefix.vars.errors|replace({'ERROR: ': ''}) }}
{% endif %} {% if contact.phoneNumbers.0.number.vars.errors is not empty %}
Error: {{ contact.phoneNumbers.0.number.vars.errors|replace({'ERROR: ': ''}) }}
{% endif %}
{{ form_widget(contact.phoneNumbers.0.country_prefix, {'attr': {'placeholder' : '49'}}) }}
{{ form_widget(contact.phoneNumbers.0.county_prefix, {'attr': {'placeholder' : 'Vorwahl'}}) }}
{{ form_widget(contact.phoneNumbers.0.number, {'attr': {'placeholder' : 'Telefonnummer'}}) }}
{% endfor %}
Suchparameter
{% for searchParameter in customer_add_form.searchParameters %}
{% if searchParameter.vars.errors is not empty %}
{{ searchParameter.vars.errors }}
{% endif %} x {{ form_widget(searchParameter) }}
{% endfor %}
Google Alerts Suchparameter
{% for googleAlertsSearchParameter in customer_add_form.googleAlertsSearchParameters %}
{% if googleAlertsSearchParameter.vars.errors is not empty %}
{{ googleAlertsSearchParameter.vars.errors }}
{% endif %} x {{ form_widget(googleAlertsSearchParameter) }}
{% endfor %}
Google Alerts Suchparameter hinzufügen
Länderauswahl
{% for country in customer_add_form.countries %}
{% if country.vars.errors is not empty %}
{{ country.vars.errors }}
{% endif %} x {{ form_widget(country, {'attr' : {'class' : 'dropdown-widget'}}) }}
{% endfor %}
Land hinzufügen
{{ form_widget(customer_add_form.submit, {'attr' : {'class' : 'ui updoon submit button'}, 'label' : 'Kunde anlegen'}) }} {{ form_end(customer_add_form) }} {% endblock %} {% block javascripts %} {{ parent() }} {% javascripts '%kernel.root_dir%/Resources/js/search-param-handler.js' '%kernel.root_dir%/Resources/js/google-alerts-search-param-handler.js' '%kernel.root_dir%/Resources/js/countriesListManager.js' filter='uglifyjs2' %} {% endjavascripts %} {% endblock %}