registration.html.twig 1.0 KB

123456789101112131415161718192021
  1. {% extends 'HWIOAuthBundle::layout.html.twig' %}
  2. {% block hwi_oauth_content %}
  3. <div class="col-xs-12">
  4. <h2 class="title">{{ 'header.register' | trans({'%name%': userInformation.realName}, 'HWIOAuthBundle') }}</h2>
  5. </div>
  6. <div class="col-md-6">
  7. {{ form_start(form, {'action': path('hwi_oauth_connect_registration', {'key': key}), 'attr': {'class': 'hwi_oauth_registration_register'}}) }}
  8. {{ form_widget(form) }}
  9. <div>
  10. <button type="submit" class="btn btn-primary">{{ 'connect.registration.submit'|trans({}, 'HWIOAuthBundle') }}</button>
  11. <a href="{{ path('hwi_oauth_connect') }}" class="btn btn-warning">{{ 'connect.registration.cancel' | trans({}, 'HWIOAuthBundle') }}</a>
  12. </div>
  13. {{ form_end(form) }}
  14. </div>
  15. <div class="col-md-6">
  16. {% if userInformation.profilePicture is not empty %}
  17. <img src="{{ userInformation.profilePicture }}" />
  18. {% endif %}
  19. </div>
  20. {% endblock hwi_oauth_content %}