forked from DGNum/gestioCOF
Modèles plus cleans et templates principaux
This commit is contained in:
parent
66fc364739
commit
f5778fed2a
17 changed files with 522 additions and 94 deletions
23
gestioncof/cms/templates/cofcms/cof_page.html
Normal file
23
gestioncof/cms/templates/cofcms/cof_page.html
Normal file
|
@ -0,0 +1,23 @@
|
|||
{% 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>
|
||||
{% else %}{% if block.block_type == "paragraph" %}
|
||||
<article class="paragraph">
|
||||
{{ block.value|safe }}
|
||||
</article>
|
||||
{% else %}{% if block.block_type == "image" %}
|
||||
{% image block.value width-400 %}
|
||||
{% endif %}{% endif %}{% endif %}
|
||||
{% endfor %}
|
||||
</section>
|
||||
{% endblock %}
|
Loading…
Add table
Add a link
Reference in a new issue