{% extends '@openform_front_templates/base.html.twig' %}
{% block bodyAttr %}news-list-body{% endblock %}
{% set pageSubTitle = entity.Translation[app.request.locale].title %}
{% set metaTitle = entity.Translation[app.request.locale].metaTitle ? entity.Translation[app.request.locale].metaTitle : entity.Translation[app.request.locale].title %}
{% set metaDescription = entity.Translation[app.request.locale].metaDescription %}
{% set metaKeywords = entity.Translation[app.request.locale].metaKeywords %}
{% set pageImage = entity.imagePath ? openform_front_util.getImagePathByType(entity.Thumb,'list') : '' %}
{% block content %}
<h1 class="index-news__title">
{{ entity.Translation[app.request.locale].titleHtml|raw }}
</h1>
{% include "@openform_front_templates/_blocks_sections/block.html.twig" with { sections: openform_front_util.getSections(entity)|length > 0 ? openform_front_util.getSections(entity)|slice(0, 1) : '' } %}
<section class="index-news mak">
<div class="index-news__wrapper js-list-data container">
<div class="index-news__filters js-filters">
<div class="input-date">
<input id="date" type="text" name="date" class="js-date">
<label for="date">{{ 'T_SHOW_FROM'|trans({}, 'openform_front', app.request.locale) }}</label>
</div>
</div>
<div class="index-news__items js-result-content"
data-url="{{ toolkit_route_localizer.generate('news_list_filter_ajax', {}, app.request.locale) }}" >
{% include '@openform_front_templates/News/components/_list.html.twig' %}
</div>
{% include "@openform_front_templates/_includes/_pagination.html.twig" with { pages: maxPages } %}
</div>
</section>
{% include "@openform_front_templates/_blocks_sections/block.html.twig" with { sections: openform_front_util.getSections(entity)|length > 0 ? openform_front_util.getSections(entity)|slice(1, openform_front_util.getSections(entity)|length) : '' } %}
{% endblock %}