init
This commit is contained in:
14
backend-django/templates/admin/base_site.html
Normal file
14
backend-django/templates/admin/base_site.html
Normal file
@@ -0,0 +1,14 @@
|
||||
{% extends "admin/base.html" %}
|
||||
|
||||
{% block title %}{% if subtitle %}{{ subtitle }} | {% endif %}{{ title }} | {{ site_title|default:_('Django site admin') }}{% endblock %}
|
||||
|
||||
{% block branding %}
|
||||
<script>
|
||||
function askBeforeOpeningOgure() {
|
||||
return confirm("Ogure NG est probablement déjà ouvert dans un autre onglet, auquel cas vous pouvez y revenir en fermant l'onglet actuel.\n\nSouhaitez-vous quand même ouvrir une nouvelle instance d'Ogure NG dans un autre onglet ?");
|
||||
}
|
||||
</script>
|
||||
<h1 id="site-name"><a href="/" target="_blank" onclick="return askBeforeOpeningOgure(this);">{{ site_header|default:_('OGURE NG') }}</a></h1>
|
||||
{% endblock %}
|
||||
|
||||
{% block nav-global %}{% endblock %}
|
||||
118
backend-django/templates/charts_change_list.html
Normal file
118
backend-django/templates/charts_change_list.html
Normal file
File diff suppressed because one or more lines are too long
20
backend-django/templates/registration/base_generic.html
Normal file
20
backend-django/templates/registration/base_generic.html
Normal file
@@ -0,0 +1,20 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="fr">
|
||||
<head>
|
||||
{% block title %}<title>Authentification</title>{% endblock %}
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="stylesheet" href="">
|
||||
<!-- Add additional CSS in static file -->
|
||||
{% load static %}
|
||||
<link rel="stylesheet" href="{% static 'registration/bootstrap.min.css' %}">
|
||||
</head>
|
||||
<body style="">
|
||||
<div class="container-fluid"
|
||||
style="min-height: 100%; min-height: 100vh; display: flex; align-items: center;justify-content: center;">
|
||||
<div class="jumbotron">
|
||||
{% block content %}{% endblock %}
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
9
backend-django/templates/registration/logged_out.html
Normal file
9
backend-django/templates/registration/logged_out.html
Normal file
@@ -0,0 +1,9 @@
|
||||
{% extends "registration/base_generic.html" %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
<h1 class="display-4">Déconnecté!</h1>
|
||||
|
||||
<hr>
|
||||
<a class="btn btn-primary" href="{% url 'login'%}">Cliquez ici pour vous reconnecter.</a>
|
||||
{% endblock %}
|
||||
34
backend-django/templates/registration/login.html
Normal file
34
backend-django/templates/registration/login.html
Normal file
@@ -0,0 +1,34 @@
|
||||
{% extends "registration/base_generic.html" %}
|
||||
|
||||
{% block content %}
|
||||
<h1 class="display-4">Bienvenue sur Ogure NG</h1>
|
||||
|
||||
|
||||
{% if user.is_authenticated %}
|
||||
<p>Vous n'avez pas accès à cette page.<br/>
|
||||
<a href="/">Cliquez ici</a> pour continuer.</p>
|
||||
{% else %}
|
||||
|
||||
<br/>
|
||||
<form method="post" action="{% url 'login' %}">
|
||||
{% csrf_token %}
|
||||
<table>
|
||||
<tr>
|
||||
<td>{{ form.username.label_tag }}</td>
|
||||
<td>{{ form.username }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{{ form.password.label_tag }}</td>
|
||||
<td>{{ form.password }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
<hr class="my-4">
|
||||
{% if form.errors %}
|
||||
<p class="lead text-danger">Your username and password didn't match. Please try again.</p>
|
||||
{% endif %}
|
||||
<!-- <a class="btn btn-primary btn-lg" href="#" role="button">Learn more</a>-->
|
||||
<input class="btn btn-primary btn-lg" type="submit" value="Connexion"/>
|
||||
<input type="hidden" name="next" value="{{ next }}"/>
|
||||
{% endif %}
|
||||
</form>
|
||||
{% endblock %}
|
||||
@@ -0,0 +1,13 @@
|
||||
{% extends "admin/base_site.html" %}
|
||||
{% load i18n %}
|
||||
{% block userlinks %}{% url 'django-admindocs-docroot' as docsroot %}{% if docsroot %}<a href="{{ docsroot }}">{% translate 'Documentation' %}</a> / {% endif %}{% translate 'Change password' %} / <a href="{% url 'admin:logout' %}">{% translate 'Log out' %}</a>{% endblock %}
|
||||
{% block breadcrumbs %}
|
||||
<div class="breadcrumbs">
|
||||
<a href="/">{% translate 'Home' %}</a>
|
||||
› {% translate 'Password change' %}
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<p>{% translate 'Your password was changed.' %}</p>
|
||||
{% endblock %}
|
||||
@@ -0,0 +1,57 @@
|
||||
{% extends "admin/base_site.html" %}
|
||||
{% load i18n static %}
|
||||
{% block extrastyle %}{{ block.super }}<link rel="stylesheet" type="text/css" href="{% static "admin/css/forms.css" %}">{% endblock %}
|
||||
{% block userlinks %}{% url 'django-admindocs-docroot' as docsroot %}{% if docsroot %}<a href="{{ docsroot }}">{% translate 'Documentation' %}</a> / {% endif %} {% translate 'Change password' %} / <a href="{% url 'admin:logout' %}">{% translate 'Log out' %}</a>{% endblock %}
|
||||
{% block breadcrumbs %}
|
||||
<div class="breadcrumbs">
|
||||
<a href="/">{% translate 'Home' %}</a>
|
||||
› {% translate 'Password change' %}
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}<div id="content-main">
|
||||
|
||||
<form method="post">{% csrf_token %}
|
||||
<div>
|
||||
{% if form.errors %}
|
||||
<p class="errornote">
|
||||
{% if form.errors.items|length == 1 %}{% translate "Please correct the error below." %}{% else %}{% translate "Please correct the errors below." %}{% endif %}
|
||||
</p>
|
||||
{% endif %}
|
||||
|
||||
|
||||
<p>{% translate 'Please enter your old password, for security’s sake, and then enter your new password twice so we can verify you typed it in correctly.' %}</p>
|
||||
|
||||
<fieldset class="module aligned wide">
|
||||
|
||||
<div class="form-row">
|
||||
{{ form.old_password.errors }}
|
||||
{{ form.old_password.label_tag }} {{ form.old_password }}
|
||||
</div>
|
||||
|
||||
<div class="form-row">
|
||||
{{ form.new_password1.errors }}
|
||||
{{ form.new_password1.label_tag }} {{ form.new_password1 }}
|
||||
{% if form.new_password1.help_text %}
|
||||
<div class="help">{{ form.new_password1.help_text|safe }}</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
<div class="form-row">
|
||||
{{ form.new_password2.errors }}
|
||||
{{ form.new_password2.label_tag }} {{ form.new_password2 }}
|
||||
{% if form.new_password2.help_text %}
|
||||
<div class="help">{{ form.new_password2.help_text|safe }}</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
</fieldset>
|
||||
|
||||
<div class="submit-row">
|
||||
<input type="submit" value="{% translate 'Change my password' %}" class="default">
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</form></div>
|
||||
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user