add reset feature for admins/orgs
All checks were successful
Build Images and Deploy / Update-PROD-Stack (push) Successful in 28s
All checks were successful
Build Images and Deploy / Update-PROD-Stack (push) Successful in 28s
This commit is contained in:
@@ -42,6 +42,14 @@
|
||||
|
||||
<div class="card" style="border: 2px solid var(--danger); margin-top: 1.5rem;">
|
||||
<div class="card-header" style="color: var(--danger);">Danger Zone</div>
|
||||
|
||||
<p style="color: var(--muted); font-size: 0.9rem; margin-bottom: 0.75rem;">Reset all scan history, points, hints, and images for this hunt. Packages are kept but returned to a fresh state.</p>
|
||||
<form method="POST" action="/admin/hunts/<%= hunt.id %>/reset" onsubmit="return confirm('Are you sure you want to reset all scan data for "<%= hunt.name %>"? All points, hints, and images will be erased. This cannot be undone.')" style="margin-bottom: 1.25rem;">
|
||||
<button type="submit" class="btn btn-danger">Reset All Scans</button>
|
||||
</form>
|
||||
|
||||
<hr style="border: none; border-top: 1px solid var(--border); margin-bottom: 1rem;">
|
||||
|
||||
<p style="color: var(--muted); font-size: 0.9rem;">Permanently delete this hunt, all its packages, and all scan data. This cannot be undone.</p>
|
||||
<form method="POST" action="/admin/hunts/<%= hunt.id %>/delete" onsubmit="return confirm('Are you sure you want to permanently delete "<%= hunt.name %>"? This will delete ALL packages and scan data. This cannot be undone.')">
|
||||
<button type="submit" class="btn btn-danger">Delete Hunt</button>
|
||||
|
||||
Reference in New Issue
Block a user