{% extends 'layout.html.twig' %} {% set breadcrumb = buildBreadcrumb([{'route': 'app_wishlist_index', 'trans': 'menu.wishlists'}], wishlist) %} {% block title %} {{ renderTitle(breadcrumb) }} {% endblock %} {% block breadcrumb %} {{ renderBreadcrumb(breadcrumb) }} {% endblock %} {% block meta %} {% if context == 'user' %} {{ include('App/_partials/_meta.html.twig', { 'title': renderTitle(breadcrumb), 'description': 'menu.collections_user'|trans({'%username%': app.request.get('username')}), 'image': wishlist.image }) }} {% else %} {{ parent() }} {% endif %} {% endblock %} {% block content %}
{% if wishlist.image != null %} {% else %} {{ wishlist.name|first|upper }} {% endif %}

{{wishlist.name}}

{% if context == 'default' %} {% if isFeatureEnabled('history') %} {% endif %} {% endif %}
{% if children is not empty %}

{{ 'title.wishlist_children'|trans }}

{{ include('App/Wishlist/_list.html.twig', {'wishlists': children}) }}
{% endif %} {% if wishes is not empty %}

{{ 'title.wishes'|trans }}

{% if context == 'default' %} {% endif %} {% for wish in wishes|naturalSorting %} {% if context == 'default' %} {% endif %} {% endfor %}
{{ 'label.image'|trans }} {{ 'label.name'|trans }} {{ 'label.price'|trans }} {{ 'label.name'|trans }}{{ 'label.actions'|trans }}
{% if wish.image %} {% else %} {% endif %} {% if wish.url is not null %} {{ wish.name }} {% else %} {{wish.name}} {% endif %} {% if wish.price is not null %} {% if wish.price is not null %} {{ wish.price }} {% if wish.currency is not null %}  {{ getCurrencySymbol(wish.currency) }} {% endif %} {% endif %} {% endif %} {{ wish.comment }}
{% endif %}
{% endblock %} {% block footer %} {{ renderFooter(wishlist) }} {% endblock %} {% block modals %} {% if context == 'default' %} {{ include('App/_partials/_modal/_share.html.twig', {'entity': wishlist, 'route': url('app_user_wishlist_show', {id: wishlist.id, username: app.user.username})}) }} {{ include('App/_partials/_modal/_delete.html.twig', {'id': 'delete', 'route': url('app_wishlist_delete', {id: wishlist.id}), transKey: 'message.delete.wishlist'}) }} {% for wish in wishes %} {{ include('App/_partials/_modal/_delete.html.twig', {'id': 'delete-' ~ wish.id , 'route': url('app_wish_delete', {id: wish.id}), transKey: 'message.delete.wish'}) }} {% endfor %} {% endif %} {% endblock %}