fix: add terms/privacy checkbox to download modal, button disabled until checked

This commit is contained in:
2026-06-14 09:56:43 -04:00
parent 448a593423
commit e6a70c427e
2 changed files with 14 additions and 2 deletions

View File

@@ -193,6 +193,11 @@ if (!isset($user) || $user === null) {
<li><i class="fas fa-save" style="width:18px;text-align:center;margin-right:0.4rem;font-size:0.75rem"></i> Storage for offline data cache</li>
</ul>
</div>
<label class="checkbox-label" style="margin-bottom:0.75rem;font-size:0.82rem">
<input type="checkbox" id="agreeTerms" onchange="toggleDownloadBtn()">
I agree to the <a href="/terms" target="_blank" style="color:var(--accent);text-decoration:underline">Terms &amp; Conditions</a>
and <a href="/privacy" target="_blank" style="color:var(--accent);text-decoration:underline">Privacy Policy</a>
</label>
<div id="downloadProgressWrap" style="display:none">
<div style="display:flex;justify-content:space-between;font-size:0.8rem;color:var(--text-muted);margin-bottom:0.3rem">
<span>Downloading...</span>
@@ -205,7 +210,7 @@ if (!isset($user) || $user === null) {
</div>
<div class="modal-footer" id="downloadModalFooter">
<button class="btn btn-secondary" onclick="closeDownloadModal()">Cancel</button>
<button class="btn btn-primary" id="downloadConfirmBtn" onclick="startDownload()">
<button class="btn btn-primary" id="downloadConfirmBtn" onclick="startDownload()" disabled>
<i class="fas fa-download"></i> Download APK
</button>
</div>