mirror of
https://gitlab.crans.org/mediatek/med.git
synced 2025-06-21 21:18:22 +02:00
New admin theme
This commit is contained in:
96
theme/templates/admin/base_site.html
Normal file
96
theme/templates/admin/base_site.html
Normal file
@ -0,0 +1,96 @@
|
||||
{% extends "admin/base.html" %}
|
||||
{% comment %}
|
||||
SPDX-License-Identifier: GPL-3.0-or-later
|
||||
{% endcomment %}
|
||||
|
||||
{% load i18n staticfiles %}
|
||||
|
||||
{% block title %}{{ title }} | {{ request.site.name }}{% endblock %}
|
||||
|
||||
{% block branding %}
|
||||
<strong id="site-name">
|
||||
<a href="/">
|
||||
<img src="{% static "images/logo.png" %}" height="40px" alt="{{ request.site.name }}" />
|
||||
</a>
|
||||
</strong>
|
||||
{% endblock %}
|
||||
|
||||
{% block usertools %}
|
||||
{% if user.is_authenticated %}
|
||||
<div id="user-tools">
|
||||
{% block welcome-msg %}
|
||||
{% trans 'Welcome,' %}
|
||||
<strong>{% firstof user.get_short_name user.get_username %}</strong>.
|
||||
{% endblock %}
|
||||
{% block userlinks %}
|
||||
{# Link to our apps outside of admin #}
|
||||
<a href="{% url 'index' %}">{% trans 'Home' %}</a> /
|
||||
|
||||
{% if available_apps %}
|
||||
{# When in admin site, list all admin pages and documentation #}
|
||||
<span class="dropdown">
|
||||
<a href="{% url 'admin:index' %}">{% trans 'View admin' %}</a>
|
||||
<span class="dropdown-content">
|
||||
{% for app in available_apps %}
|
||||
{% for model in app.models %}
|
||||
{% if model.admin_url %}
|
||||
<a href="{{ model.admin_url }}">{{ model.name }}</a>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% endfor %}
|
||||
{% if user.is_active and user.is_superuser %}
|
||||
{% url 'django-admindocs-docroot' as docsroot %}
|
||||
{% if docsroot %}
|
||||
<a href="{{ docsroot }}">{% trans 'Documentation' %}</a>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
</span>
|
||||
</span> /
|
||||
{% elif user.is_staff %}
|
||||
{# When not in admin site, but user is staff then add a link #}
|
||||
<a href="{% url 'admin:index' %}">{% trans 'View admin' %}</a> /
|
||||
{% endif %}
|
||||
<a href="{% url 'logout' %}">{% trans 'Log out' %}</a>
|
||||
{% endblock %}
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
{% block extrastyle %}
|
||||
<link rel="stylesheet" type="text/css" href="{% static "css/admin.css" %}"/>
|
||||
|
||||
{# Favicon #}
|
||||
<link rel="apple-touch-icon" sizes="180x180" href="{% static "favicon/apple-touch-icon.png" %}">
|
||||
<link rel="icon" type="image/png" sizes="32x32" href="{% static "favicon/favicon-32x32.png" %}">
|
||||
<link rel="icon" type="image/png" sizes="16x16" href="{% static "favicon/favicon-16x16.png" %}">
|
||||
<link rel="manifest" href="{% static "favicon/site.webmanifest" %}">
|
||||
<link rel="mask-icon" href="{% static "favicon/safari-pinned-tab.svg" %}" color="#5bbad5">
|
||||
<link rel="shortcut icon" href="{% static "favicon/favicon.ico" %}">
|
||||
<meta name="msapplication-TileColor" content="#da532c">
|
||||
<meta name="msapplication-config" content="{% static "favicon/browserconfig.xml" %}">
|
||||
<meta name="theme-color" content="#ffffff">
|
||||
{% endblock %}
|
||||
|
||||
{% block footer %}
|
||||
{% if not is_popup %}
|
||||
<div id="footer">
|
||||
<form action="{% url 'set_language' %}" method="post">
|
||||
{% csrf_token %}
|
||||
<select title="language" name="language" onchange="this.form.submit()">
|
||||
{% get_current_language as LANGUAGE_CODE %}
|
||||
{% get_available_languages as LANGUAGES %}
|
||||
{% get_language_info_list for LANGUAGES as languages %}
|
||||
{% for language in languages %}
|
||||
<option value="{{ language.code }}"{% if language.code == LANGUAGE_CODE %} selected{% endif %}>
|
||||
{{ language.name_local }} ({{ language.code }})
|
||||
</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
<noscript>
|
||||
<input type="submit">
|
||||
</noscript>
|
||||
Mediatek 2017-2020 — <a href="mailto:club-med@crans.org">Nous contactez</a>
|
||||
</form>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endblock %}
|
16
theme/templates/registration/logged_out.html
Normal file
16
theme/templates/registration/logged_out.html
Normal file
@ -0,0 +1,16 @@
|
||||
{% extends "registration/logged_out.html" %}
|
||||
{% comment %}
|
||||
SPDX-License-Identifier: GPL-3.0-or-later
|
||||
{% endcomment %}
|
||||
{% load i18n %}
|
||||
|
||||
{% block breadcrumbs %}
|
||||
<div class="breadcrumbs">
|
||||
<a href="{% url 'index' %}">{% trans 'Home' %}</a>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<p>{% trans "Thanks for spending some quality time with the Web site today." %}</p>
|
||||
<p><a href="{% url 'index' %}">{% trans 'Log in again' %}</a></p>
|
||||
{% endblock %}
|
8
theme/templates/registration/login.html
Normal file
8
theme/templates/registration/login.html
Normal file
@ -0,0 +1,8 @@
|
||||
{% extends "admin/login.html" %}
|
||||
{% comment %}
|
||||
SPDX-License-Identifier: GPL-2.0-or-later
|
||||
{% endcomment %}
|
||||
|
||||
{% load i18n %}
|
||||
|
||||
{% block title %}{% trans "Log in" %}{% endblock %}
|
11
theme/templates/registration/password_change_done.html
Normal file
11
theme/templates/registration/password_change_done.html
Normal file
@ -0,0 +1,11 @@
|
||||
{% extends "registration/password_change_done.html" %}
|
||||
{% comment %}
|
||||
SPDX-License-Identifier: GPL-3.0-or-later
|
||||
{% endcomment %}
|
||||
{% load i18n %}
|
||||
|
||||
{% block breadcrumbs %}
|
||||
<div class="breadcrumbs">
|
||||
<a href="{% url 'index' %}">{% trans 'Home' %}</a> › {% trans 'Password change' %}
|
||||
</div>
|
||||
{% endblock %}
|
11
theme/templates/registration/password_change_form.html
Normal file
11
theme/templates/registration/password_change_form.html
Normal file
@ -0,0 +1,11 @@
|
||||
{% extends "registration/password_change_form.html" %}
|
||||
{% comment %}
|
||||
SPDX-License-Identifier: GPL-3.0-or-later
|
||||
{% endcomment %}
|
||||
{% load i18n %}
|
||||
|
||||
{% block breadcrumbs %}
|
||||
<div class="breadcrumbs">
|
||||
<a href="{% url 'index' %}">{% trans 'Home' %}</a> › {% trans 'Password change' %}
|
||||
</div>
|
||||
{% endblock %}
|
11
theme/templates/registration/password_reset_complete.html
Normal file
11
theme/templates/registration/password_reset_complete.html
Normal file
@ -0,0 +1,11 @@
|
||||
{% extends "registration/password_reset_complete.html" %}
|
||||
{% comment %}
|
||||
SPDX-License-Identifier: GPL-3.0-or-later
|
||||
{% endcomment %}
|
||||
{% load i18n %}
|
||||
|
||||
{% block breadcrumbs %}
|
||||
<div class="breadcrumbs">
|
||||
<a href="{% url 'index' %}">{% trans 'Home' %}</a> › {% trans 'Password reset' %}
|
||||
</div>
|
||||
{% endblock %}
|
11
theme/templates/registration/password_reset_confirm.html
Normal file
11
theme/templates/registration/password_reset_confirm.html
Normal file
@ -0,0 +1,11 @@
|
||||
{% extends "registration/password_reset_confirm.html" %}
|
||||
{% comment %}
|
||||
SPDX-License-Identifier: GPL-3.0-or-later
|
||||
{% endcomment %}
|
||||
{% load i18n %}
|
||||
|
||||
{% block breadcrumbs %}
|
||||
<div class="breadcrumbs">
|
||||
<a href="{% url 'index' %}">{% trans 'Home' %}</a> › {% trans 'Password reset confirmation' %}
|
||||
</div>
|
||||
{% endblock %}
|
11
theme/templates/registration/password_reset_done.html
Normal file
11
theme/templates/registration/password_reset_done.html
Normal file
@ -0,0 +1,11 @@
|
||||
{% extends "registration/password_reset_done.html" %}
|
||||
{% comment %}
|
||||
SPDX-License-Identifier: GPL-3.0-or-later
|
||||
{% endcomment %}
|
||||
{% load i18n %}
|
||||
|
||||
{% block breadcrumbs %}
|
||||
<div class="breadcrumbs">
|
||||
<a href="{% url 'index' %}">{% trans 'Home' %}</a> › {% trans 'Password reset' %}
|
||||
</div>
|
||||
{% endblock %}
|
13
theme/templates/registration/password_reset_email.html
Normal file
13
theme/templates/registration/password_reset_email.html
Normal file
@ -0,0 +1,13 @@
|
||||
{% load i18n %}{% autoescape off %}
|
||||
{% blocktrans %}You're receiving this email because you requested a password reset for your user account at {{ site_name }}.{% endblocktrans %}
|
||||
|
||||
{% trans "Please go to the following page and choose a new password:" %}
|
||||
{% block reset_link %}
|
||||
{{ protocol }}://{{ domain }}{% url 'password_reset_confirm' uidb64=uid token=token %}
|
||||
{% endblock %}
|
||||
|
||||
{% trans "Thanks for using our site!" %}
|
||||
|
||||
{% blocktrans %}The {{ site_name }} team{% endblocktrans %}
|
||||
|
||||
{% endautoescape %}
|
11
theme/templates/registration/password_reset_form.html
Normal file
11
theme/templates/registration/password_reset_form.html
Normal file
@ -0,0 +1,11 @@
|
||||
{% extends "registration/password_reset_form.html" %}
|
||||
{% comment %}
|
||||
SPDX-License-Identifier: GPL-3.0-or-later
|
||||
{% endcomment %}
|
||||
{% load i18n %}
|
||||
|
||||
{% block breadcrumbs %}
|
||||
<div class="breadcrumbs">
|
||||
<a href="{% url 'index' %}">{% trans 'Home' %}</a> › {% trans 'Password reset' %}
|
||||
</div>
|
||||
{% endblock %}
|
Reference in New Issue
Block a user