templates/security/registration/register.html.twig line 18

Open in your IDE?
  1. {% extends 'base.html.twig' %}
  2. {% block title %}Registrierung{% endblock %}
  3. {% block content %}
  4. <div class="container-3xl my-5">
  5. <div class="row">
  6. <div class="col-12 mb-5">
  7. <div class="d-flex align-items-center justify-content-between">
  8. <h1 class="ornament-with-child">{{ 'register.page.headline'|resolve }}</h1>
  9. <a href="{{ path('index') }}" class="d-block border px-3 text-reset text-decoration-none py-2 border-dark">Zurück</a>
  10. </div>
  11. </div>
  12. <div class="col-12 col-md-6">
  13. <div class="p-5 bg-lightgrey">
  14. <h3 class="mb-4">{{ 'register.page.box.headline'|resolve }}</h3>
  15. <div class="mb-4">{{ 'register.page.box.description'|resolve }}</div>
  16. {{ form_errors(registrationForm) }}
  17. {{ form_start(registrationForm) }}
  18. <div class="row">
  19. <div class="col-12 col-lg-6 d-flex flex-column">
  20. {{ form_label(registrationForm.firstname, 'Vorname *') }}
  21. {{ form_widget(registrationForm.firstname, { attr: { class: 'mb-3 p-2 border-0' } }) }}
  22. {{ form_errors(registrationForm.firstname) }}
  23. </div>
  24. <div class="col-12 col-lg-6 d-flex flex-column">
  25. {{ form_label(registrationForm.lastname, 'Name *') }}
  26. {{ form_widget(registrationForm.lastname, { attr: { class: 'mb-3 p-2 border-0' } }) }}
  27. {{ form_errors(registrationForm.lastname) }}
  28. </div>
  29. <div class="col-12 d-flex flex-column">
  30. {{ form_label(registrationForm.email, 'E-Mail *') }}
  31. {{ form_widget(registrationForm.email, { attr: { class: 'mb-3 p-2 border-0' } }) }}
  32. {{ form_errors(registrationForm.email) }}
  33. </div>
  34. <div class="col-12 d-flex flex-column">
  35. {{ form_label(registrationForm.plainPassword, 'Passwort *') }}
  36. {{ form_widget(registrationForm.plainPassword, {
  37. label: 'Password',
  38. attr: { class: 'mb-3 p-2 border-0' }
  39. }) }}
  40. {{ form_errors(registrationForm.plainPassword) }}
  41. </div>
  42. <div class="col-12 col-sm-6 d-flex flex-column">
  43. {{ form_label(registrationForm.addressBook.street, 'Straße *') }}
  44. {{ form_errors(registrationForm.addressBook.street) }}
  45. {{ form_widget(registrationForm.addressBook.street, { attr: { class: 'mb-3 p-2 border-0' } }) }}
  46. </div>
  47. <div class="col-12 col-sm-6 d-flex flex-column">
  48. {{ form_label(registrationForm.addressBook.houseNumber, 'Hausnummer *') }}
  49. {{ form_errors(registrationForm.addressBook.houseNumber) }}
  50. {{ form_widget(registrationForm.addressBook.houseNumber, { attr: { class: 'mb-3 p-2 border-0' } }) }}
  51. </div>
  52. <div class="col-12 col-sm-6 d-flex flex-column">
  53. {{ form_label(registrationForm.addressBook.zip, 'PLZ *') }}
  54. {{ form_errors(registrationForm.addressBook.zip) }}
  55. {{ form_widget(registrationForm.addressBook.zip, { attr: { class: 'mb-3 p-2 border-0' } }) }}
  56. </div>
  57. <div class="col-12 col-sm-6 d-flex flex-column">
  58. {{ form_label(registrationForm.addressBook.city, 'Ort *') }}
  59. {{ form_errors(registrationForm.addressBook.city) }}
  60. {{ form_widget(registrationForm.addressBook.city, { attr: { class: 'mb-3 p-2 border-0' } }) }}
  61. </div>
  62. <div class="col-12 col-sm-6 d-flex flex-column">
  63. {{ form_label(registrationForm.addressBook.phoneNumber, 'Telefon') }}
  64. {{ form_errors(registrationForm.addressBook.phoneNumber) }}
  65. {{ form_widget(registrationForm.addressBook.phoneNumber, { attr: { class: 'mb-3 p-2 border-0' } }) }}
  66. </div>
  67. <div class="col-12 col-sm-6 d-flex flex-column">
  68. {{ form_label(registrationForm.addressBook.ikNumber, 'IK Nummer') }}
  69. {{ form_errors(registrationForm.addressBook.ikNumber) }}
  70. {{ form_widget(registrationForm.addressBook.ikNumber, { attr: { class: 'mb-3 p-2 border-0' } }) }}
  71. </div>
  72. {% if tenant.config.enableCustomerNumber %}
  73. <div class="col-12 col-sm-6 d-flex flex-column">
  74. {{ form_label(registrationForm.addressBook.customerNumber, 'Kundennummer') }}
  75. {{ form_errors(registrationForm.addressBook.customerNumber) }}
  76. {{ form_widget(registrationForm.addressBook.customerNumber, { attr: { class: 'mb-3 p-2 border-0' } }) }}
  77. </div>
  78. {% endif %}
  79. <div class="col-12 col-sm-6 d-flex flex-column">
  80. {{ form_label(registrationForm.addressBook.state, 'Bundesland') }}
  81. {{ form_errors(registrationForm.addressBook.state) }}
  82. {{ form_widget(registrationForm.addressBook.state, { attr: { class: 'mb-3 p-2 border-0' } }) }}
  83. </div>
  84. <div class="col-12 d-block">
  85. {{ form_widget(registrationForm.agreeToTiInfos, { attr: { class: 'border border-dark mb-3 p-2' } }) }}
  86. {{ form_label(registrationForm.agreeToTiInfos) }}
  87. </div>
  88. </div>
  89. {{ form_end(registrationForm) }}
  90. </div>
  91. </div>
  92. <div class="col-12 col-md-6 mt-5 mt-md-0">
  93. {{ 'register.page.description'|resolve }}
  94. </div>
  95. </div>
  96. </div>
  97. {% endblock %}