{#
 # For the full copyright and license information, please view the
 # docs/licenses/LICENSE.txt file that was distributed with this source code.
 #}

{% set class = 'btn tooltip-link js-link-row-action' %}

{% if attributes.class is defined %}
  {% set class = class ~ ' ' ~ attributes.class %}
{% endif %}

<a class="{{ class }} grid-{{ action.name|lower|replace({' ': '-'}) }}-row-link"
   href="{{ getAdminLink('AdminCartRules', true, {id_cart_rule: record[action.options.id_cart_rule], updatecart_rule: 1, back: app.request.uri}) }}"
  {% if attributes.tooltip_name %}
    data-toggle="pstooltip"
    data-placement="top"
    data-original-title="{{ action.name }}"
  {% endif %}
   data-confirm-message=""
   data-clickable-row="1"
>
  {% if action.icon is not empty %}
    <i class="material-icons">{{ action.icon }}</i>
  {% endif %}
  {% if not attributes.tooltip_name %}
    {{ action.name }}
  {% endif %}
</a>
