<div class="modal fade" id="searchSettingsModal" tabindex="-1" aria-hidden="true">
    <div class="modal-dialog modal-dialog-centered">
        <div class="modal-content">
            <div class="modal-header fields-search-modal-header">
                <span class="fields-search-modal-icon" aria-hidden="true"><i class="bi bi-search"></i></span>
                <span class="fields-search-modal-title">
                    <small>Field discovery</small>
                    <strong>Search settings · <span id="searchFieldName"></span></strong>
                </span>
                <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close search settings"></button>
            </div>
            <div class="modal-body py-2">
                <input type="hidden" id="searchSettingsField">
                <div class="form-check small mb-1">
                    <input class="form-check-input" type="checkbox" id="ssSearchable">
                    <label class="form-check-label" for="ssSearchable">Searchable</label>
                </div>
                <div class="form-check small mb-1">
                    <input class="form-check-input" type="checkbox" id="ssAlwaysOnPanel">
                    <label class="form-check-label" for="ssAlwaysOnPanel">Always on Search Panel</label>
                </div>
                <div class="form-check small mb-1">
                    <input class="form-check-input" type="checkbox" id="ssAdvancedSearch">
                    <label class="form-check-label" for="ssAdvancedSearch">Show on Advanced Search</label>
                </div>
                <div class="form-check small mb-1">
                    <input class="form-check-input" type="checkbox" id="ssAllFields">
                    <label class="form-check-label" for="ssAllFields">Include in 'All Fields' search</label>
                </div>
                <div class="form-check small mb-1">
                    <input class="form-check-input" type="checkbox" id="ssFilterPanel">
                    <label class="form-check-label" for="ssFilterPanel">Show on Filter Panel</label>
                </div>
                <div class="form-check small mb-1">
                    <input class="form-check-input" type="checkbox" id="ssRequired">
                    <label class="form-check-label" for="ssRequired">Required Search Field</label>
                </div>
                <div class="mb-2 mt-2">
                    <label class="form-label small mb-1">Default Search Option</label>
                    <select class="form-select form-select-sm" id="ssDefaultOption">
                        <option value="contains">Contains</option>
                        <option value="equals">Equals</option>
                        <option value="starts">Starts With</option>
                        <option value="greater">Greater Than</option>
                        <option value="less">Less Than</option>
                    </select>
                </div>
                <div class="form-check small mb-1">
                    <input class="form-check-input" type="checkbox" id="ssCaseSensitive">
                    <label class="form-check-label" for="ssCaseSensitive">Case‑sensitive Search</label>
                </div>
                <div class="form-check small mb-1">
                    <input class="form-check-input" type="checkbox" id="ssSaveSearch">
                    <label class="form-check-label" for="ssSaveSearch">Enable Search Saving</label>
                </div>
                <div class="form-check small mb-1">
                    <input class="form-check-input" type="checkbox" id="ssHighlight">
                    <label class="form-check-label" for="ssHighlight">Highlight Search Results</label>
                </div>
            </div>
            <div class="modal-footer py-2">
                <button type="button" class="btn btn-sm btn-secondary" data-bs-dismiss="modal">Cancel</button>
                <button type="button" class="btn btn-sm btn-primary" id="btnSaveSearchSettings">Save</button>
            </div>
        </div>
    </div>
</div>
