src/Platform/ControlPanelBundle/Resources/views/Dashboard/Tenant/includes/navbar.html.twig line 1

Open in your IDE?
  1. {% if app.request.attributes.get('primary') is not empty and app.request.attributes.get('primary') in constant('Cms\\TenantBundle\\Entity\\TenantTypeEmbeddable::PRIMARY') and constant('Cms\\TenantBundle\\Entity\\TenantTypeEmbeddable::SECONDARY')[app.request.attributes.get('primary')] is not empty %}
  2.     {% embed '@ui/common/navbars/default.html.twig' with {
  3.         title: 'Types'
  4.     } %}
  5.         {% block items %}
  6.             {% include '@ui/common/navbars/items/default.html.twig' with {
  7.                 text: 'All',
  8.                 link: path(routes.list, {
  9.                     primary: app.request.attributes.get('primary')
  10.                 }),
  11.                 active: (app.request.attributes.get('secondary') is empty)
  12.             } %}
  13.                 {% for secondary in constant('Cms\\TenantBundle\\Entity\\TenantTypeEmbeddable::SECONDARY')[app.request.attributes.get('primary')] %}
  14.                     {% include '@ui/common/navbars/items/default.html.twig' with {
  15.                         text: 'campussuite.cms.tenant.types.secondary.%s.%s'|format(app.request.attributes.get('primary'), secondary)|trans,
  16.                         link: path(routes.list, {
  17.                             primary: app.request.attributes.get('primary'),
  18.                             secondary: secondary
  19.                         }),
  20.                         active: (app.request.attributes.get('secondary') is same as(secondary))
  21.                     } %}
  22.                 {% endfor %}
  23.         {% endblock %}
  24.     {% endembed %}
  25. {% endif %}