Ajout du thème de base authentic2
This commit is contained in:
commit
60d46c7f1d
|
@ -0,0 +1,86 @@
|
|||
html, body {
|
||||
font-size: 16px;
|
||||
}
|
||||
body {
|
||||
background: #fff none repeat scroll 0 0;
|
||||
color: #222;
|
||||
cursor: auto;
|
||||
font-family: "Open Sans",sans-serif;
|
||||
font-style: normal;
|
||||
font-weight: normal;
|
||||
line-height: 24px;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
/* @media screen and (max-width: 500px) { */
|
||||
html {
|
||||
background: none;
|
||||
}
|
||||
|
||||
div#wrap, div#content {
|
||||
margin: 0px;
|
||||
padding: 0px;
|
||||
border: 0px;
|
||||
border-radius: 0px;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
div#wrap {
|
||||
margin: 0px auto;
|
||||
width: 300px;
|
||||
}
|
||||
|
||||
/* hide unneeded elements */
|
||||
div#wrap > a, #splash, #footer, ul.ui-tabs-nav, div#user, input[type=submit][name=cancel] {
|
||||
display: none;
|
||||
}
|
||||
/* } */
|
||||
input:not([type=submit]) {
|
||||
width: calc(100% - 12px);
|
||||
margin-left: 0px;
|
||||
}
|
||||
|
||||
input[type=submit] {
|
||||
background-color: #e01f2c;
|
||||
border: 0 none;
|
||||
font-family: "Open Sans",sans-serif;
|
||||
font-size: 16px;
|
||||
text-transform: uppercase;
|
||||
margin-top: 1rem;
|
||||
border-radius: 4px;
|
||||
padding: 1rem 2rem 1.0625rem;
|
||||
position: relative;
|
||||
text-align: center;
|
||||
text-decoration: none;
|
||||
transition: background-color 300ms ease-out 0s;
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
input[type=submit][name=login-password-submit] {
|
||||
width: calc(50% - 7px);
|
||||
margin-right: 10px;
|
||||
}
|
||||
|
||||
input[type=submit][name=cancel] {
|
||||
width: calc(50% - 7px);
|
||||
}
|
||||
|
||||
|
||||
p {
|
||||
font-family: inherit;
|
||||
font-size: 1rem;
|
||||
font-weight: normal;
|
||||
line-height: 1.6;
|
||||
margin-bottom: 1.25rem;
|
||||
text-rendering: optimizelegibility;
|
||||
}
|
||||
|
||||
* {
|
||||
color: black;
|
||||
font-family: "Open Sans",sans-serif;
|
||||
font-size: 0.875rem;
|
||||
font-style: normal;
|
||||
font-weight: normal;
|
||||
}
|
|
@ -0,0 +1,10 @@
|
|||
{% load i18n %}
|
||||
<html>
|
||||
<body style="width: 90ex">
|
||||
<p>Vous avez demandé l'ouverture d'un compte sur Les Échos Solutions.
|
||||
Pour activer ce compte veuillez <a href="{{ registration_url }}">cliquer
|
||||
ici</a>
|
||||
</p>
|
||||
<p>Ce lien est valable {{ expiration_days }} jours.</p>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,6 @@
|
|||
{% load i18n %}{% autoescape off %}Vous avez demandé l'ouverture d'un compte sur Les Échos Solutions. Pour activer
|
||||
ce compte veuillez cliquer sur le lien suivant :
|
||||
|
||||
{{ registration_url }}
|
||||
|
||||
Ce lien est valable {{ expiration_days }} jours.{% endautoescape %}
|
|
@ -0,0 +1 @@
|
|||
Ouverture de compte sur Les Échos Solutions
|
|
@ -0,0 +1,61 @@
|
|||
{% load i18n authentic2 %}<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<link href='//fonts.googleapis.com/css?family=Domine:400,700|Open+Sans:400,600,700,800|PT+Sans+Narrow:400,700' rel='stylesheet' type='text/css'>
|
||||
<link rel="stylesheet" href="{{ STATIC_URL }}authentic2/css/style.css" />
|
||||
<link rel="stylesheet" href="{{ STATIC_URL }}lesechos/style.css" />
|
||||
<title>{% block title %}User test{% endblock %}</title>
|
||||
{% block extra_scripts %}
|
||||
{% endblock %}
|
||||
{% renderblock "css" %}
|
||||
{% renderblock "js" %}
|
||||
</head>
|
||||
|
||||
<body {% block bodyargs %}{% endblock %} >
|
||||
<div id="wrap">
|
||||
<a href="/"><div id="header">
|
||||
{% block header %}
|
||||
<h1>Authentic 2</h1>
|
||||
<span>{% trans "Versatile Identity Management Server" %}</span>
|
||||
{% endblock %}
|
||||
</div></a>
|
||||
|
||||
<div id="splash"></div>
|
||||
|
||||
<div id="content">
|
||||
{% if request.user.is_authenticated %}
|
||||
<div id="user">
|
||||
{% block user %}
|
||||
<p>
|
||||
{% blocktrans with request.user.get_full_name as username %}Hello {{ username }}.{% endblocktrans %}
|
||||
<a id="logout" href="{% url 'auth_logout' %}">{% trans "Logout" %}</a>
|
||||
</p>
|
||||
{% endblock %}
|
||||
</div>
|
||||
{% endif %}
|
||||
{% block messages %}
|
||||
{% if messages %}
|
||||
<ul class="messages">
|
||||
{% for message in messages %}
|
||||
<li{% if message.tags %} class="{{ message.tags }}"{% endif %}>{{ message }}</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
{% block content %}{% endblock %}
|
||||
</div>
|
||||
|
||||
<div id="footer">
|
||||
{% block footer %}
|
||||
Copyright © 2013 Entr'ouvert — {{ AUTHENTIC2_VERSION }}
|
||||
{% endblock %}
|
||||
</div>
|
||||
</div>
|
||||
{% block js-endpage %}
|
||||
{% renderblock "js-endpage" %}
|
||||
{% endblock %}
|
||||
</body>
|
||||
|
||||
</html>
|
|
@ -0,0 +1,17 @@
|
|||
{% extends "authentic2/base-page.html" %}
|
||||
{% load i18n gadjo authentic2 %}
|
||||
|
||||
{% block title %}
|
||||
{% trans "Log in" %}
|
||||
{% endblock %}
|
||||
|
||||
{% block extra_scripts %}
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<div id="a2-login-forms">
|
||||
{% for id, login_block in blocks.iteritems %}
|
||||
{{ login_block.content|safe }}
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endblock %}
|
Reference in New Issue