add reset button to admin: wipes pictures, previews, and db
This commit is contained in:
@@ -60,6 +60,33 @@
|
||||
text-transform: uppercase;
|
||||
}
|
||||
a.back:hover { color: #999; }
|
||||
.danger-zone {
|
||||
margin-top: 40px;
|
||||
width: 100%;
|
||||
max-width: 420px;
|
||||
border-top: 1px solid #2a2a2a;
|
||||
padding-top: 32px;
|
||||
}
|
||||
.danger-label {
|
||||
font-size: 0.75rem;
|
||||
color: #555;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.1em;
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
.btn-reset {
|
||||
width: 100%;
|
||||
padding: 14px;
|
||||
background: #2a1010;
|
||||
color: #c55;
|
||||
border: 1px solid #4a2020;
|
||||
border-radius: 8px;
|
||||
font-size: 0.9rem;
|
||||
letter-spacing: 0.06em;
|
||||
text-transform: uppercase;
|
||||
cursor: pointer;
|
||||
}
|
||||
.btn-reset:hover { background: #3a1515; border-color: #c55; color: #e77; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
@@ -78,6 +105,12 @@
|
||||
<span class="stat-value">{{ previews_size }}</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="danger-zone">
|
||||
<div class="danger-label">danger zone</div>
|
||||
<form method="post" action="/admin/reset" onsubmit="return confirm('delete ALL pictures, previews and db records? this cannot be undone.')">
|
||||
<button type="submit" class="btn-reset">reset everything</button>
|
||||
</form>
|
||||
</div>
|
||||
<a class="back" href="/">← back to slideshow</a>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user