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,15 @@
{% load wagtailuserbar %}
{% load i18n %}
{% get_current_language as LANGUAGE_CODE %}
{% get_current_language_bidi as LANGUAGE_BIDI %}
<!DOCTYPE HTML>
<html lang="{{ LANGUAGE_CODE }}" dir="{% if LANGUAGE_BIDI %}rtl{% else %}ltr{% endif %}">
<head>
<title>{% block html_title %}{{ self.title }}{% endblock %}</title>
</head>
<body>
{% wagtailuserbar %}
<h1>{{ self.title }}</h1>
{% block content %}{% endblock %}
</body>
</html>

View File

@@ -0,0 +1,9 @@
<div class="{{ classname }}" data-prefix="{{ prefix }}">
<p>{{ extra_var }}</p>
<ul class="fields">
{% for child in children.values %}
<li>{{ child.render_form }}</li>
{% endfor %}
</ul>
</div>

View File

@@ -0,0 +1 @@
<h1{% if language %} lang="{{ language }}"{% endif %}{% if classname %} class="{{ classname }}"{% endif %}>{{ value }}</h1>

View File

@@ -0,0 +1,3 @@
{% load wagtailcore_tags %}
<body>{% autoescape off %}{% include_block test_block %}{% endautoescape %}</body>

View File

@@ -0,0 +1,3 @@
{% load wagtailcore_tags %}
<body>{% include_block test_block with classname="IMPORTANT"|lower only %}</body>

View File

@@ -0,0 +1,3 @@
{% load wagtailcore_tags %}
<body>{% include_block test_block %}</body>

View File

@@ -0,0 +1,3 @@
{% load wagtailcore_tags %}
<body>{% include_block test_block|default:999 %}</body>

View File

@@ -0,0 +1,3 @@
{% load wagtailcore_tags %}
<body>{% include_block test_block with classname="IMPORTANT"|lower %}</body>

View File

@@ -0,0 +1 @@
<a href="{{ self.url }}" class="{{ classname }}">{{ self.title }}</a>

View File

@@ -0,0 +1 @@
<p>PostsStaticBlock template</p>

View File

@@ -0,0 +1 @@
<h1{% if language %} lang="{{ language }}"{% endif %}>{{ value.title }}</h1>{{ value.bound_blocks.body.render }}

View File

@@ -0,0 +1,5 @@
{% load wagtailcore_tags %}
{% for block in value %}
<div class="{{ block.block_type }}"{% if language %} lang="{{ language }}"{% endif %}>{% include_block block %}</div>
{% endfor %}

View File

@@ -0,0 +1 @@
<div>{{ value.title_with_suffix }}</div>

View File

@@ -0,0 +1,2 @@
{% include "table_block/blocks/table.html" %}
<div>{{ caption }}</div>

View File

@@ -0,0 +1,5 @@
{% extends "tests/base.html" %}
{% block content %}
<h2>Business Child</h2>
{% endblock %}

View File

@@ -0,0 +1,10 @@
{% extends "tests/base.html" %}
{% block content %}
<p>Test only.</p>
<form action="{{ action_url }}" method="POST">
{% csrf_token %}
{{ form.as_p }}
<input type="submit" value="Continue" class="button" />
</form>
{% endblock %}

View File

@@ -0,0 +1,10 @@
{% extends "tests/base.html" %}
{% block content %}
<p>Test only.</p>
<form action="{{ action_url }}" method="POST">
{% csrf_token %}
{{ form.as_p }}
<input type="submit" value="Continue" class="button" />
</form>
{% endblock %}

View File

@@ -0,0 +1,5 @@
{% extends "tests/base.html" %}
{% block content %}
{% include "tests/includes/event_listing.html" %}
{% endblock %}

View File

@@ -0,0 +1,23 @@
{% extends "tests/base.html" %}
{% load wagtailcore_tags wagtailimages_tags %}
{% block html_title %}Event: {{ self.title }}{% endblock %}
{% block content %}
<h2>Event</h2>
{% if self.feed_image %}
{% image self.feed_image width-200 class="feed-image" %}
{% endif %}
{% with self.categories.all as categories %}
{% if categories %}
<ul>
{% for category in categories %}
<li>{{ category.name }}</li>
{% endfor %}
</ul>
{% endif %}
{% endwith %}
{{ self.body|richtext }}
<p><a href="{% slugurl 'events' %}">Back to events index</a></p>
{% endblock %}

View File

@@ -0,0 +1,10 @@
{% extends "tests/base.html" %}
{% block content %}
<p>This event is invitation only. Please enter your password to see the details.</p>
<form action="{{ action_url }}" method="POST">
{% csrf_token %}
{{ form.as_p }}
<input type="submit" value="Continue" class="button" />
</form>
{% endblock %}

View File

@@ -0,0 +1,6 @@
{% extends "wagtailadmin/generic/index.html" %}
{% block content %}
{{ block.super }}
<p>Some extra custom content</p>
{% endblock content %}

View File

@@ -0,0 +1,11 @@
{% extends "tests/base.html" %}
{% load wagtailcore_tags %}
{% block content %}
<p>{{ greeting }}</p>
<form action="{% pageurl self %}" method="post">
{% csrf_token %}
{{ form.as_p }}
<input type="submit" class="button">
</form>
{% endblock %}

View File

@@ -0,0 +1,12 @@
{% extends "tests/base.html" %}
{% block content %}
<p>{{ greeting }}</p>
<p>Thank you for your feedback.</p>
<ul>
{% for key, value in form_submission.get_data.items %}
<li>{{ key }}: {{ value }}</li>
{% endfor %}
</ul>
{% endblock %}

View File

@@ -0,0 +1,11 @@
{% extends "tests/base.html" %}
{% load wagtailcore_tags %}
{% block content %}
<p>{{ greeting }}</p>
<form action="{% pageurl self %}" method="post">
{% csrf_token %}
{{ form.as_p }}
<input type="submit" class="button">
</form>
{% endblock %}

View File

@@ -0,0 +1,10 @@
{% extends "tests/base.html" %}
{% block content %}
<p>Thank you for submitting a Support Request.</p>
<ul>
{% for key, value in form_submission.get_data.items %}
<li>{{ key }}: {{ value }}</li>
{% endfor %}
</ul>
{% endblock %}

View File

@@ -0,0 +1,24 @@
{% extends "tests/base.html" %}
{% load wagtailcore_tags i18n %}
{% block content %}
<p>{{ greeting }}</p>
{% if user.is_authenticated and user.is_active or request.is_preview %}
{% if form %}
<div>
{{ self.intro|richtext }}
</div>
<form action="{% pageurl self %}" method="POST">
{% csrf_token %}
{{ form.as_p }}
<input type="submit">
</form>
{% else %}
<div>{% trans 'The form is already filled.' %}</div>
{% endif %}
{% else %}
<div>{% trans 'You must log in first.' %}</div>
{% endif %}
{% endblock %}

View File

@@ -0,0 +1,10 @@
{% extends "tests/base.html" %}
{% load wagtailcore_tags %}
{% block content %}
<p>{{ greeting }}</p>
{{ self.thank_you_text|richtext }}
<p>User email: {{ form_submission.get_data.useremail }}</p>
{% endblock %}

View File

@@ -0,0 +1,11 @@
{% extends "tests/base.html" %}
{% load wagtailcore_tags %}
{% block content %}
<p>{{ greeting }}</p>
<form action="{% pageurl self %}" method="post">
{% csrf_token %}
{{ form.as_p }}
<input type="submit" class="button">
</form>
{% endblock %}

View File

@@ -0,0 +1,5 @@
{% extends "tests/base.html" %}
{% block content %}
{# Unused #}
{% endblock %}

View File

@@ -0,0 +1,7 @@
{% extends "wagtailsnippets/snippets/index.html" %}
{% block content %}
{{ block.super }}
<p>An added paragraph</p>
{% endblock content %}

View File

@@ -0,0 +1,11 @@
{% extends "wagtailadmin/generic/base.html" %}
{% block content %}
<div class="nice-padding">
<p>Are you sure you want to delete this object?</p>
<form action="{% url 'testapp_generic_delete' test_object.pk %}" method="POST">
{% csrf_token %}
<input type="submit" value="Yes, delete" class="button serious" />
</form>
</div>
{% endblock %}

View File

@@ -0,0 +1,18 @@
{% extends "wagtailadmin/generic/base.html" %}
{% load wagtailadmin_tags %}
{% block content %}
<form action="{% url 'testapp_generic_edit' test_object.pk %}" method="POST" >
<div class="tab-content">
{% csrf_token %}
<ul class="fields">
<li>{% formattedfield form.content %}</li>
<li>
<input type="submit" value="Save" class="button"/>
</li>
</ul>
</div>
</form>
{% endblock %}

View File

@@ -0,0 +1,7 @@
{% extends "wagtailadmin/generic/base.html" %}
{% block main_content %}
{% for obj in test_object %}
<p>{{ obj.content }}</p>
{% endfor %}
{% endblock %}

View File

@@ -0,0 +1 @@
<svg id='icon-single-quotes' xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><!--! Custom icon with single quotes for the id --></svg>

After

Width:  |  Height:  |  Size: 142 B

View File

@@ -0,0 +1,7 @@
{% load wagtailcore_tags %}
<ul>
{% for event in events %}
<li><a href="{% pageurl event %}">{{ event.title }}</a></li>
{% endfor %}
</ul>

View File

@@ -0,0 +1,17 @@
{% extends "wagtailadmin/generic/base.html" %}
{% block extra_css %}
{{ block.super }}
<style>
table.month {
margin: 20px;
}
table.month td, table.month th {
padding: 5px;
}
</style>
{% endblock %}
{% block main_content %}
{{ calendar_html|safe }}
{% endblock %}

View File

@@ -0,0 +1,6 @@
{% extends "wagtailadmin/generic/base.html" %}
{% block titletag %}Greetings{% endblock %}
{% block main_content %}
Welcome to this greetings page, {{ user.get_full_name }}!
{% endblock %}

View File

@@ -0,0 +1,14 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title>{{ object.text }} (Default Preview)</title>
</head>
<body>
<h1>{{ object.text }}</h1>
<ul>
{% for category in object.categories.all %}
<li>{{ category.name }}</li>
{% endfor %}
</ul>
</body>
</html>

View File

@@ -0,0 +1,9 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title>{{ object.text }} (Alternate Preview)</title>
</head>
<body>
<h1>{{ object.text }}</h1>
</body>
</html>

View File

@@ -0,0 +1,5 @@
{% extends "tests/base.html" %}
{% block content %}
<h2>Simple page</h2>
{% endblock %}

View File

@@ -0,0 +1,5 @@
{% extends "tests/base.html" %}
{% block content %}
<h2>Simple page (alternate)</h2>
{% endblock %}

View File

@@ -0,0 +1,7 @@
{% extends "wagtailsnippets/snippets/history.html" %}
{% block content %}
{{ block.super }}
<p>An added paragraph</p>
{% endblock content %}

View File

@@ -0,0 +1,5 @@
{% extends "tests/base.html" %}
{% block content %}
<h2>foo = {{ page.foo }}</h2>
{% endblock %}