<commit_before>{% load hq_shared_tags %}
{% load i18n %}
<!-- Template for a Table (i.e. sheet) in the Export page -->
<script type="text/html" id="ko-table-configuration-template">
    <div>
        <legend data-bind="visible: table.isVisible(), visible: table.label() !== 'Case History'">
            <span>
                <input type="checkbox" data-bind="checked: table.selected" />
            </span>
            <span>
                <span data-bind="text: table.label()" />
            </span>
            <span>
                <span class="label label-warning" data-bind="visible: table.is_deleted">deleted</span>
            </span>

            <!-- ko if: table.is_user_defined -->
            <div class="remove-user-defined-table pull-right">
                <button class="btn btn-danger btn-xs" data-bind="
                    click: function() {
                        $parent.tables.remove(table)
                    }
                ">
                {% trans "Remove" %}
                </button>
            </div>
            <!-- /ko -->
        </legend>
        <div class="col-sm-12" data-bind="visibleFade: table.selected">
            <div class="form-group">
                <label class="col-sm-4 col-md-3 col-lg-2 control-label">{% trans "Sheet Name" %}</label>
                <div class="col-sm-9 col-md-8 col-lg-6">
                    <input type="text" class="form-control" data-bind="value: table.label" />
                </div>
            </div>
            <!-- ko if: table.is_user_defined -->
            <div class="form-group">
                <label class="col-sm-4 col-md-3 col-lg-2 control-label">{% trans "Custom Path" %}</label>
                <div class="col-sm-4 col-md-3 col-lg-2">
                    <input type="text" class="form-control" data-bind="value: table.customPathString" />
                </div>
            </div>
            <!-- /ko -->
            <h4>{% trans "Choose the fields you want to export." %}</h4>
            <div class="help-block">
                {% if request|toggle_enabled:"EXPORT_MULTISORT" %}
                    {% blocktrans %}
                        <p>You can drag and drop fields to reorder them.</p>
                        <ul>
                            <li>To drag multiple fields, select by clicking while holding the CTRL key on a PC, or the Command key on a Mac.</li>
                            <li>To select a range of fields hold the Shift key and select the first and last field in the range.</li>
                        </ul>
                        <p>You can also rename fields, which will update the headers in the export file.</p>
                    {% endblocktrans %}
                {% else %}
                    {% trans "You can drag and drop fields to reorder them.  You can also rename fields, which will update the headers in the export file." %}
                {% endif %}
            </div>

            <table class="table table-bordered table-striped table-condensed" id="field-select">
                <thead>
                <tr class="nodrag nodrop">
                    <th class="col-sm-1">{% trans "Include?" %}<br />
                        <a class="btn btn-xs btn-primary" data-bind="click: table.selectAll">{% trans "Select All" %}</a>
                        <a class="btn btn-xs btn-default" data-bind="click: table.selectNone">{% trans "Select None" %}</a>
                    </th>
                    {% if request|toggle_enabled:"EXPORT_MULTISORT" %}<commit_msg>add instructions on how to unselect a field<commit_after>{% load hq_shared_tags %}
{% load i18n %}
<!-- Template for a Table (i.e. sheet) in the Export page -->
<script type="text/html" id="ko-table-configuration-template">
    <div>
        <legend data-bind="visible: table.isVisible(), visible: table.label() !== 'Case History'">
            <span>
                <input type="checkbox" data-bind="checked: table.selected" />
            </span>
            <span>
                <span data-bind="text: table.label()" />
            </span>
            <span>
                <span class="label label-warning" data-bind="visible: table.is_deleted">deleted</span>
            </span>

            <!-- ko if: table.is_user_defined -->
            <div class="remove-user-defined-table pull-right">
                <button class="btn btn-danger btn-xs" data-bind="
                    click: function() {
                        $parent.tables.remove(table)
                    }
                ">
                {% trans "Remove" %}
                </button>
            </div>
            <!-- /ko -->
        </legend>
        <div class="col-sm-12" data-bind="visibleFade: table.selected">
            <div class="form-group">
                <label class="col-sm-4 col-md-3 col-lg-2 control-label">{% trans "Sheet Name" %}</label>
                <div class="col-sm-9 col-md-8 col-lg-6">
                    <input type="text" class="form-control" data-bind="value: table.label" />
                </div>
            </div>
            <!-- ko if: table.is_user_defined -->
            <div class="form-group">
                <label class="col-sm-4 col-md-3 col-lg-2 control-label">{% trans "Custom Path" %}</label>
                <div class="col-sm-4 col-md-3 col-lg-2">
                    <input type="text" class="form-control" data-bind="value: table.customPathString" />
                </div>
            </div>
            <!-- /ko -->
            <h4>{% trans "Choose the fields you want to export." %}</h4>
            <div class="help-block">
                {% if request|toggle_enabled:"EXPORT_MULTISORT" %}
                    {% blocktrans %}
                        <p>You can drag and drop fields to reorder them.</p>
                        <ul>
                            <li>To drag multiple fields, select by clicking while holding the CTRL key on a PC, or the Command key on a Mac.</li>
                            <li>To select a range of fields hold the Shift key and select the first and last field in the range.</li>
                            <li>To unselect a field hold the CTRL key on a PC, or the Command key on a Mac, and click.</li>
                        </ul>
                        <p>You can also rename fields, which will update the headers in the export file.</p>
                    {% endblocktrans %}
                {% else %}
                    {% trans "You can drag and drop fields to reorder them.  You can also rename fields, which will update the headers in the export file." %}
                {% endif %}
            </div>

            <table class="table table-bordered table-striped table-condensed" id="field-select">
                <thead>
                <tr class="nodrag nodrop">
                    <th class="col-sm-1">{% trans "Include?" %}<br />
                        <a class="btn btn-xs btn-primary" data-bind="click: table.selectAll">{% trans "Select All" %}</a>
                        <a class="btn btn-xs btn-default" data-bind="click: table.selectNone">{% trans "Select None" %}</a>
                    </th>
                    {% if request|toggle_enabled:"EXPORT_MULTISORT" %}
{'fraction_non_alphanumeric': 0.13975501113585745, 'fraction_numerical': 0.005289532293986637, 'mean_word_length': 1.4775862068965517, 'pattern_counts': {'":': 0, '<': 129, '<?xml version=': 0, '>': 129, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '261981', 'n_tokens_mistral': 2037, 'n_tokens_neox': 1875, 'n_words': 555}