{##
 # Table model list
 #}

<a name="{{ this.getAnchorName() }}" class="list-anchor"></a>
<div {{ this.getContainerAttributesAsString()|raw }}>
  {{ this.displayCommentedData(this.getItemsListParams()) }}
  {% if this.isHeaderVisible() %}
    <div class="list-header">
      {{ widget_list('header.before', type='inherited') }}
      {% for tpl in this.getTopActions() %}
        <div class="button-container">{% include tpl %}</div>
      {% endfor %}
      {{ widget_list('header', type='inherited') }}
    </div>
  {% endif %}

  {% if this.isPageBodyVisible() %}
    {% include this.getPageBodyTemplate() %}
  {% endif %}
  {% if not this.isPageBodyVisible() %}
    <div class="no-items">
      {% if this.isDisplayBlankItemsListDescription() %}
        {% include this.getBlankListTemplate() %}
      {% elseif this.isEmptyListTemplateVisible() %}
        {% include this.getEmptyListTemplate() %}
      {% endif %}
    </div>
  {% endif %}
  {% if this.isPagerVisible() %}
    <div class="table-pager">{{ this.pager.display() }}</div>
  {% endif %}

  {% if this.isFooterVisible() %}
    <div class="list-footer">
      {% for tpl in this.getBottomActions() %}
        <div class="button-container">{% include tpl %}</div>
      {% endfor %}
      {{ widget_list('footer', type='inherited') }}
    </div>
  {% endif %}

</div>

{% if this.isPanelVisible() %}
  {{ widget(this.getPanelClass()) }}
{% endif %}
