gestioCOF/gestioncof/cms/templates/cofcms/cof_page.html

30 lines
1 KiB
HTML
Raw Normal View History

{% extends "cofcms/base.html" %}
{% load wagtailimages_tags cofcms_tags %}
{% block content %}
<section class="intro">
<h1>{{ page.title }}</h1>
<div>{{ page.introduction|safe }}</div>
</section>
<section class="pagecontent">
{% for block in page.body %}
{% if block.block_type == "heading" %}
<h2>{{ block.value }}</h2>
2018-03-21 21:50:57 +01:00
{% elif block.block_type == "paragraph" %}
<article class="paragraph">
{{ block.value|safe }}
</article>
2018-03-21 21:50:57 +01:00
{% elif block.block_type == "image" %}
2018-01-28 19:09:56 +01:00
<div class="image">
{% image block.value width-800 %}
</div>
2018-03-21 21:50:57 +01:00
{% elif block.block_type == "iframe" %}
<article class="paragraph">
<iframe src="{{ block.value.url }}" width="100%" height="{{ block.value.height }}px"></iframe>
</article>
{% endif %}
{% endfor %}
</section>
{% endblock %}