templates/network/profile/widgets/profile_widget_address.html.twig line 1

Open in your IDE?
  1. {% set editlink = user.id is defined and profile.id == user.id ? path('profile_admin_index') : null
  2. %}
  3. {% embed 'network/widget/widget.html.twig'
  4.   with { title: 'Details und Kontakt'|trans, editlink: editlink }
  5. %}
  6.   {% block content %}
  7.     <div class="flex">
  8.       <div class="w-4 mr-4">
  9.         {% include 'icons/user.svg.twig' with { class: 'w-4 h-4' } %}
  10.       </div>
  11.       <address class="flex flex-col not-italic leading-snug">
  12.         <span class="font-medium">{{ profile.name }}</span>
  13.         {% if
  14.           profile.profileType == 'company'
  15.             or (user is defined and user.id is defined and user.id == profile.id) %}
  16.           <span>{{ profile.street }} &nbsp; {{ profile.housenumber }}</span>
  17.           <span>{{ profile.postalCode }} {{ profile.city }}</span>
  18.           <span>{{ profile.country|country_name }}</span>
  19.         {% endif %}
  20.       </address>
  21.     </div>
  22.   {% endblock %}
  23. {% endembed %}