{% if push.get_count_actionable() == 0 %}
{% if 'Push' == context %} {% trans %}None of the selected records can be pushed.{% endtrans %} {% else %} {% trans %}None of the selected records can be sent for feedback.{% endtrans %} {% endif %}
{% else %}
{% if context == 'Push' %} {% else %} {% endif %}
{{ 'Grant rights' | trans }}
    {% if context == 'Feedback' %}
  • {% endif %}
{{ 'Lists' | trans }} {% if context == 'Push' %} Refresh list {% else %} Refresh list {% endif %} Refresh list
{{ 'List Manager' | trans }}

{% set recommendation = '' %} {% set total = RecommendedUsers|length %} {% for user in RecommendedUsers %} {% if total <= 4 or loop.index <= 4 %} {% if recommendation != '' and not loop.last %} {% set recommendation = recommendation ~ ', ' %} {% elseif recommendation != '' and loop.last %} {% set recommendation = recommendation %} {% endif %} {% set recommendation = recommendation ~ ' ' ~ '' ~ user.getDisplayName() | e ~ '' %} {% endif %} {% endfor %} {% if total > 4 %} {% set n = total - 4 %} {% set and_many_more %} {% trans with {'%n%' : n} %}and %n% more peoples{% endtrans %} {% endset %} {% set recommendation = recommendation ~ '' ~ and_many_more ~ '' %} {% endif %} {% if recommendation != '' %} {% set recommendation = '
' ~ recommendation %} {% if context == 'Push' %} {% trans with {'%recommendation%' : recommendation} %}Please consider send this push to the following users : %recommendation%{% endtrans %} {% else %} {% trans with {'%recommendation%' : recommendation} %}Please consider send this validation to the following users : %recommendation%{% endtrans %} {% endif %} {% endif %}

{% if app.getAclForUser(app.getAuthenticatedUser()).has_right(constant('\\ACL::CANADMIN')) %} {% if context == 'Push' %} {{ 'Add user' | trans }} {% else %} {{ 'Add user' | trans }} {% endif %} {% endif %}
{% if push.get_original_basket() %}{{ push.get_original_basket().getName() }}{% endif %}
{% if 'Push' == context %} {% set nb_push_items = push.get_count_actionable() %} {% if push.get_count_not_actionable() == 0 %} {% trans with {'%nb_push_items%' : nb_push_items} %}You are about to push %nb_push_items% records.{% endtrans %} {% else %} {% set nb_not_available = push.get_count_not_actionable() %} {% trans with {'%nb_push_items%' : nb_push_items, '%nb_not_available%' : nb_not_available} %}You are about to push %nb_push_items% records, %nb_not_available% records can not be processed.{% endtrans %} {% endif %} {% else %} {% set nb_push_items = push.get_count_actionable() %} {% if push.get_count_not_actionable() == 0 %} {% trans with {'%nb_push_items%' : nb_push_items} %}You are about to ask for feedback for %nb_push_items% records.{% endtrans %} {% else %} {% set nb_not_available = push.get_count_not_actionable() %} {% trans with {'%nb_push_items%' : nb_push_items, '%nb_not_available%' : nb_not_available} %}You are about to ask for feedback for %nb_push_items% records, %nb_not_available% records can not be processed.{% endtrans %} {% endif %} {% endif %}
{% if feedbackAction == 'adduser' %} {% endif %}
{% if context == 'Feedback' %} {% for participant in participants | sort | reverse %} {% set userId = participant.getUser().getId() %}
{% if initiatorUserId != userId %} {% endif %}
{{ participant.getUser().getDisplayName() }}
{% set subtitle = [participant.getUser().getJob(), participant.getUser().getCompany()] | join(', ') %} {% if subtitle != ', '%} {{ subtitle }} {% endif %}
{% endfor %} {% endif %}
{% include "prod/templates/push.html.twig" %} {% endif %}