Initial commit
This commit is contained in:
15
env/lib/python3.10/site-packages/wagtail/test/testapp/templates/tests/base.html
vendored
Normal file
15
env/lib/python3.10/site-packages/wagtail/test/testapp/templates/tests/base.html
vendored
Normal 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>
|
||||
@@ -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>
|
||||
@@ -0,0 +1 @@
|
||||
<div>Hello</div>
|
||||
@@ -0,0 +1 @@
|
||||
<h1{% if language %} lang="{{ language }}"{% endif %}{% if classname %} class="{{ classname }}"{% endif %}>{{ value }}</h1>
|
||||
@@ -0,0 +1,3 @@
|
||||
{% load wagtailcore_tags %}
|
||||
|
||||
<body>{% autoescape off %}{% include_block test_block %}{% endautoescape %}</body>
|
||||
@@ -0,0 +1,3 @@
|
||||
{% load wagtailcore_tags %}
|
||||
|
||||
<body>{% include_block test_block with classname="IMPORTANT"|lower only %}</body>
|
||||
@@ -0,0 +1,3 @@
|
||||
{% load wagtailcore_tags %}
|
||||
|
||||
<body>{% include_block test_block %}</body>
|
||||
@@ -0,0 +1,3 @@
|
||||
{% load wagtailcore_tags %}
|
||||
|
||||
<body>{% include_block test_block|default:999 %}</body>
|
||||
@@ -0,0 +1,3 @@
|
||||
{% load wagtailcore_tags %}
|
||||
|
||||
<body>{% include_block test_block with classname="IMPORTANT"|lower %}</body>
|
||||
1
env/lib/python3.10/site-packages/wagtail/test/testapp/templates/tests/blocks/link_block.html
vendored
Normal file
1
env/lib/python3.10/site-packages/wagtail/test/testapp/templates/tests/blocks/link_block.html
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<a href="{{ self.url }}" class="{{ classname }}">{{ self.title }}</a>
|
||||
@@ -0,0 +1 @@
|
||||
<p>PostsStaticBlock template</p>
|
||||
@@ -0,0 +1 @@
|
||||
<h1{% if language %} lang="{{ language }}"{% endif %}>{{ value.title }}</h1>{{ value.bound_blocks.body.render }}
|
||||
@@ -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 %}
|
||||
@@ -0,0 +1 @@
|
||||
<div>{{ value.title_with_suffix }}</div>
|
||||
@@ -0,0 +1,2 @@
|
||||
{% include "table_block/blocks/table.html" %}
|
||||
<div>{{ caption }}</div>
|
||||
5
env/lib/python3.10/site-packages/wagtail/test/testapp/templates/tests/business_child.html
vendored
Normal file
5
env/lib/python3.10/site-packages/wagtail/test/testapp/templates/tests/business_child.html
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
{% extends "tests/base.html" %}
|
||||
|
||||
{% block content %}
|
||||
<h2>Business Child</h2>
|
||||
{% endblock %}
|
||||
@@ -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 %}
|
||||
@@ -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 %}
|
||||
5
env/lib/python3.10/site-packages/wagtail/test/testapp/templates/tests/event_index.html
vendored
Normal file
5
env/lib/python3.10/site-packages/wagtail/test/testapp/templates/tests/event_index.html
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
{% extends "tests/base.html" %}
|
||||
|
||||
{% block content %}
|
||||
{% include "tests/includes/event_listing.html" %}
|
||||
{% endblock %}
|
||||
23
env/lib/python3.10/site-packages/wagtail/test/testapp/templates/tests/event_page.html
vendored
Normal file
23
env/lib/python3.10/site-packages/wagtail/test/testapp/templates/tests/event_page.html
vendored
Normal 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 %}
|
||||
@@ -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 %}
|
||||
6
env/lib/python3.10/site-packages/wagtail/test/testapp/templates/tests/fctoy_index.html
vendored
Normal file
6
env/lib/python3.10/site-packages/wagtail/test/testapp/templates/tests/fctoy_index.html
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
{% extends "wagtailadmin/generic/index.html" %}
|
||||
|
||||
{% block content %}
|
||||
{{ block.super }}
|
||||
<p>Some extra custom content</p>
|
||||
{% endblock content %}
|
||||
11
env/lib/python3.10/site-packages/wagtail/test/testapp/templates/tests/form_page.html
vendored
Normal file
11
env/lib/python3.10/site-packages/wagtail/test/testapp/templates/tests/form_page.html
vendored
Normal 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 %}
|
||||
12
env/lib/python3.10/site-packages/wagtail/test/testapp/templates/tests/form_page_landing.html
vendored
Normal file
12
env/lib/python3.10/site-packages/wagtail/test/testapp/templates/tests/form_page_landing.html
vendored
Normal 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 %}
|
||||
@@ -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 %}
|
||||
@@ -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 %}
|
||||
@@ -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 %}
|
||||
@@ -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 %}
|
||||
@@ -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 %}
|
||||
@@ -0,0 +1,5 @@
|
||||
{% extends "tests/base.html" %}
|
||||
|
||||
{% block content %}
|
||||
{# Unused #}
|
||||
{% endblock %}
|
||||
@@ -0,0 +1,7 @@
|
||||
{% extends "wagtailsnippets/snippets/index.html" %}
|
||||
|
||||
{% block content %}
|
||||
{{ block.super }}
|
||||
|
||||
<p>An added paragraph</p>
|
||||
{% endblock content %}
|
||||
@@ -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 %}
|
||||
@@ -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 %}
|
||||
@@ -0,0 +1,7 @@
|
||||
{% extends "wagtailadmin/generic/base.html" %}
|
||||
|
||||
{% block main_content %}
|
||||
{% for obj in test_object %}
|
||||
<p>{{ obj.content }}</p>
|
||||
{% endfor %}
|
||||
{% endblock %}
|
||||
@@ -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 |
@@ -0,0 +1,7 @@
|
||||
{% load wagtailcore_tags %}
|
||||
|
||||
<ul>
|
||||
{% for event in events %}
|
||||
<li><a href="{% pageurl event %}">{{ event.title }}</a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
17
env/lib/python3.10/site-packages/wagtail/test/testapp/templates/tests/misc/calendar.html
vendored
Normal file
17
env/lib/python3.10/site-packages/wagtail/test/testapp/templates/tests/misc/calendar.html
vendored
Normal 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 %}
|
||||
6
env/lib/python3.10/site-packages/wagtail/test/testapp/templates/tests/misc/greetings.html
vendored
Normal file
6
env/lib/python3.10/site-packages/wagtail/test/testapp/templates/tests/misc/greetings.html
vendored
Normal 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 %}
|
||||
14
env/lib/python3.10/site-packages/wagtail/test/testapp/templates/tests/previewable_model.html
vendored
Normal file
14
env/lib/python3.10/site-packages/wagtail/test/testapp/templates/tests/previewable_model.html
vendored
Normal 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>
|
||||
@@ -0,0 +1,9 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>{{ object.text }} (Alternate Preview)</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>{{ object.text }}</h1>
|
||||
</body>
|
||||
</html>
|
||||
5
env/lib/python3.10/site-packages/wagtail/test/testapp/templates/tests/simple_page.html
vendored
Normal file
5
env/lib/python3.10/site-packages/wagtail/test/testapp/templates/tests/simple_page.html
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
{% extends "tests/base.html" %}
|
||||
|
||||
{% block content %}
|
||||
<h2>Simple page</h2>
|
||||
{% endblock %}
|
||||
5
env/lib/python3.10/site-packages/wagtail/test/testapp/templates/tests/simple_page_alt.html
vendored
Normal file
5
env/lib/python3.10/site-packages/wagtail/test/testapp/templates/tests/simple_page_alt.html
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
{% extends "tests/base.html" %}
|
||||
|
||||
{% block content %}
|
||||
<h2>Simple page (alternate)</h2>
|
||||
{% endblock %}
|
||||
7
env/lib/python3.10/site-packages/wagtail/test/testapp/templates/tests/snippet_history.html
vendored
Normal file
7
env/lib/python3.10/site-packages/wagtail/test/testapp/templates/tests/snippet_history.html
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
{% extends "wagtailsnippets/snippets/history.html" %}
|
||||
|
||||
{% block content %}
|
||||
{{ block.super }}
|
||||
|
||||
<p>An added paragraph</p>
|
||||
{% endblock content %}
|
||||
5
env/lib/python3.10/site-packages/wagtail/test/testapp/templates/tests/validated_page.html
vendored
Normal file
5
env/lib/python3.10/site-packages/wagtail/test/testapp/templates/tests/validated_page.html
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
{% extends "tests/base.html" %}
|
||||
|
||||
{% block content %}
|
||||
<h2>foo = {{ page.foo }}</h2>
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user