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,50 @@
{% extends "wagtailadmin/generic/base.html" %}
{% load i18n wagtailadmin_tags %}
{% block content %}
{% fragment as editing_actions %}
{% if site_switcher %}
<form method="get" id="settings-site-switch" novalidate>
<label for="{{ site_switcher.site.id_for_label }}">
{% trans "Site" %}:
</label>
{{ site_switcher.site }}
</form>
{% endif %}
{% endfragment %}
{% include "wagtailadmin/shared/header.html" with title=page_title icon=header_icon subtitle=page_subtitle merged=1 extra_actions=editing_actions only %}
<form action="{{ action_url }}" method="POST" novalidate{% if form.is_multipart %} enctype="multipart/form-data"{% endif %}>
{% csrf_token %}
<div class="nice-padding">
{{ edit_handler.render_form_content }}
</div>
<footer class="footer">
<div class="actions footer__container w-flex">
<button
type="submit"
class="button button-longrunning w-flex-grow"
data-controller="w-progress"
data-action="w-progress#activate"
data-w-progress-active-value="{% trans 'Saving…' %}"
>
{% icon name="spinner" %}
<em data-w-progress-target="label">{% trans 'Save' %}</em>
</button>
</div>
</footer>
</form>
{% 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,26 @@
{% extends "wagtailadmin/base.html" %}
{% load i18n %}
{% block titletag %}{% trans "Settings" %}{% endblock %}
{% block bodyclass %}menu-settings{% endblock %}
{% block content %}
{% trans "Settings" as settings_str %}
{% include "wagtailadmin/shared/header.html" with title=settings_str icon="cogs" %}
<div class="nice-padding">
<ul class="listing">
{% for name, description, content_type in setting_types %}
<li>
<div class="row row-flush title">
<h2>
<a href="{% url 'wagtailsettings_edit' content_type.app_label content_type.model %}" class="col6">
{{ name|capfirst }}
</a>
</h2>
<small class="col6">{{ description }}</small>
</div>
</li>
{% endfor %}
</ul>
</div>
{% endblock %}