1
0
mirror of https://github.com/Tygs/0bin.git synced 2023-08-10 21:13:00 +03:00

WIP: add admin views

This commit is contained in:
ksamuel
2020-08-12 09:19:38 +02:00
parent 6843a19fa8
commit 88df4787bf
6 changed files with 216 additions and 45 deletions

32
zerobin/views/admin.tpl Normal file
View File

@ -0,0 +1,32 @@
%if is_authenticated:
<form action="" method="delete">
<div>
<form>
<div class="form-group">
<label>Paste to delete</label>
<input type="text" class="form-control" placeholder="Paste URL or ID">
</div>
<button type="submit" class="btn btn-black">Delete</button>
</form>
</div>
%else:
<form action="/login" method="post">
<div class="login-form">
<form>
<label>Password</label>
<input type="password" class="form-control" placeholder="Password">
<button type="submit" class="btn btn-black">Login</button>
</form>
</div>
</form>
%end
% rebase('base', settings=settings, pastes_count=pastes_count)