<div style="margin:0 7px;overflow:hidden;">
{% set basket_length = basket.getElements()|length %}
    <div class="tools">

      <label>Actions</label>

      <button class="ui-corner-all TOOL_disktt_btn basket_window" title="{{ 'action : exporter' | trans }}">
        <img src="/assets/common/images/icons/disktt_history.png"/>
      </button>
      <button class="ui-corner-all TOOL_print_btn basket_window" title="{{ 'action : print' | trans }}">
        <img src="/assets/common/images/icons/print_history.png"/>
      </button>

      {% if app.getAclForUser(app.getAuthenticatedUser()).has_right(constant('\\ACL::CANMODIFRECORD')) %}
      <button class="ui-corner-all TOOL_ppen_btn basket_window" title="{{ 'action : editer' | trans }}">
        <img src="/assets/common/images/icons/ppen_history.png"/>
      </button>
      {% endif %}

      {% if app.getAclForUser(app.getAuthenticatedUser()).has_right(constant('\\ACL::CHGSTATUS')) %}
      <button class="ui-corner-all TOOL_chgstatus_btn basket_window" title="{{ 'action : status' | trans }}">
        <img src="/assets/common/images/icons/chgstatus_history.png"/>
      </button>
      {% endif %}

      {% if app.getAclForUser(app.getAuthenticatedUser()).has_right(constant('\\ACL::CANDELETERECORD')) and app.getAclForUser(app.getAuthenticatedUser()).has_right(constant('\\ACL::CANADDRECORD')) %}
      <button class="ui-corner-all TOOL_chgcoll_btn basket_window" title="{{ 'action : collection' | trans }}">
        <img src="/assets/common/images/icons/chgcoll_history.png"/>
      </button>
      {% endif %}

      {% if app.getAclForUser(app.getAuthenticatedUser()).has_right(constant('\\ACL::CANPUSH')) %}
      <button class="ui-corner-all TOOL_pushdoc_btn basket_window" title="{{ 'action : push' | trans }}">
        <img src="/assets/common/images/icons/push16.png"/>
      </button>
      {% endif %}

      {% if app.getAclForUser(app.getAuthenticatedUser()).has_right(constant('\\ACL::CANPUSH')) %}
      <button class="ui-corner-all TOOL_feedback_btn basket_window" title="{{ 'Feedback' | trans }}">
        <img src="/assets/common/images/icons/feedback16.png"/>
      </button>
      {% endif %}
      {% if app.getAclForUser(app.getAuthenticatedUser()).has_right(constant('\\ACL::BAS_CHUPUB')) %}
      {#<button class="ui-corner-all TOOL_bridge_btn basket_window" title="{{ 'action : bridge' | trans }}" data-href="{{ path("prod_bridge_manager") }}">#}
        {#<img src="/assets/common/images/icons/door.png"/>#}
      {#</button>#}
      <button class="ui-corner-all TOOL_publish_btn basket_window" title="{{ 'action : publier' | trans }}">
        <img src="/assets/common/images/icons/rss16.png"/>
      </button>
      {% endif %}

      {% if app.getAclForUser(app.getAuthenticatedUser()).has_right(constant('\\ACL::IMGTOOLS')) %}
      <button class="ui-corner-all TOOL_imgtools_btn basket_window" title="{{ 'action : outils' | trans }}">
        <img src="/assets/common/images/icons/imgtools_history.png"/>
      </button>
      {% endif %}
      <button class="ui-corner-all TOOL_trash_btn basket_window" title="{{ 'action : supprimer' | trans }}">
        <img src="/assets/common/images/icons/delete.png"/>
      </button>

      {% if plugins['actionbar'] is not empty %}
        {% for plugin in plugins['actionbar'] %}
          {% for key, action in plugin.getBasketActionBar() %}
            {% set label = action.label %}
            <button class="ui-corner-all basket_window  {{ action.classes|default('') }}" title="{{ label|trans([], plugin.PluginLocale) }}">
              <img src="{{ plugin_asset(plugin.PluginName, action.icon) }}"/>
            </button>
          {% endfor %}
        {% endfor %}
      {% endif %}

    </div>
            <div class="alert_datas_changed ui-corner-all">{{ 'Certaines donnees du panier ont change' | trans }} <a class="basket_refresher" href="#">{{ 'rafraichir' | trans }}</a></div>
{% if basket_length == 0 %}
            <div style="height:120px;"></div>
{% endif %}

{% set basket_scope = 'objects' %}

{% import 'prod/WorkZone/Macros.html.twig' as Macros %}

{% if basket.getValidation() %}
    {{ Macros.display_validation(app, basket, ordre) }}
{% else %}
    {{ Macros.display_basket(app, basket) }}
{% endif %}

          </div>


