{% spaceless %}
    <div class="supsystic-tables-features">
        {% if table.settings.features.export | length %}
            <div class="supsystic-tables-export">
                <ul>
                    {% if table.settings.language.exportLabel | trim != '_NONE_' %}
                        <li>
                            <span class="export-label">{{ table.settings.language.exportLabel | default(environment.translate('Save as')) }}</span>
                        </li>
                    {% endif %}
                    {% for type in table.settings.features.export %}
                        {% set exportType = type %}
                        {% if exportType == 'xls' or exportType == 'xlsx' %}
                            {% set exportType = exportType ~ '_values' %}
                        {% endif %}
                        <li class="dtsFrontendExport">
                            <a
                                    class="export-{{ type }}"
                                    href="?export-supsystic-table=true&type={{ exportType }}&id={{ table.id }}"
                                    data-only-visible="{{ table.settings.exportOnlyVisible | default('off') }}"
                                    {% if type == 'pdf' %}
                                        data-paper-size="{{ table.settings.pdfPaperSize | default('auto') }}"
                                        data-orientation="{{ table.settings.pdfOrientation | default('portrait') }}"
                                        data-export-fonts="{{ table.settings.pdfExportFonts | default('off') }}"
                                    {% endif %}
                                    >
                                <i class="export-{{ type }}-icon"></i>{{ type }}
                            </a>
                        </li>
                    {% endfor %}
                </ul>
            </div>
        {% endif %}
    </div>
{% endspaceless %}