{% set hasForm = aa_brick_has_form(brick) %}
<div class="actions d-flex">
  {% if hasForm %}
    <button class="btn brick-action brick-edit" data-brick-id="{{ brick.id|default(null) }}"
            data-url="{{ path('aa_admin_content_builder_update', {
              brickId: brick.id|default(null),
              _admin_locale: app.request.get('_admin_locale'),
            }) }}"><i class="fa fa-cog"></i></button>
  {% endif %}

  {% if brick.type == 'brick.row' %}
    <button class="btn" title="change layout"><i class="fa fa-columns"></i></button>
  {% endif %}

  {# separation to align remaining items on the end  #}
  <div class="ml-auto mt-auto"></div>

{#  <button class="btn"><i class="fa fa-compress"></i></button>#}

  <button class="btn brick-action" data-url="{{ path('aa_admin_content_builder_delete', {
    brickId: brick.id|default(null),
    _admin_locale: app.request.get('_admin_locale'),
  }) }}"><i class="fa fa-close"></i></button>

  <div class="title">{{ brick.type }}</div>
</div>