connect_confirm.html.twig 1.2 KB

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