Commit 5459a815 authored by Benoit Alessandroni's avatar Benoit Alessandroni

Adding some styles to the login workflow

parent 695e1299
{% extends "base.html" %}
{% block content %}
<h1>Request for Permission</h1>
<p>Client <strong>{{ client.name }}</strong> would like to access this information of you ...</p>
<form method="post" action="{% url 'oidc_provider:authorize' %}">
{% csrf_token %}
{{ hidden_inputs }}
<ul>
{% for scope in scopes %}
<li><strong>{{ scope.name }}</strong> <br><i>{{ scope.description }}</i></li>
{% endfor %}
</ul>
<input type="submit" value="Decline" />
<input name="allow" type="submit" value="Authorize" />
</form>
{% endblock %}
\ No newline at end of file
<!DOCTYPE html>
<html lang="en">
<head>
{% load staticfiles %}
<title>{% block title %}Coopstarter{% endblock %}</title>
<style>
/* Reset*/
......@@ -413,6 +414,11 @@
button{
outline: none;
}
.helptext {
margin-bottom: 20px;
margin-top: -10px;
}
/* ----------------- CHECKBOX ---------------------------*/
......@@ -489,7 +495,7 @@
}
#splash .block_log{
max-width: 30rem;
max-width: 50rem;
margin-bottom: var(--marge-base);
}
......@@ -519,7 +525,7 @@
<body>
<div id="splash" class='no-sidebar container'>
<figure class="logo">
<!-- <img src="" alt="logo de la société Coopstarter"> -->
<img src="{% static 'coopstarter/img/logo.png' %}" alt="logo de la société Coopstarter">
</figure>
<h2 class="title_lead">
......
{% extends "django_registration/registration_base.html" %}
{% load staticfiles %}
{% load i18n %}
{% block title %}{% trans "Register for an account" %}{% endblock %}
{% block content %}
<div class="no-sidebar contener" id="splash">
<div class="flex">
<div class="block_log">
<figure class="img_log">
<img src="{% static 'coopstarter/img/mentor.png' %}" alt="Create your account">
</figure>
<form method='post' action=''>
{% csrf_token %}
<sib-form-label-text>
<label>
<div>
{{ form.username.label_tag }}
</div>
</label>
{{ form.username }}
</sib-form-label-text>
<div class="helptext">
Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.
</div>
<sib-form-label-text>
<label>
<div>
{{ form.email.label_tag }}
</div>
</label>
{{ form.email }}
</sib-form-label-text>
<sib-form-label-text>
<label>
<div>
{{ form.password1.label_tag }}
</div>
</label>
{{ form.password1 }}
</sib-form-label-text>
<sib-form-label-text>
<label>
<div>
{{ form.password2.label_tag }}
</div>
</label>
{{ form.password2 }}
</sib-form-label-text>
<div class="helptext">
Enter the same password as before, for verification.
</div>
<input type="submit" class="button_base" value="{% trans 'Send activation email' %}" />
</form>
</div>
</div>
</div>
{% endblock %}
{% extends "base.html" %}
{% load staticfiles %}
{% block content %}
<div class="no-sidebar contener" id="splash">
{% if form.errors %}
<p>Your username and password didn't match. Please try again.</p>
<p class="flex">
Your username and password didn't match. Please try again.
</p>
{% endif %}
{% if next %}
{% if user.is_authenticated %}
<p>
<p class="flex">
Your account doesn't have access to this page. To proceed,
please login with an account that has access.
</p>
......@@ -19,7 +23,7 @@
<div class="flex" id="splash-index">
<div class="block_log">
<figure class="img_log">
<img src="images/mentor.png" alt="Connect as mentor">
<img src="{% static 'coopstarter/img/mentor.png' %}" alt="Connect to the knowledge base">
</figure>
<form class="block_creat_count" method="post" action="{% url 'login' %}">
{% csrf_token %}
......@@ -46,34 +50,38 @@
</div>
</div>
<p class="flex">
<a href="/accounts/register/">
Don't have an account ? Register here
</a>
</p>
{# Assumes you setup the password_reset view in your URLconf #}
<p>
<p class="flex">
<a href="{% url 'password_reset' %}">
Lost password?
</a>
</p>
<p>
or login using another authentification provider
</p>
<div>
<p class="flex">
or login using another authentification provider
</p>
<form method="post" action="{% url 'oidc_login' %}">
{% csrf_token %}
<table>
<tr>
<td>
<label for="id_subject">
email, web-id, or provider url:
</label>
</td>
<td>
<input type="text" name="subject" required id="id_subject"/>
</td>
</tr>
</table>
<form method="post" class="block_creat_count" action="{% url 'oidc_login' %}">
{% csrf_token %}
<sib-form-label-text>
<label for="id_subject">
<div>
Email, WebID, or provider url:
</div>
</label>
<input type="text" name="subject" required id="id_subject"/>
</sib-form-label-text>
<input type="submit" value="login" />
<input type="hidden" name="next" value="{{ next }}" />
</form>
<input class="button_base" type="submit" value="login" />
<input type="hidden" name="next" value="{{ next }}" />
</form>
</div>
</div>
{% 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