Extending form templates from base.html

pull/20/head
David Ray 2017-02-10 08:21:55 -05:00
rodzic 20ac81f6ca
commit a5a4aac429
2 zmienionych plików z 16 dodań i 23 usunięć

Wyświetl plik

@ -1,15 +1,11 @@
{% extends "base.html" %}
{% load wagtailcore_tags %}
<html>
<head>
<title>{{ page.title }}</title>
</head>
<body>
<h1>{{ page.title }}</h1>
{{ page.intro|richtext }}
<form action="{% pageurl page %}" method="POST">
{% csrf_token %}
{{ form.as_p }}
<input type="submit">
</form>
</body>
</html>
{% block content %}
{{ page.intro|richtext }}
<form action="{% pageurl page %}" method="POST">
{% csrf_token %}
{{ form.as_p }}
<input type="submit">
</form>
{% endblock content %}

Wyświetl plik

@ -1,9 +1,6 @@
<html>
<head>
<title>{{ page.title }}</title>
</head>
<body>
<h1>{{ page.title }}</h1>
<h2>Thanks for your submission!</h2>
</body>
</html>
{% extends "base.html" %}
{% load wagtailcore_tags %}
{% block content %}
<h1>{{ page.title }}</h1>
{{ page.thank_you_text|richtext }}
{% endblock content %}