Remove direct delete button, enforce preview step
Removed 'Delete orphaned jobs' button from maintenance page to enforce verification workflow. Users must now: 1. Click 'Preview orphaned jobs' to see the list 2. Verify which jobs will be deleted 3. Click 'Delete All' on the preview page This prevents accidental deletion without verification. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
7f8dffa3ae
commit
e932fdf30a
@ -554,12 +554,8 @@
|
|||||||
<div class="card-header bg-warning">Cleanup orphaned jobs</div>
|
<div class="card-header bg-warning">Cleanup orphaned jobs</div>
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<p class="mb-3">Delete jobs that are no longer linked to an existing customer. Related emails and runs will be <strong>permanently deleted</strong> from the database.</p>
|
<p class="mb-3">Delete jobs that are no longer linked to an existing customer. Related emails and runs will be <strong>permanently deleted</strong> from the database.</p>
|
||||||
<div class="d-flex gap-2">
|
<p class="mb-3"><strong>Step 1:</strong> Preview the list to verify which jobs will be deleted.</p>
|
||||||
<a href="{{ url_for('main.settings_jobs_orphaned') }}" class="btn btn-outline-warning">Preview orphaned jobs</a>
|
<a href="{{ url_for('main.settings_jobs_orphaned') }}" class="btn btn-warning">Preview orphaned jobs</a>
|
||||||
<form method="post" action="{{ url_for('main.settings_jobs_delete_orphaned') }}" onsubmit="return confirm('Delete orphaned jobs and their emails? This cannot be undone.');" class="d-inline">
|
|
||||||
<button type="submit" class="btn btn-warning">Delete orphaned jobs</button>
|
|
||||||
</form>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user