{{ 'preview::tab:feedback list' | trans }}
{% for basket_element in feedbackElementDatas %}
{% set basket = basket_element.getBasket() %}
{% if basket.isVoteBasket() %}
{% if (validationSession.isParticipant(app.getAuthenticatedUser())
and (validationSession.getParticipant(app.getAuthenticatedUser()).getCanSeeOthers() or validationSession.getParticipant(app.getAuthenticatedUser()).getUser() == app.getAuthenticatedUser() ))
or granted_on_collection(basket_element.getRecord(app).getBaseId(), [constant('\\ACL::CANMODIFRECORD'), constant('\\ACL::CANPUSH')])
%}
{% set basketName = basket.getName() %}
-
{{ basketName }}
{% if basket.getVoteExpires() < date() %}
( {{ 'preview::tab:feedback closed' | trans }} )
{% else %}
( {{ 'preview::tab:feedback open' | trans }} )
{% endif %}
-
{% set initiator %}
{{ basket.getVoteInitiator().getDisplayName() }}
{% endset %}
{% set createdDate = app['date-formatter'].getDateTranslated(basket.getVoteCreated()) %}
{% trans with {'%initiator%' : initiator, '%createdDate%': createdDate} %}Feedback:: Requested by %initiator% on %createdDate%{% endtrans %}
{% for choice in basket_element.getVotes() %}
{% if granted_on_collection(basket_element.getRecord(app).getBaseId(), [constant('\\ACL::CANMODIFRECORD'), constant('\\ACL::CANPUSH')])
or (
(validationSession.getParticipant(app.getAuthenticatedUser()).getCanSeeOthers() and choice.getParticipant().getCanAgree())
or
(not validationSession.getParticipant(app.getAuthenticatedUser()).getCanSeeOthers() and choice.getParticipant().getCanAgree() and choice.getParticipant().getUser() == app.getAuthenticatedUser())
)
%}
-
{{ choice.getParticipant().getUser().getDisplayName() }}
{% if choice.getAgreement() == true %}
{% elseif choice.getAgreement() is null %}
{% else %}
{% endif %}
{% endif %}
{% endfor %}
{% endif %}
{% endif %}
{% endfor %}