<div class="d-flex justify-content-between">
    <form class="form-control border-0 shadow-none p-0" hx-post="{{ h.url_for('selftools_htmx.selftools_solr_index') }}" hx-trigger="submit" hx-target="#solr-index-resp" hx-swap="innerHTML">
        <div class="info-block mb-2">
            {{ _('Provide either Dataset ID or a list of Dataset IDs.') }}
            <br>
            If both <strong>Dataset ID</strong> and <strong>Datasets Name/ID</strong> provided, it will ignore <strong>Datasets Name/ID</strong> field.
        </div>
        <div class="mb-3">
            <label for="ds_id">Dataset Name/ID</label>
            <input type="text" name="id" id="ds_id" class="form-control">
        </div>
        <div class="mb-2">
            <strong>
                OR
            </strong>
        </div>
        <div class="mb-3">
            <label for="ds_ids">Datasets Name/ID</label>
            <textarea id="ds_ids" name="ids" rows="5" class="form-control"></textarea>
            <div class="info-block mb-2">
                <i class="fa fa-info-circle"></i>
                {{ _('JSON list of Dataset IDs.') }}
            </div>
        </div>
        <div class="mb-3">
            <label for="ds_force">Force?</label>
            <input type="checkbox" name="force" id="ds_force" value="True"> 
            <div class="info-block mb-2">
                <i class="fa fa-info-circle"></i>
                {{ _('Ignore Errors. If an exception is found, the exception will be logged, but the process will carry on.') }}
            </div>     
        </div>
        <button type="submit" class="btn btn-dark mt-2">Index</button>
    </form>
</div>

<div id="solr-index-resp" class="bg-light p-3 border rounded mt-3">Confirmation</div>
