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,11 @@
{% load i18n wagtailadmin_tags %}
<td class="{% if column.classname %}{{ column.classname }} {% endif %}title">
<div class="title-wrapper">
<a href="{{ link_url }}">{{ value }}</a>
{% if not value.language_code_is_valid %}
{% trans "This locale's language code is not supported" as error %}
{% icon name="warning" classname="locale-error" title=error %}
{% endif %}
</div>
</td>

View File

@@ -0,0 +1,18 @@
{% extends "wagtailadmin/generic/confirm_delete.html" %}
{% load i18n %}
{% block main_content %}
{% if can_delete %}
<p>{{ view.confirmation_message }}</p>
<form action="{{ view.get_delete_url }}" method="POST">
{% csrf_token %}
<input type="submit" value="{% trans 'Yes, delete' %}" class="button serious" />
<a href="{% url 'wagtaillocales:edit' locale.id %}" class="button button-secondary">{% trans "Back" %}</a>
</form>
{% else %}
<p>{{ view.cannot_delete_message }}</p>
<a href="{% url 'wagtaillocales:edit' locale.id %}" class="button button-secondary">{% trans "Back" %}</a>
{% endif %}
{% endblock %}

View File

@@ -0,0 +1 @@
{% extends "wagtailadmin/generic/create.html" %}

View File

@@ -0,0 +1,11 @@
{% extends "wagtailadmin/generic/edit.html" %}
{% load i18n wagtailadmin_tags %}
{% block before_form %}
{% if not locale.language_code_is_valid %}
<p class="help-block help-warning">
{% icon name='warning' %}
{% trans "This locale's current language code is not supported. Please choose a new language or delete this locale." %}
</p>
{% endif %}
{% endblock %}