{% 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 }}

{{ 'List Manager' | trans }}

{{ 'Select a user in the list' | trans }}
{% if app.getAclForUser(app.getAuthenticatedUser()).has_right(constant('\\ACL::CANADMIN')) %} {{ 'or' | trans }} {{ 'Add user' | trans }} {% endif %}

{% 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() ~ '' %} {% 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 context == 'Push' %} {{ 'Push::unpush permet d\'envoyer un lot d\'image a des destinataires' | trans }} {% else %} {{ 'Push::une validation est une demande d\'appreciation a d\'autres personnes' | trans }} {% 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 %}
{% include "prod/templates/push.html.twig" %} {% endif %}