-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add custom template for contactformulier plugin
- Loading branch information
Showing
8 changed files
with
35 additions
and
11 deletions.
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
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,14 @@ | ||
{% extends 'master.html' %} | ||
{% load i18n cms_tags sekizai_tags static %} | ||
|
||
|
||
{% block extra_head %} | ||
{% page_attribute "meta_description" as meta_description %} | ||
{{ block.super }} | ||
<meta name="description" content="{{ meta_description }}" /> | ||
{% endblock extra_head %} | ||
|
||
{% block title %}{% page_attribute "title" as title %}{% page_attribute "page_title" as page_title %}{% if page_title %}{{ page_title }}{% else %}{{ title }}{% endif %} - {{ site_name }}{% endblock title %} | ||
{% block content %} | ||
{% placeholder 'content' or %}{% trans "There is no content." %}{% endplaceholder %} | ||
{% endblock content %} |
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,13 @@ | ||
{% load cms_tags i18n render_tags %} | ||
|
||
{% block content %} | ||
{% if has_form_configuration %} | ||
<h1 class="utrecht-heading-1"> | ||
{% trans "Contactformulier" %} | ||
</h1> | ||
<p class="utrecht-paragraph">{{ instance.description|ckeditor_content|safe }}</p> | ||
{% include "components/Contact/ContactForm.html" with form_object=form has_form_configuration=has_form_configuration csrf_token=csrf_token only %} | ||
{% else %} | ||
<p class="utrecht-paragraph">{% trans "Contact formulier niet geconfigureerd." %}</p> | ||
{% endif %} | ||
{% endblock content %} |
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
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 |
---|---|---|
@@ -1,11 +1,13 @@ | ||
{% load cms_tags i18n render_tags %} | ||
|
||
{% block content %} | ||
{% if has_form_configuration %} | ||
<h1 class="utrecht-heading-1"> | ||
{% trans "Contactformulier" %} | ||
{% if instance.title %}{{ instance.title }}{% else %}{% trans "Contactformulier" %}{% endif %} | ||
</h1> | ||
<p class="utrecht-paragraph">{{ instance.description|ckeditor_content|safe }}</p> | ||
{% include "components/Contact/ContactForm.html" with form_object=form has_form_configuration=has_form_configuration csrf_token=csrf_token only %} | ||
{% else %} | ||
<p class="utrecht-paragraph">{% trans "Contact formulier niet geconfigureerd." %}</p> | ||
{% endif %} | ||
{% endblock content %} |