Commit dddd0b2a authored by Jean-Baptiste Pasquier's avatar Jean-Baptiste Pasquier

Merge branch 'sib-231' into 'master'

feat: add template for password reset and password reset done

See merge request !28
parents fb056cb7 14a77323
Pipeline #6072 passed with stage
in 32 seconds
body {
background-color: #3d4057;
border: none;
color: white;
font-family: Open Sans, sans-serif;
margin: 0;
padding: 0;
}
#content {
border: none;
height: 100%;
margin: 0;
text-align: center;
width: 100%;
}
input {
align-content: center;
align-items: center;
background-color: white;
border: 1px solid grey;
display: inline-flex;
height: 2.5em;
}
input:hover, input:active, input:focus {
border-color: #424242;
}
input[type="submit"] {
box-shadow: 4px 4px 8px 0 rgba(0, 0, 0, 0.2);
color: black;
height: 3em;
justify-content: center;
margin: 1em;
padding: 2px 14px;
transition: 0.2s;
}
input[type="submit"]:hover {
background-color: #424242;
color: white;
}
body {
background-color: #3d4057;
margin: 0;
padding: 0;
}
body *:not(.sib-oidc-authorization-page-button) {
color: white;
font-family: Open Sans, sans-serif;
}
.sib-oidc-authorization-page {
height: 100vh;
text-align: center;
width: 100vw;
}
.sib-oidc-authorization-page-button {
display: inline-flex;
align-content: center;
justify-content: center;
align-items: center;
border: 1px solid grey;
box-shadow: 4px 4px 8px 0 rgba(0, 0, 0, 0.2);
transition: 0.2s;
.sib-oidc-authorization-page .decline-button,
.sib-oidc-authorization-page .accept-button {
width: 10em;
height: 3em;
padding: 2px 14px;
margin: 1em;
}
.sib-oidc-authorization-page .decline-button:hover {
background-color: darkred;
color: white;
width: 10em;
}
.sib-oidc-authorization-page .accept-button:hover {
background-color: darkslategrey;
......
<!DOCTYPE html>
<html lang="en">
<head>
<title>{% block title %}My amazing site{% endblock %}</title>
<meta charset="UTF-8">
<title>{% block title %}{% endblock %}</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="/styles/index.css">
{% block supplementary_css %}{% endblock %}
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Open+Sans:300,400,400i,600,700&amp;amp;subset=latin-ext">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Open+Sans:300,300i,400,400i,600,600i,700,700i,800,800i">
</head>
<body>
......
{% extends "oidc_provider/base.html" %}
{% extends "base.html" %}
{% load i18n %}
{% load static %}
......@@ -7,6 +7,7 @@
{% endblock %}
{% block supplementary_css %}
<link rel="stylesheet" href="{% static 'base.css' %}"/>
<link rel="stylesheet" href="{% static 'oidc_provider/authorize.css' %}"/>
{% endblock %}
......
<html>
<head>
<meta charset="UTF-8">
<title>{% block title %}{% endblock %}</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="/styles/index.css">
{% block supplementary_css %}
{% endblock %}
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Open+Sans:300,400,400i,600,700&amp;amp;subset=latin-ext">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Open+Sans:300,300i,400,400i,600,600i,700,700i,800,800i">
</head>
<body>
{% block content %}
{% endblock %}
</body>
</html>
\ No newline at end of file
{% extends "base.html" %}
{% load i18n %}
{% load static %}
{% block title %}
{% trans "Email Sent" %}
{% endblock %}
{% block supplementary_css %}
<link rel="stylesheet" href="{% static 'base.css' %}"/>
{% endblock %}
{% block content %}
<h1>{% trans "Check your inbox." %}</h1>
<p>{% trans "We've emailed you instructions for setting your password. You should receive the email shortly!" %}</p>
{% endblock %}
{% extends "base.html" %}
{% load i18n %}
{% load static %}
{% block title %}
{% trans "Forgot your password?" %}
{% endblock %}
{% block supplementary_css %}
<link rel="stylesheet" href="{% static 'base.css' %}"/>
{% endblock %}
{% block content %}
<h1>{% trans "Forgot your password?" %}</h1>
<p>{% trans "Enter your email address below, and we'll email instructions for setting a new one." %}</p>
<form method="POST">
{% csrf_token %}
{{ form.as_p }}
<input type="submit" value="Send me instructions!">
</form>
{% endblock %}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment