src/Package/Openform/Front/Templates/Mission/index.html.twig line 1

Open in your IDE?
  1. {% extends '@openform_front_templates/base.html.twig' %}
  2. {% block bodyAttr %}news-list-body{% endblock %}
  3. {% set pageSubTitle = entity.Translation[app.request.locale].title %}
  4. {% set metaTitle = entity.Translation[app.request.locale].metaTitle ? entity.Translation[app.request.locale].metaTitle : entity.Translation[app.request.locale].title %}
  5. {% set metaDescription = entity.Translation[app.request.locale].metaDescription %}
  6. {% set metaKeywords = entity.Translation[app.request.locale].metaKeywords %}
  7. {% set pageImage = entity.imagePath ? openform_front_util.getImagePathByType(entity.Thumb,'list') : '' %}
  8. {% block content %}
  9.     {% 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) : '' } %}
  10.     <section class="index-news">
  11.         <div class="index-news__wrapper js-list-data container">
  12.             
  13.             <h1 class="index-news__title">{{ 'T_MISSION_ACTIVITY'|trans({}, 'openform_front', app.request.locale) }}</h1>
  14.             {# <div class="index-news__filters js-filters">
  15.                 <div class="input-date">
  16.                     <input id="date" type="text" name="date" class="js-date">
  17.                     <label for="date">{{ 'T_SHOW_FROM'|trans({}, 'openform_front', app.request.locale) }}</label>
  18.                 </div>
  19.             </div> #}
  20.             <div class="index-news__items js-result-content" 
  21.                 data-url="{{ toolkit_route_localizer.generate('mission_list_filter_ajax', {}, app.request.locale) }}" >
  22.                 {% include '@openform_front_templates/Mission/components/_list.html.twig' %}
  23.             </div>
  24.             {% include "@openform_front_templates/_includes/_pagination.html.twig" with { pages: maxPages } %} 
  25.         </div>
  26.     </section>
  27.     {% 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) : '' } %}
  28. {% endblock %}