templates/heatProtection.html.twig line 1

Open in your IDE?
  1. {# index.html.twig #}
  2. {% extends 'base.html.twig' %}
  3. {% block title %}Wärmeschutz - Planungsatlas Hochbau
  4.   {% if construction_name|default is not empty %}
  5.     - {{ construction_name }}
  6.   {% endif %}
  7.   {% if  type_name|default is not empty %}
  8.     - {{ type_name }}
  9.   {% endif %}
  10.   {% if type_names|default is not empty %}
  11.     - {{ type_names|join(' - ') }}
  12.   {% endif %}
  13. {% endblock %}
  14. {% block javascript %}
  15.   <script type="text/javascript">
  16.     {% if no_post is not defined %}
  17.     $(function() {
  18.       $(document).scrollTop( $("#results").offset().top );
  19.     });
  20.     {% endif %}
  21.   </script>
  22. {% endblock %}
  23. {% block content %}
  24.   {% block module_filter %}
  25.     {% include 'module_filter.html.twig' %}
  26.   {% endblock %}
  27.   <div class="results" id="results">
  28.     {% if results|default %}
  29.       {% set sumElements = 0 %}
  30.       {% for construction_name, elements in results %}
  31.         {% set sumElements = sumElements + elements|length %}
  32.       {% endfor %}
  33.       <span id="sumResultElements">
  34.         {% if search == true %}
  35.           Es wurden {{ sumElements }} Elemente gefunden
  36.         {% else %}
  37.           Nachstehend finden Sie die meistgesuchten Konstruktionen aus unserer Anwendung.
  38.         {% endif %}
  39.       </span>
  40.       {% for construction_name, elements in results %}
  41.         <div id="construction{{ loop.index }}" name="construction">
  42.           <h2>{{ construction_name }}</h2>
  43.           <ul class="linklist">
  44.             {% for id, element in elements %}
  45.               <li>
  46.                 <a href="{{ path('heatProtection') }}/{{ element['link'] }}" name="constructionDetailsLink">
  47.                   {{ element['type_name'] }}
  48.                   <br>
  49.                   {{ element['element_name'] }}
  50.                 </a>
  51.               </li>
  52.             {% endfor %}
  53.           </ul>
  54.         </div>
  55.       {% endfor %}
  56.     {% elseif results is not defined and search == true %}
  57.       <h2>Es wurden keine Ergebnisse zu ihrer Auswahl gefunden.</h2>
  58.       <ul class="linklist">
  59.         <li><a href="{{ path('heatProtection') }}">zurück zur Übersicht</a></li>
  60.       </ul>
  61.     {% endif %}
  62.   </div>
  63. {% endblock %}
  64. {% block teaser_about_heatProtection %}
  65.   {% include 'teaser_about_heatProtection.html.twig' %}
  66. {% endblock %}