{% block toolbar %}
{% set actions = {} %} {% if acl.has_right(constant('\\ACL::CANMODIFRECORD')) %} {% set label %} {{ 'action : editer' | trans }} {% endset %} {% set actions = actions|merge( { 'edit' : {'icon': "/assets/common/images/icons/ppen_history.png", 'class':'TOOL_ppen_btn', 'label' : label} }) %} {% endif %} {% if acl.has_right(constant('\\ACL::CHGSTATUS')) %} {% set label %} {{ 'action : status' | trans }} {% endset %} {% set actions = actions|merge( { 'status' : {'icon': "/assets/common/images/icons/chgstatus_history.png", 'class':'TOOL_chgstatus_btn', 'label' : label} }) %} {% endif %} {% if acl.has_right(constant('\\ACL::CANDELETERECORD')) and acl.has_right(constant('\\ACL::CANADDRECORD')) %} {% set label %} {{ 'action : collection' | trans }} {% endset %} {% set actions = actions|merge( { 'move' : {'icon': "/assets/common/images/icons/chgcoll_history.png", 'class':'TOOL_chgcoll_btn', 'label' : label} }) %} {% endif %} {% set n_actions = actions|length %} {% if n_actions > 1 %}
{% for action in actions %} {% if loop.first %} {% endif %} {% endfor %}
{% elseif n_actions == 1 %}
{% for action in actions %} {% endfor %}
{% endif %} {% if acl.has_right(constant('\\ACL::CANPUSH')) and acl.has_right(constant('\\ACL::BAS_CHUPUB')) %}
{% elseif acl.has_right(constant('\\ACL::CANPUSH')) %}
{% elseif acl.has_right(constant('\\ACL::BAS_CHUPUB')) %}
{##} {% if plugins.actionbar is not empty %} {% endif %}
{% elseif plugins.actionbar is not empty %}
{% set firstButton = true %} {% for plugin in plugins.actionbar %} {% for key, action in plugin.getActionBar().push|default([]) %} {% if firstButton %} {% if not (loop.last and loop.parent.loop.last) %} {% endif %}
{% endif %} {% if acl.has_right(constant('\\ACL::IMGTOOLS')) %}
{% endif %} {% if acl.has_right(constant('\\ACL::CANDELETERECORD')) %}
{% endif %} {% endblock %}