{# index.html.twig #}
{% extends 'base.html.twig' %}
{% block title %}Wärmeschutz - Planungsatlas Hochbau
{% if construction_name|default is not empty %}
- {{ construction_name }}
{% endif %}
{% if type_name|default is not empty %}
- {{ type_name }}
{% endif %}
{% if type_names|default is not empty %}
- {{ type_names|join(' - ') }}
{% endif %}
{% endblock %}
{% block javascript %}
<script type="text/javascript">
{% if no_post is not defined %}
$(function() {
$(document).scrollTop( $("#results").offset().top );
});
{% endif %}
</script>
{% endblock %}
{% block content %}
{% block module_filter %}
{% include 'module_filter.html.twig' %}
{% endblock %}
<div class="results" id="results">
{% if results|default %}
{% set sumElements = 0 %}
{% for construction_name, elements in results %}
{% set sumElements = sumElements + elements|length %}
{% endfor %}
<span id="sumResultElements">
{% if search == true %}
Es wurden {{ sumElements }} Elemente gefunden
{% else %}
Nachstehend finden Sie die meistgesuchten Konstruktionen aus unserer Anwendung.
{% endif %}
</span>
{% for construction_name, elements in results %}
<div id="construction{{ loop.index }}" name="construction">
<h2>{{ construction_name }}</h2>
<ul class="linklist">
{% for id, element in elements %}
<li>
<a href="{{ path('heatProtection') }}/{{ element['link'] }}" name="constructionDetailsLink">
{{ element['type_name'] }}
<br>
{{ element['element_name'] }}
</a>
</li>
{% endfor %}
</ul>
</div>
{% endfor %}
{% elseif results is not defined and search == true %}
<h2>Es wurden keine Ergebnisse zu ihrer Auswahl gefunden.</h2>
<ul class="linklist">
<li><a href="{{ path('heatProtection') }}">zurück zur Übersicht</a></li>
</ul>
{% endif %}
</div>
{% endblock %}
{% block teaser_about_heatProtection %}
{% include 'teaser_about_heatProtection.html.twig' %}
{% endblock %}