{# Autofill toggle component #}
<div class="d-flex justify-content-between align-items-center " style="margin-bottom: 1vh;margin-top: 1vh;">
    <div></div>
    <form role="form" method='POST' name="autoFill" id="autoFill">
        <div class="form-check form-switch">
            <input type="hidden" id="autofill" name="autofill" value="temp_value">
            <input class="form-check-input" type="checkbox" id="autoFillCheck" name="autoFillCheck" onchange="document.getElementById('autoFill').submit();"
                   value="temp_value"
                    {{ "checked" if session["autofill"] else "" }}>
            <label class="form-check-label" for="autoFillCheck">Auto fill</label>
        </div>
        <button type="submit" class="btn btn-default" style="display: none;">Auto fill </button>
    </form>
</div> 