templates/bundles/SyliusShopBundle/Account/dashboard.html.twig line 1

Open in your IDE?
  1. {% extends '@SyliusShop/Account/layout.html.twig' %}
  2. {% block breadcrumb %}
  3. <div class="ui breadcrumb">
  4. <a href="{{ path('sylius_shop_homepage') }}" class="section">{{ 'sylius.ui.home'|trans }}</a>
  5. <div class="divider"> / </div>
  6. <div class="active section">{{ 'sylius.ui.my_account'|trans }}</div>
  7. </div>
  8. {% endblock %}
  9. {% block subcontent %}
  10. <h1 class="ui dividing header">
  11. {{ 'sylius.ui.my_account'|trans }}
  12. <div class="sub header">{{ 'sylius.ui.manage_your_personal_information_and_preferences'|trans }}</div>
  13. </h1>
  14. {{ sonata_block_render_event('sylius.shop.account.dashboard.after_content_header', {'customer': customer}) }}
  15. <div class="ui large list" id="customer-information">
  16. <div class="item">
  17. {{ customer.fullName }}
  18. </div>
  19. <div class="item">
  20. <strong>
  21. {{ customer.email }}
  22. </strong>
  23. </div>
  24. <div class="item">
  25. {% if customer.user.verified %}
  26. <span class="ui icon green basic label"><i class="checkmark icon"></i> {{ 'sylius.ui.verified'|trans }}</span>
  27. {% else %}
  28. <span class="ui icon red basic label"><i class="remove icon"></i> {{ 'sylius.ui.not_verified'|trans }}</span>
  29. {% endif %}
  30. </div>
  31. </div>
  32. {{ sonata_block_render_event('sylius.shop.account.dashboard.after_information', {'customer': customer}) }}
  33. <div class="ui text menu">
  34. <a href="{{ path('sylius_shop_account_profile_update') }}" class="item"><i class="pencil icon"></i> {{ 'sylius.ui.edit'|trans }}</a>
  35. <a href="{{ path('sylius_shop_account_change_password') }}" class="item"><i class="lock icon"></i> {{ 'sylius.ui.change_password'|trans }}</a>
  36. {% if not customer.user.verified %}
  37. <form class="item" id="verification-form" action="{{ path('sylius_shop_user_request_verification_token') }}" method="post">
  38. <button type="submit" class="ui basic icon mini button">
  39. <i class="checkmark icon"></i> {{ 'sylius.ui.verify'|trans }}
  40. </button>
  41. </form>
  42. {% endif %}
  43. {% include '@SyliusShop/Account/user_delete_confirm.html.twig' %}
  44. </div>
  45. {% endblock %}