Initial commit

This commit is contained in:
2024-08-27 20:33:44 +02:00
commit 1f1832267d
14794 changed files with 1599592 additions and 0 deletions

View File

@@ -0,0 +1,78 @@
{% extends "wagtailadmin/generic/base.html" %}
{% load i18n wagtailadmin_tags %}
{% block content %}
{% include "wagtailadmin/shared/header.html" with title=_("Account") icon="user" merged=1 %}
<div class="w-tabs" data-tabs>
<div class="w-tabs__wrapper">
<div role="tablist" class="w-tabs__list">
{% for tab in panels_by_tab.keys %}
{% include 'wagtailadmin/shared/tabs/tab_nav_link.html' with tab_id=tab.name title=tab.title %}
{% endfor %}
{% if menu_items %}
{% include 'wagtailadmin/shared/tabs/tab_nav_link.html' with tab_id='actions' title=_("More actions") %}
{% endif %}
</div>
</div>
<form action="{% url 'wagtailadmin_account' %}" method="post" enctype="multipart/form-data" novalidate>
<div class="tab-content">
{% csrf_token %}
{% for tab, panels in panels_by_tab.items %}
<section
id="tab-{{ tab.name|cautious_slugify }}"
class="w-tabs__panel"
role="tabpanel"
hidden
aria-labelledby="tab-label-{{ tab.name|cautious_slugify }}"
>
{% for panel in panels %}
{% panel id=panel.name heading=panel.title heading_size="label" %}
<div class="w-account-settings-panel w-mt-5">
{{ panel.render }}
</div>
{% endpanel %}
{% endfor %}
<button type="submit" class="button">{% trans 'Save account details' %}</button>
</section>
{% endfor %}
{% if menu_items %}
<section
id="tab-actions"
class="w-tabs__panel"
role="tabpanel"
hidden
aria-labelledby="tab-label-actions"
>
<ul class="listing">
{% for item in menu_items %}
<li class="row row-flush">
<div class="col6">
<a href="{{ item.url }}" class="button button-primary">{{ item.label }}</a>
</div>
<small class="col6">{{ item.help_text }}</small>
</li>
{% endfor %}
</ul>
</section>
{% endif %}
</div>
</form>
</div>
{% endblock %}
{% block extra_css %}
{{ block.super }}
{{ media.css }}
{% endblock %}
{% block extra_js %}
{{ block.super }}
{% include "wagtailadmin/pages/_editor_js.html" %}
{{ media.js }}
{% endblock %}

View File

@@ -0,0 +1,13 @@
{% extends "wagtailadmin/admin_base.html" %}
{% load wagtailadmin_tags i18n %}
{% block titletag %}{% trans "Reset password" %}{% endblock %}
{% block bodyclass %}login{% endblock %}
{% block furniture %}
<main class="content-wrapper" id="main">
<h1>{% trans "Password change successful" %}</h1>
<footer class="form-actions">
<a href="{% url 'wagtailadmin_login' %}" class="button button-primary">{% trans "Login" %}</a>
</footer>
</main>
{% endblock %}

View File

@@ -0,0 +1,45 @@
{% extends "wagtailadmin/admin_base.html" %}
{% load wagtailadmin_tags i18n %}
{% block titletag %}
{% if validlink %}
{% trans "Set your new password" %}
{% else %}
{% trans "Invalid password reset link" %}
{% endif %}
{% endblock %}
{% block bodyclass %}login{% endblock %}
{% block furniture %}
<main class="content-wrapper" id="main">
{% if validlink %}
<h1>{% trans "Set your new password" %}</h1>
<form method="post" novalidate>
{% csrf_token %}
{% formattedfield form.new_password1 %}
{% formattedfield form.new_password2 %}
<footer class="form-actions">
<button type="submit" class="button">{% trans 'Reset password' %}</button>
</footer>
</form>
{% else %}
<h1>{% trans "Invalid password reset link" %}</h1>
<div class="messages" role="status">
{% if not validlink %}
<ul>
<li class="error">
{% trans "The password reset link was invalid, possibly because it has already been used." %}
</li>
</ul>
{% endif %}
</div>
<div class="form-actions">
<a href="{% url 'wagtailadmin_password_reset' %}" class="button">{% trans 'Request a new password reset' %}</a>
</div>
{% endif %}
</main>
{% endblock %}

View File

@@ -0,0 +1,11 @@
{% extends "wagtailadmin/admin_base.html" %}
{% load wagtailadmin_tags i18n %}
{% block titletag %}{% trans "Reset password" %}{% endblock %}
{% block bodyclass %}login{% endblock %}
{% block furniture %}
<main class="content-wrapper" id="main">
<h1>{% trans "Check your email" %}</h1>
<p>{% trans "A link to reset your password has been emailed to you if an account exists for this address." %}</p>
</main>
{% endblock %}

View File

@@ -0,0 +1,7 @@
{% load i18n wagtailadmin_tags %}{% base_url_setting as base_url %}
{% trans "Please follow the link below to reset your password:" %}
{% if base_url %}{{ base_url }}{% else %}{{ protocol }}://{{ domain }}{% endif %}{% url 'wagtailadmin_password_reset_confirm' uidb64=uid token=token %}
{% if user.USERNAME_FIELD != "email" %}
{% trans "Your username (in case you've forgotten):" %} {{ user.get_username }}
{% endif %}

View File

@@ -0,0 +1,2 @@
{% load i18n %}
{% trans "Password reset" %}

View File

@@ -0,0 +1,34 @@
{% extends "wagtailadmin/admin_base.html" %}
{% load wagtailadmin_tags i18n %}
{% block titletag %}{% trans "Reset password" %}{% endblock %}
{% block bodyclass %}login{% endblock %}
{% block furniture %}
<main class="content-wrapper" id="main">
<h1>{% trans "Reset your password" %}</h1>
{% include "wagtailadmin/shared/non_field_errors.html" %}
{% block above_form %}{% endblock %}
<form method="post" novalidate>
{% csrf_token %}
{% formattedfield form.email %}
{% block extra_fields %}
{% for field_name, field in form.extra_fields %}
{% formattedfield field %}
{% endfor %}
{% endblock extra_fields %}
<footer class="form-actions">
{% block submit_buttons %}
<button type="submit" class="button">{% trans 'Reset password' %}</button>
{% endblock %}
</footer>
</form>
{% block below_form %}{% endblock %}
</main>
{% endblock %}

View File

@@ -0,0 +1,17 @@
{% load i18n wagtailadmin_tags %}
{% block content %}
<div class="w-avatar-panel w-flex w-flex-wrap w-items-center">
<div class="w-avatar-panel__image w-mr-9 w-mb-5">
{% if form.avatar.value %}
<input class="avatar-clear" type="checkbox" name="avatar-avatar-clear" id="avatar-avatar-clear_id">
<label for="avatar-avatar-clear_id">{% trans "Reset to default" %}</label>
<img class="avatar large gravatar w-block w-mt-3" src="{% avatar_url request.user 70 gravatar_only=True %}" alt="{% trans 'Default avatar' %}"/>
{% endif %}
{% avatar user=request.user classname="avatar-span w-block w-mt-3" size="large" %}
</div>
<div class="w-avatar-panel__form">
<label for="id_avatar-avatar">{% trans "Upload a profile picture:" %}</label>
<input type="file" name="avatar-avatar" accept="image/*" id="id_avatar-avatar">
</div>
</div>
{% endblock %}

View File

@@ -0,0 +1,6 @@
{% load wagtailadmin_tags %}
{% block content %}
{% for field in form %}
{% formattedfield field %}
{% endfor %}
{% endblock %}