kopia lustrzana https://github.com/Aonrud/ila-microblog.pub
rodzic
a1b1dcebc8
commit
eb131b0c7a
|
@ -301,6 +301,15 @@ nav.flexbox {
|
|||
* Admin pages
|
||||
*/
|
||||
|
||||
.login {
|
||||
margin: 5em auto;
|
||||
max-width: 25em;
|
||||
background: $background;
|
||||
border: 1px solid $border;
|
||||
padding: 2em 2em calc(2em - 10px);
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.notification.new {
|
||||
background: #5cb85c20;
|
||||
}
|
||||
|
|
|
@ -53,7 +53,9 @@
|
|||
</div>
|
||||
{% endif %}
|
||||
{% block content %}{% endblock %}
|
||||
{% block footer %}
|
||||
{% include "footer.html" %}
|
||||
{% endblock %}
|
||||
</div>
|
||||
{% if is_admin %}
|
||||
<script src="{{ BASE_URL }}/static/common-admin.js?v={{ JS_HASH }}"></script>
|
||||
|
|
|
@ -0,0 +1,23 @@
|
|||
{%- import "utils.html" as utils with context -%}
|
||||
{% extends "layout.html" %}
|
||||
|
||||
{% block head %}
|
||||
<meta name="robots" content="noindex, nofollow">
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<div class="login">
|
||||
{% if error %}
|
||||
<p class="primary-color">Invalid password.</p>
|
||||
{% endif %}
|
||||
<form class="form" action="{{ BASE_URL }}/admin/login" method="POST">
|
||||
<input type="hidden" name="csrf_token" value="{{ csrf_token }}">
|
||||
<input type="hidden" name="redirect" value="{{ redirect }}">
|
||||
<p><input type="password" placeholder="password" name="password" autofocus class="form-control" /></p>
|
||||
|
||||
<p><input type="submit" value="login" class="btn btn-primary" /></p>
|
||||
</form>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
||||
{% block footer %}{% endblock %}
|
Ładowanie…
Reference in New Issue