<div>
    <button id="btn-previous-page" type="button" class="btn btn-secondary mb-2 float-{% if BOOTSTRAP_VERSION|first == "4" %}right{% elif BOOTSTRAP_VERSION|first == "5"  %}end{% endif %}">
        <i class="fas fa-arrow-left"></i> Back to previous
    </button>
    {% if data.display_download_options %}
    <button class="btn btn-secondary download
        {% if BOOTSTRAP_VERSION|first == "4" %}float-right{% elif BOOTSTRAP_VERSION|first == "5"  %}float-end{% endif %}
        {% if BOOTSTRAP_VERSION|first == "4" %}mr-1{% elif BOOTSTRAP_VERSION|first == "5"  %}me-1{% endif %}">
        <i class="fas fa-download"></i> Download
    </button>
    {% endif %}
    {% if data.share_pid_button %}
        {% include 'core_linked_records_app/user/sharing/data_detail/button.html' %}
    {% endif %}
    {% if data.can_write %}
    <button class="btn btn-secondary
            open-{% if data.data.template.format == 'XML' %}xml{% elif data.data.template.format == 'JSON'%}json{% endif %}-record-btn
            {% if BOOTSTRAP_VERSION|first == "4" %}float-right{% elif BOOTSTRAP_VERSION|first == "5"  %}float-end{% endif %}
            {% if BOOTSTRAP_VERSION|first == "4" %}mr-1{% elif BOOTSTRAP_VERSION|first == "5"  %}me-1{% endif %}">
        <i class="fas fa-code"></i> Open in text editor
    </button>
    <button class="btn btn-secondary edit-record-btn
            {% if BOOTSTRAP_VERSION|first == "4" %}float-right{% elif BOOTSTRAP_VERSION|first == "5"  %}float-end{% endif %}
            {% if BOOTSTRAP_VERSION|first == "4" %}mr-1{% elif BOOTSTRAP_VERSION|first == "5"  %}me-1{% endif %}">
        <i class="fas fa-pencil-alt"></i> Edit
    </button>
    {% endif %}
    {% if data.data_modules %}
    <a id="btn-run" class="btn btn-secondary run
        {% if BOOTSTRAP_VERSION|first == "4" %}mr-1{% elif BOOTSTRAP_VERSION|first == "5"  %}me-1{% endif %}
        {% if BOOTSTRAP_VERSION|first == "4" %}float-right{% elif BOOTSTRAP_VERSION|first == "5"  %}float-end{% endif %}"
    >
        <i class="fas fa-play"></i> Run
    </a>
    <div class="row
        {% if BOOTSTRAP_VERSION|first == "4" %}mr-1{% elif BOOTSTRAP_VERSION|first == "5"  %}me-1{% endif %}
        {% if BOOTSTRAP_VERSION|first == "4" %}float-right{% elif BOOTSTRAP_VERSION|first == "5"  %}float-end{% endif %}
    ">
        <div class="form-group">
            <select id="data_processing_module_select" class="form-select">
                <option value="None">-----------</option>
                {% for data_module in data.data_modules %}
                    <option value="{{data_module.id}}">{{data_module}}</option>
                {% endfor %}
            </select>
        </div>
    </div>
    {% endif %}
        <div class="row
                {% if BOOTSTRAP_VERSION|first == "4" %}float-right{% elif BOOTSTRAP_VERSION|first == "5"  %}float-end{% endif %}
                {% if BOOTSTRAP_VERSION|first == "4" %}mr-1{% elif BOOTSTRAP_VERSION|first == "5"  %}me-1{% endif %}"
                {% if not can_display_selector %} style="display:none" {% endif %} >
            <div class="form-group ">
                <select class="selectpicker {% if BOOTSTRAP_VERSION|first == "4" %}form-control{% elif BOOTSTRAP_VERSION|first == "5"  %}form-select{% endif %}" id="xslt-selector" >
                   {% if not template_xsl_rendering.default_detail_xslt %}  <option value={{None}}>Default</option>{% endif %}
                   {% for xslt in template_xsl_rendering.list_detail_xslt.all %}
                        {% if xslt.id == xslt_id %}
                            <option value="{{xslt.id}}" selected >{{xslt.name}} {% if xslt == template_xsl_rendering.default_detail_xslt %} (default) {% endif %}</option>
                        {% else %}
                            <option value="{{xslt.id}}" >{{xslt.name}} {% if xslt == template_xsl_rendering.default_detail_xslt %} (default) {% endif %}</option>
                        {% endif %}
                   {% endfor %}
                </select>
            </div>
        </div>
</div>
