{% extends 'base.html.twig' %}
{% block title %}GRETA Aktivierung{% endblock %}
{% block javascripts %}
{{ parent() }}
<script type="text/javascript" src="{{ asset('intl-tel-input-master/build/js/intlTelInput-jquery.min.js') }}"></script>
<script type="text/javascript">
$(document).ready(function(){
$('[type="tel"]').each(function(index) {
console.log($(this));
$(this).intlTelInput({
// whether or not to allow the dropdown
allowDropdown: true,
// if there is just a dial code in the input: remove it on blur, and re-add it on focus
autoHideDialCode: true,
// add a placeholder in the input with an example number for the selected country
autoPlaceholder: "polite",
// modify the auto placeholder
customPlaceholder: null,
// append menu to specified element
dropdownContainer: null,
// don't display these countries
excludeCountries: [],
// format the input value during initialisation and on setNumber
formatOnDisplay: true,
// geoIp lookup function
geoIpLookup: true,
// inject a hidden input with this name, and on submit, populate it with the result of getNumber
// hiddenInput: "phone-number-hidden",
// initial country
initialCountry: "auto",
// localized country names e.g. { 'de': 'Deutschland' }
localizedCountries: null,
// don't insert international dial codes
nationalMode: false,
// display only these countries
onlyCountries: [],
// number type to use for placeholders
placeholderNumberType: "MOBILE",
// the countries at the top of the list. defaults to united states and united kingdom
preferredCountries: ["at", "ch", "de", "gb", "nl"],
// display the country dial code next to the selected flag so it's not part of the typed number
separateDialCode: false,
// specify the path to the libphonenumber script to enable validation/formatting
utilsScript: "{{ asset('intl-tel-input-master/build/js/utils.js') }}"
});
});
});
</script>
{% endblock %}
{% block stylesheets %}
{{ parent() }}
{#<link rel="stylesheet" href="{{ asset('BootstrapFormHelpers/dist/css/bootstrap-formhelpers.min.css') }}" />#}
<link rel="stylesheet" href="{{ asset('intl-tel-input-master/build/css/intlTelInput.min.css') }}" />
{% endblock %}
{% block body %}
<style>
.col-sm-2 {
width: 25% !important;
}
.col-sm-10 {
width: 75% !important;
}
</style>
<div class="container">
<div class="row">
<div class="col-md-5 col-md-offset-3">
<h1 class="">{{ 'account.profile.create'|trans }}</h1>
<br />
{{ form_start(userdataForm, {'attr': {'class': 'astx'}}) }}
{{ form_row(userdataForm.username) }}
{{ form_row(userdataForm.plainPassword) }}
<br/>
{{ form_row(userdataForm.salutation) }}
{{ form_row(userdataForm.title) }}
{{ form_row(userdataForm.firstName) }}
{{ form_row(userdataForm.lastName) }}
{{ form_row(userdataForm.companyName) }}
{{ form_row(userdataForm.addressStreetNo) }}
{{ form_row(userdataForm.addressStreetAdd) }}
{{ form_row(userdataForm.addressPostalCode) }}
{{ form_row(userdataForm.addressCity) }}
{{ form_row(userdataForm.addressCountry) }}
{{ form_row(userdataForm.dateOfBirth) }}
{{ form_row(userdataForm.emailAddress) }}
<p><small><i class="glyphicon glyphicon-info-sign"></i> {{ 'Telefonnummer mit Ländervorwahl. Beispiel: +49 17712345678'|trans }}</small></p>
{{ form_row(userdataForm.phoneNumber) }}
{{ form_row(userdataForm.phoneNumber2, {
'required': false
}) }}
{{ form_row(userdataForm.hasNewsletter, {
'required': false,
'label': 'account.profile.newsletter'|trans
}) }}
<small>* {{ 'account.profile.mandatory'|trans }}</small>
<br />
<br />
<button type="submit" class="btn btn-primary" formnovalidate>{{ 'misc.form_send'|trans }}</button>
<a href="{{ path('security_login') }}">{{ 'misc.form_abort'|trans }}</a>
{{ form_end(userdataForm) }}
</div>
</div>
</div>
{% endblock %}