{% extends 'AppBundle::layout.html.twig' %}
{% block header %}
{% if page.header %}
{% include "@App/components/header.html.twig" %}
{% endif %}
{% endblock %}
{% block title %}
{% endblock %}
{% block body %}
{% if page.banner %}
{% include '@App/ContentBlock/banner.html.twig' %}
{% endif %}
{% if page.isUnitsFilter %}
{% include '@App/components/units_filter.html.twig' %}
{% endif %}
<div class="row">
{% for label, messages in app.flashes %}
{% for message in messages %}
<div class="alert alert-{{ label }} flash-{{ label }}" role="alert">
{{ message }}
</div>
{% endfor %}
{% endfor %}
</div>
{% if homepageTiles %}
<div class="row mb-4">
{% for tile in homepageTiles %}
<div class="col-md-4">
<div class="bg-light card tile">
<div class="card-body">
{% if tile.label %}
<div class="tile-label" style="background-color: {{ tile.labelColor }};">
{{ tile.label }}
</div>
{% endif %}
<div>{{ tile.title }}</div>
<div>{{ tile.description }}</div>
<div>{{ tile.location }}</div>
</div>
<div class="card-footer">
<div class="row">
<div class="col-6 text-left">Left text</div>
<div class="col-6 text-right">Right text</div>
</div>
</div>
</div>
</div>
{% endfor %}
</div>
{% endif %}
{% for content in page.contentBlocks %}
{{ render_content_block(content.instance, page) }}
{% endfor %}
{% if page.isNewsletter %}
{% include '@App/components/newsletter_box.html.twig' %}
{% endif %}
{% endblock %}
{% block footer %}
{% if page.footer %}
{% include "@App/components/footer.html.twig" %}
{% endif %}
{% endblock %}