templates/activation/userform.html.twig line 1

Open in your IDE?
  1. {% extends 'base.html.twig' %}
  2. {% block title %}GRETA Aktivierung{% endblock %}
  3. {% block javascripts %}
  4.     {{ parent() }}
  5.     <script type="text/javascript" src="{{ asset('intl-tel-input-master/build/js/intlTelInput-jquery.min.js') }}"></script>
  6.     <script type="text/javascript">
  7.         $(document).ready(function(){
  8.             $('[type="tel"]').each(function(index) {
  9.                 console.log($(this));
  10.                 $(this).intlTelInput({
  11.                     // whether or not to allow the dropdown
  12.                     allowDropdown: true,
  13.                     // if there is just a dial code in the input: remove it on blur, and re-add it on focus
  14.                     autoHideDialCode: true,
  15.                     // add a placeholder in the input with an example number for the selected country
  16.                     autoPlaceholder: "polite",
  17.                     // modify the auto placeholder
  18.                     customPlaceholder: null,
  19.                     // append menu to specified element
  20.                     dropdownContainer: null,
  21.                     // don't display these countries
  22.                     excludeCountries: [],
  23.                     // format the input value during initialisation and on setNumber
  24.                     formatOnDisplay: true,
  25.                     // geoIp lookup function
  26.                     geoIpLookup: true,
  27.                     // inject a hidden input with this name, and on submit, populate it with the result of getNumber
  28.                     // hiddenInput: "phone-number-hidden",
  29.                     // initial country
  30.                     initialCountry: "auto",
  31.                     // localized country names e.g. { 'de': 'Deutschland' }
  32.                     localizedCountries: null,
  33.                     // don't insert international dial codes
  34.                     nationalMode: false,
  35.                     // display only these countries
  36.                     onlyCountries: [],
  37.                     // number type to use for placeholders
  38.                     placeholderNumberType: "MOBILE",
  39.                     // the countries at the top of the list. defaults to united states and united kingdom
  40.                     preferredCountries: ["at", "ch", "de", "gb", "nl"],
  41.                     // display the country dial code next to the selected flag so it's not part of the typed number
  42.                     separateDialCode: false,
  43.                     // specify the path to the libphonenumber script to enable validation/formatting
  44.                     utilsScript: "{{ asset('intl-tel-input-master/build/js/utils.js') }}"
  45.                 });
  46.             });
  47.         });
  48.     </script>
  49. {% endblock %}
  50. {% block stylesheets %}
  51.     {{ parent() }}
  52.     {#<link rel="stylesheet" href="{{ asset('BootstrapFormHelpers/dist/css/bootstrap-formhelpers.min.css') }}" />#}
  53.     <link rel="stylesheet" href="{{ asset('intl-tel-input-master/build/css/intlTelInput.min.css') }}" />
  54. {% endblock %}
  55. {% block body %}
  56.     <style>
  57.         .col-sm-2 {
  58.             width: 25% !important;
  59.         }
  60.         .col-sm-10 {
  61.             width: 75% !important;
  62.         }
  63.     </style>
  64.     <div class="container">
  65.         <div class="row">
  66.             <div class="col-md-5 col-md-offset-3">
  67.                 <h1 class="">{{ 'account.profile.create'|trans }}</h1>
  68.                 <br />
  69.                 {{ form_start(userdataForm, {'attr': {'class': 'astx'}}) }}
  70.                 {{ form_row(userdataForm.username) }}
  71.                 {{ form_row(userdataForm.plainPassword) }}
  72.                 <br/>
  73.                 {{ form_row(userdataForm.salutation) }}
  74.                 {{ form_row(userdataForm.title) }}
  75.                 {{ form_row(userdataForm.firstName) }}
  76.                 {{ form_row(userdataForm.lastName) }}
  77.                 {{ form_row(userdataForm.companyName) }}
  78.                 {{ form_row(userdataForm.addressStreetNo) }}
  79.                 {{ form_row(userdataForm.addressStreetAdd) }}
  80.                 {{ form_row(userdataForm.addressPostalCode) }}
  81.                 {{ form_row(userdataForm.addressCity) }}
  82.                 {{ form_row(userdataForm.addressCountry) }}
  83.                 {{ form_row(userdataForm.dateOfBirth) }}
  84.                 {{ form_row(userdataForm.emailAddress) }}
  85.                 <p><small><i class="glyphicon glyphicon-info-sign"></i> {{ 'Telefonnummer mit Ländervorwahl. Beispiel: +49 17712345678'|trans }}</small></p>
  86.                 {{ form_row(userdataForm.phoneNumber) }}
  87.                 {{ form_row(userdataForm.phoneNumber2, {
  88.                     'required': false
  89.                 }) }}
  90.                 {{ form_row(userdataForm.hasNewsletter, {
  91.                     'required': false,
  92.                     'label': 'account.profile.newsletter'|trans
  93.                 }) }}
  94.                 <small>* {{ 'account.profile.mandatory'|trans }}</small>
  95.                 <br />
  96.                 <br />
  97.                 <button type="submit" class="btn btn-primary" formnovalidate>{{ 'misc.form_send'|trans }}</button>
  98.                 <a href="{{ path('security_login') }}">{{ 'misc.form_abort'|trans }}</a>
  99.                 {{ form_end(userdataForm) }}
  100.             </div>
  101.         </div>
  102.     </div>
  103. {% endblock %}