-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add FormPage page type using [Wagtail Form Builder]. [Wagtail Form Builder]: https://docs.wagtail.io/en/v2.0/reference/contrib/forms/index.html
- Loading branch information
Showing
3 changed files
with
68 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{% extends 'base/page.html' %} | ||
|
||
{% load wagtailcore_tags static %} | ||
|
||
{% block head %} | ||
{{ block.super }} | ||
{% endblock %} | ||
|
||
{% block page_content %} | ||
<h2 class="title is-2">{{ page.title }}</h2> | ||
|
||
<div id="content" class="content"> | ||
{{ page.intro|richtext }} | ||
<form action="{% pageurl page %}" method="POST"> | ||
{% csrf_token %} | ||
<table> | ||
{{ form.as_table }} | ||
</table> | ||
<input type="submit"> | ||
</form> | ||
</div> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{% extends 'base/page.html' %} | ||
|
||
{% load wagtailcore_tags static %} | ||
|
||
{% block head %} | ||
{{ block.super }} | ||
{% endblock %} | ||
|
||
{% block page_content %} | ||
<h2 class="title is-2">{{ page.title }}</h2> | ||
|
||
<div id="content" class="content"> | ||
{{ page.thank_you_text|richtext }} | ||
</div> | ||
{% endblock %} |