Move Reset System button to topbar next to Log out
This commit is contained in:
parent
c93cde8534
commit
9e532a1920
1 changed files with 19 additions and 4 deletions
|
|
@ -23,17 +23,32 @@ tr:hover{background:#2d3748}
|
||||||
.actions a{color:#93c5fd;text-decoration:none;margin-right:.8rem}
|
.actions a{color:#93c5fd;text-decoration:none;margin-right:.8rem}
|
||||||
.actions button.delete{background:transparent;color:#f87171;border:none;padding:0;cursor:pointer;font:inherit;text-decoration:none;margin-right:.8rem}
|
.actions button.delete{background:transparent;color:#f87171;border:none;padding:0;cursor:pointer;font:inherit;text-decoration:none;margin-right:.8rem}
|
||||||
.logout{float:right;color:#f87171;text-decoration:none}
|
.logout{float:right;color:#f87171;text-decoration:none}
|
||||||
|
.topbar{float:right;display:flex;gap:.75rem;align-items:center}
|
||||||
|
.topbar form{display:inline}
|
||||||
|
.topbar button.reset-sm{
|
||||||
|
background:#dc2626;
|
||||||
|
color:#fff;
|
||||||
|
border:none;
|
||||||
|
border-radius:.4rem;
|
||||||
|
padding:.4rem .8rem;
|
||||||
|
font-weight:600;
|
||||||
|
cursor:pointer;
|
||||||
|
font-size:.9rem;
|
||||||
|
}
|
||||||
|
.topbar button.reset-sm:hover{background:#b91c1c}
|
||||||
.flash{padding:.8rem;background:#064e3b;border-radius:.5rem;margin-bottom:1rem}
|
.flash{padding:.8rem;background:#064e3b;border-radius:.5rem;margin-bottom:1rem}
|
||||||
.flash.error{background:#450a0a}
|
.flash.error{background:#450a0a}
|
||||||
.reset-box{margin-top:2rem;padding:1rem;background:#450a0a;border:1px solid #7f1d1d;border-radius:.5rem}
|
.reset-box{display:none}
|
||||||
.reset-box form{display:inline}
|
|
||||||
.reset-box button{background:#dc2626;color:#fff}
|
|
||||||
.reset-box button:hover{background:#b91c1c}
|
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div class="container">
|
<div class="container">
|
||||||
|
<div class="topbar">
|
||||||
|
<form method="POST" action="{{ url_for('admin_reset_system') }}" onsubmit="return confirm('ARE YOU SURE? This will delete ALL requests and ALL uploaded files. This cannot be undone.')">
|
||||||
|
<button type="submit" class="reset-sm">Reset System</button>
|
||||||
|
</form>
|
||||||
<a href="{{ url_for('admin_logout') }}" class="logout">Log out</a>
|
<a href="{{ url_for('admin_logout') }}" class="logout">Log out</a>
|
||||||
|
</div>
|
||||||
<h1>Theme Song Booth — Admin Dashboard</h1>
|
<h1>Theme Song Booth — Admin Dashboard</h1>
|
||||||
|
|
||||||
{% with messages = get_flashed_messages(with_categories=true) %}
|
{% with messages = get_flashed_messages(with_categories=true) %}
|
||||||
|
|
|
||||||
Reference in a new issue