feat: add contact form
This commit is contained in:
parent
6fd74833a3
commit
b6554fbf83
5 changed files with 129 additions and 4 deletions
15
base/templates/base/form_page.html
Normal file
15
base/templates/base/form_page.html
Normal file
|
@ -0,0 +1,15 @@
|
|||
{% extends "base.html" %}
|
||||
{% load wagtailcore_tags %}
|
||||
|
||||
{% block body_class %}template-formpage{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<h1>{{ page.title }}</h1>
|
||||
<div>{{ page.intro|richtext }}</div>
|
||||
|
||||
<form class="page-form" action="{% pageurl page %}" method="POST">
|
||||
{% csrf_token %}
|
||||
{{ form.as_div }}
|
||||
<button type="Submit">Submit</button>
|
||||
</form>
|
||||
{% endblock content %}
|
9
base/templates/base/form_page_landing.html
Normal file
9
base/templates/base/form_page_landing.html
Normal file
|
@ -0,0 +1,9 @@
|
|||
{% extends "base.html" %}
|
||||
{% load wagtailcore_tags %}
|
||||
|
||||
{% block body_class %}template-formpage{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<h1>{{ page.title }}</h1>
|
||||
<div>{{ page.thank_you_text|richtext }}</div>
|
||||
{% endblock content %}
|
Loading…
Add table
Add a link
Reference in a new issue