Init
This commit is contained in:
58
templates/admin/base.html
Executable file
58
templates/admin/base.html
Executable file
@ -0,0 +1,58 @@
|
||||
{% extends 'admin/base.html' %}
|
||||
|
||||
{% block extrahead %}{{ block.super }}
|
||||
<style>
|
||||
:root {
|
||||
--primary: #79aec8;
|
||||
--secondary: #417690;
|
||||
--accent: #f5dd5d;
|
||||
--primary-fg: #fff;
|
||||
|
||||
--body-fg: #333;
|
||||
--body-bg: #fff;
|
||||
--body-quiet-color: #666;
|
||||
--body-loud-color: #000;
|
||||
|
||||
--header-color: #ffc;
|
||||
--header-branding-color: var(--accent);
|
||||
--header-bg: var(--secondary);
|
||||
--header-link-color: var(--primary-fg);
|
||||
|
||||
--breadcrumbs-fg: #c4dce8;
|
||||
--breadcrumbs-link-fg: var(--body-bg);
|
||||
--breadcrumbs-bg: var(--primary);
|
||||
|
||||
--link-fg: #447e9b;
|
||||
--link-hover-color: #036;
|
||||
--link-selected-fg: #5b80b2;
|
||||
|
||||
--hairline-color: #e8e8e8;
|
||||
--border-color: #ccc;
|
||||
|
||||
--error-fg: #ba2121;
|
||||
|
||||
--message-success-bg: #dfd;
|
||||
--message-warning-bg: #ffc;
|
||||
--message-error-bg: #ffefef;
|
||||
|
||||
--darkened-bg: #f8f8f8; /* A bit darker than --body-bg */
|
||||
--selected-bg: #e4e4e4; /* E.g. selected table cells */
|
||||
--selected-row: #ffc;
|
||||
|
||||
--button-fg: #fff;
|
||||
--button-bg: var(--primary);
|
||||
--button-hover-bg: #609ab6;
|
||||
--default-button-bg: var(--secondary);
|
||||
--default-button-hover-bg: #205067;
|
||||
--close-button-bg: #888; /* Previously #bbb, contrast 1.92 */
|
||||
--close-button-hover-bg: #747474;
|
||||
--delete-button-bg: #ba2121;
|
||||
--delete-button-hover-bg: #a41515;
|
||||
|
||||
--object-tools-fg: var(--button-fg);
|
||||
--object-tools-bg: var(--close-button-bg);
|
||||
--object-tools-hover-bg: var(--close-button-hover-bg);
|
||||
}
|
||||
|
||||
</style>
|
||||
{% endblock %}
|
15
templates/registration/password_reset_complete.html
Normal file
15
templates/registration/password_reset_complete.html
Normal file
@ -0,0 +1,15 @@
|
||||
{% extends 'base.html' %}
|
||||
|
||||
{% block title %}Hasło zostało zmienione{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<div class="section">
|
||||
<span class="title">
|
||||
Hasło zostało zmienione
|
||||
</span>
|
||||
<br>
|
||||
<span>
|
||||
Możesz się już <a href="{% url 'login' %}">zalogować</a>.
|
||||
</span>
|
||||
</div>
|
||||
{% endblock %}
|
19
templates/registration/password_reset_confirm.html
Normal file
19
templates/registration/password_reset_confirm.html
Normal file
@ -0,0 +1,19 @@
|
||||
{% extends 'base.html' %}
|
||||
{% load crispy_forms_filters %}
|
||||
|
||||
{% block title %}Wpisz nowe hasło{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<div class="section">
|
||||
<div class="is-flex is-flex-direction-column">
|
||||
<span class="title mx-auto">
|
||||
Wpisz nowe hasło
|
||||
</span>
|
||||
<form method="POST" class="is-flex is-flex-direction-column">
|
||||
{% csrf_token %}
|
||||
{{ form | crispy }}
|
||||
<input class="button is-success mx-auto" type="submit" value="Zmień hasło">
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
12
templates/registration/password_reset_done.html
Normal file
12
templates/registration/password_reset_done.html
Normal file
@ -0,0 +1,12 @@
|
||||
{% extends 'base.html' %}
|
||||
|
||||
{% block title %}Email wysłany{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<div class="section">
|
||||
<span class="title">Sprawdź swoją skrzynkę pocztową.</span>
|
||||
<p>
|
||||
Wiadomość z linkiem do zmiany hasła została wysłana na podany email. W razie jej braku, prosimy o sprawdzenie spamu.
|
||||
</p>
|
||||
</div>
|
||||
{% endblock %}
|
16
templates/registration/password_reset_email.html
Normal file
16
templates/registration/password_reset_email.html
Normal file
@ -0,0 +1,16 @@
|
||||
{% autoescape on %}
|
||||
Dzień dobry
|
||||
|
||||
Otrzymują Państwo tą wiadomość, gdyż skorzystano z opcji resetu hasła na stronie https://puchar.lo5.bielsko.pl.
|
||||
|
||||
Aby wprowadzić nowe hasło, proszę przejść na stronę, której adres widnieje poniżej:
|
||||
{% block reset_link %}
|
||||
{{ protocol }}://{{ domain }}{% url 'password_reset_confirm' uidb64=uid token=token %}
|
||||
{% endblock %}
|
||||
|
||||
Dziękujemy za korzystanie z naszej strony!
|
||||
|
||||
V Liceum Ogólnokształcące w Bielsku-Białej
|
||||
|
||||
Wiadomość ta została wysłana automatycznie, prosimy na nią nie odpowiadać.
|
||||
{% endautoescape %}
|
20
templates/registration/password_reset_form.html
Normal file
20
templates/registration/password_reset_form.html
Normal file
@ -0,0 +1,20 @@
|
||||
{% extends 'base.html' %}
|
||||
{% load crispy_forms_filters %}
|
||||
|
||||
{% block title %}Zmiana hasła{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<div class="section">
|
||||
<div class="is-flex is-flex-direction-column">
|
||||
<span class="title has-text-centered my-2">
|
||||
Wpisz adres email podany w trakcie rejestracji.
|
||||
Dostarczona zostanie na niego wiadomość zawierająca link umożliwiający zmianę hasła
|
||||
</span>
|
||||
<form method="POST" class="is-flex is-flex-direction-column">
|
||||
{% csrf_token %}
|
||||
{{ form | crispy }}
|
||||
<input type="submit" class="button is-success mx-auto" value="Wyślij wiadomość">
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
Reference in New Issue
Block a user