Fix import modal

This commit is contained in:
2026-03-30 22:45:16 +02:00
parent 93e3397553
commit f9d6662467

View File

@@ -6,7 +6,7 @@
<h5 class="modal-title">Import Book from ISBN</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal"></button>
</div>
<form action="/import" method="POST">
<form action="/import" method="POST" hx-boost="false">
<div class="modal-body">
<!-- Mode Toggle -->
<div class="mb-3">
@@ -50,28 +50,27 @@
<div id="scan-status" class="text-muted small mt-2"></div>
</div>
</div>
</div>
{% if session.get('viewing_as_user') %}
<div class="mb-3">
<div class="form-check">
<input class="form-check-input" type="checkbox" id="set-owner" name="set_owner" checked>
<label class="form-check-label" for="set-owner">
Set {{ session.get('viewing_as_user').title() }} as owner
</label>
{% if session.get('viewing_as_user') %}
<div class="mb-3">
<div class="form-check">
<input class="form-check-input" type="checkbox" id="set-owner" name="set_owner" checked>
<label class="form-check-label" for="set-owner">
Set {{ session.get('viewing_as_user').title() }} as owner
</label>
</div>
</div>
{% endif %}
</div>
{% endif %}
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Cancel</button>
<button type="submit" class="btn btn-primary">
<i class="bi bi-cloud-download me-1"></i> Import Book
</button>
</div>
</form>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Cancel</button>
<button type="submit" class="btn btn-primary">
<i class="bi bi-cloud-download me-1"></i> Import Book
</button>
</div>
</form>
</div>
</div>
</div>
<style>
/* QuaggaJS viewport styling - overlay video and canvas */