{% macro make_bloc(app, WorkZone, selected_type, selected_id, srt) %}
{{ 'Vous avez recu un nouveau panier' | trans }}
{{ 'See' | trans }} :
{{ 'Basket' | trans }}
{{ 'Feedback' | trans }}
{{ 'Push' | trans }}
{{ 'Stories' | trans }}
{% set content = WorkZone.getContent(srt) %}
{% for basket in content.get(constant('\\Alchemy\\Phrasea\\Helper\\WorkZone::VALIDATIONS')) %}
{% if not basket.isRead() %}
{% else %}
{% endif %} {{basket.getName()|e}}
{% if app.getAclForUser(app.getAuthenticatedUser()).has_right(constant('\\ACL::CANMODIFRECORD')) %}
{{ 'edit' | trans }}
{% endif %}
Lightbox
{% if basket.getValidation() %}
{{ 'action::Valider' | trans }}
{% endif %}
{% endfor %}
{% for basket in content.get(constant('\\Alchemy\\Phrasea\\Helper\\WorkZone::BASKETS')) %}
{% if basket.getValidation() %}
{% elseif basket.getPusher() %} {% if not basket.isRead() %}
{% else %}
{% endif %} {% else %}
{% endif %} {{basket.getName()|e}}
{{ 'Lightbox' | trans }}
{{ 'action::renommer' | trans }}
{% if basket.getValidation() %}
{{ 'action::Valider' | trans }}
{% endif %}
{{ 'Archive' | trans }}
{{ 'Re-ordonner' | trans }}
{{ 'action : supprimer' | trans }}
{% endfor %}
{% for story in content.get(constant('\\Alchemy\\Phrasea\\Helper\\WorkZone::STORIES')) %}
{#{ story.getRecord(app).get_base_id()|get_collection_logo(app)|raw }#}
{{ story.getRecord(app).get_title() }}
{% if app.getAclForUser(app.getAuthenticatedUser()).has_right(constant('\\ACL::CANMODIFRECORD')) %}
{{ 'action::editer' | trans }}
{% endif %}
{{ 'action::detacher' | trans }}
{{ 'Re-ordonner' | trans }}
{% endfor %}
{% endmacro %} {% macro element(wz_scope, container, contained, record, ord) %} {% set box_height = 110 %} {% if app['settings'].getUserSetting(app.getAuthenticatedUser(), 'basket_title_display') == '1' %} {% set box_height = (box_height + 20) %} {% endif %} {% if app['settings'].getUserSetting(app.getAuthenticatedUser(), 'basket_status_display') == '1' %} {% set box_height = (box_height + 20) %} {% endif %} {% import 'common/thumbnail.html.twig' as thumbnail %}
{% if app['settings'].getUserSetting(app.getAuthenticatedUser(), 'basket_title_display') == '1' %}
{{ record.get_title()|truncate(20, "...") }}
{% endif %} {% if app['settings'].getUserSetting(app.getAuthenticatedUser(), 'basket_status_display') == '1' %}
{% for flag in record_flags(record) %}
{% endfor %}
{% endif %}
{{record.getNumber()}}
{{thumbnail.format(record.get_thumbnail,140,140, '', true, false)}}
{% if app['settings'].getUserSetting(app.getAuthenticatedUser(), 'basket_caption_display') == '1' %}
{% endif %} {% if app['settings'].getUserSetting(app.getAuthenticatedUser(), 'basket_type_display') == '1' %}
{{ record_doctype_icon(record) }}
{% endif %}
{% endmacro %} {% macro display_basket(app, basket) %} {% for basket_element in basket.getElements() %}
{{ _self.element('basket', basket, basket_element, basket_element.getRecord(app), basket_element.getOrd()) }}
{% endfor %} {% endmacro %} {% macro display_validation(app, basket, ordre) %}
{{ 'panier:: ordre du panier' | trans }}
{{ 'panier:: ordre Validation ascendante' | trans }}
{{ 'panier:: ordre Validation descendante' | trans }}
{% for basket_element in basket.getElementsByOrder(ordre) %}
{{ _self.element('basket', basket, basket_element, basket_element.getRecord(app), basket_element.getOrd()) }}
{% for choice in basket_element.getValidationDatas() %} {% if basket.getValidation().getParticipant(app.getAuthenticatedUser()).getCanSeeOthers() or choice.getParticipant().getUser() == app.getAuthenticatedUser() %} {% endif %} {% endfor %}
{{ choice.getParticipant().getUser().getDisplayName() }}
{% if choice.getParticipant().getCanAgree() %} {% if choice.getAgreement() == true %}
{% elseif choice.getAgreement() is null %}
{% else %}
{% endif %} {% else %}
{% endif %}
{% if choice.getNote() != '' %}
{% endif %}
{% endfor %} {% endmacro %} {% macro make_expose_bloc(app, WorkZone) %}
{% set expose_list= app['conf'].get(['phraseanet-service', 'expose-service', 'exposes']) %}
{{ 'prod:expose:select expose' | trans }}
{% for key in expose_list|keys %} {% if expose_list[key].activate_expose %}
{{ key }}
{% endif %} {% endfor %}
{{ 'expose:: logout' | trans }}
{{ 'prod:expose field mapping' |trans }}
{{ 'prod:expose:Add publication' | trans }}
{{ 'prod:expose:Refresh' | trans }}
{% import 'prod/WorkZone/ExposeNew.html.twig' as ExposeNew %} {{ ExposeNew.add_publication(app) }} {% endmacro %}