{% set content = WorkZone.getContent(srt) %}
{# =========================== list feedbacks (validations) AND SHARES =============================== #}
{# result of BasketRepository::findActiveValidationByUser(me) #}
{# = I am participant, but i'm NOT the author #}
{# nb : list feedbacks AND shared ! #}
{% if content.get(constant('\\Alchemy\\Phrasea\\Helper\\WorkZone::VALIDATIONS')) | length > 0 %}
{{ 'wz:block_title:shared_with_me' | trans }}
{% for _basketEx in content.get(constant('\\Alchemy\\Phrasea\\Helper\\WorkZone::VALIDATIONS')) %}
{% set basket = _basketEx['object'] %}
{% set classes = _basketEx['data']['classes']|join(' ') %}
{% set is_read = _basketEx['data']['isRead'] %}
{{ _self.basket_menu(
app,
basket,
constant('\\Alchemy\\Phrasea\\Helper\\WorkZone::VALIDATIONS'),
false,
path('prod_baskets_getwip',{ 'basket' : basket.getId() }),
"SSTT_" ~ basket.getId()
) }}
{% endfor %}
{% endif %}
{# ======================================== list baskets ========================================== #}
{# result of BasketRepository::findActiveByUser(me) #}
{# = im a the owner of (not archived) basket #}
{% if content.get(constant('\\Alchemy\\Phrasea\\Helper\\WorkZone::BASKETS')) | length > 0 %}
{{ 'wz:block_title:my_baskets' | trans }}
{% for _basketEx in content.get(constant('\\Alchemy\\Phrasea\\Helper\\WorkZone::BASKETS')) %}
{% set basket = _basketEx['object'] %}
{% set classes = _basketEx['data']['classes']|join(' ') %}
{% set is_read = _basketEx['data']['isRead'] %}
{{ _self.basket_menu(
app,
basket,
constant('\\Alchemy\\Phrasea\\Helper\\WorkZone::BASKETS'),
true,
path('prod_baskets_getwip', { 'basket' : basket.getId() }),
"SSTT_" ~ basket.getId()
) }}
{% endfor %}
{% endif %}
{# ======================================== list stories ========================================== #}
{% if content.get(constant('\\Alchemy\\Phrasea\\Helper\\WorkZone::STORIES')) | length > 0 %}
{{ 'wz:block_title:stories' | trans }}
{% for _storyEx in content.get(constant('\\Alchemy\\Phrasea\\Helper\\WorkZone::STORIES')) %}
{% set story = _storyEx['object'] %}
{# no need for a path or id because stories are not checked as "wip" #}
{{ _self.basket_menu(
app,
story,
constant('\\Alchemy\\Phrasea\\Helper\\WorkZone::STORIES'),
true,
"",
""
) }}
{% endfor %}
{% endif %}