diff --git a/app.css b/app.css index 20fd0c6..0f8f5be 100644 --- a/app.css +++ b/app.css @@ -116,6 +116,12 @@ body { color: #f0f0f0; } .btn-large { padding: 22px; font-size: 18px; } +.btn-danger { + background: #d9534f; + color: #fff; + margin-top: 24px; +} +.btn-danger:active { background: #c9302c; } .hidden-input { display: none; } diff --git a/app.js b/app.js index 8b49265..7bd8b55 100644 --- a/app.js +++ b/app.js @@ -744,6 +744,7 @@ router.on('/reports/:id', async (args) => { ${hasPages ? '' : ''} + `; loadThumbs(); @@ -783,6 +784,38 @@ router.on('/reports/:id', async (args) => { document.getElementById('btn-open-editor').onclick = () => { window.open(window.location.origin + '/custom/bericht/bericht_card.php?berichtid=' + args.id, '_blank'); }; + + document.getElementById('btn-delete-report').onclick = () => { + const modal = document.createElement('div'); + modal.className = 'fullscreen-modal'; + modal.innerHTML = ` +
Bericht ${escapeHtml(data.report.ref)} mit ${data.pages.length} Seite${data.pages.length === 1 ? '' : 'n'} wirklich löschen?
+Alle Seiten und Annotationen werden unwiderruflich entfernt.
+