{# index.html.twig #}
{% extends 'base.html.twig' %}
{% block title %}Detailseite - Planungsatlas Hochbau - {{ construction_name }} - {{ type_name }} - {{ element['element'].getName() }}{% endblock %}
{% block javascript %}
<script src="{{ asset('bundles/atlas/js/constructionsDetail.js') }}"></script>
<script>runConstructionDetail({{ thermalDataJson|raw }});</script>
{% endblock %}
{% block content %}
{% block module_filter %}
{% include 'module_filter.html.twig' %}
{% endblock %}
{% if element|default %}
<h2>{{ element['construction_name'] }}</h2>
<p id="type_element">
<span class="type_name">{{ element['type_name'] }}</span><br>
{{ element['element'].getName() }}
</p>
<div id="element_code" style="display:none;">{{ element['element'].getCode() }}</div>
<div class="lightbox construct"
style="background-image: url({{ asset('/bundles/atlas/constructiondocuments/'~element['element'].getCode()~'/'~element['element'].getCode()~'-Konstruktion.png') }});">
<a href="{{ asset('/bundles/atlas/constructiondocuments/'~element['element'].getCode()~'/'~element['element'].getCode()~'-Konstruktion.png') }}"
class="lightbox-button fancybox">
<span class="icon"></span>
<img
src="{{ asset('/bundles/atlas/images/empty_thumb.png') }}"
width="283" height="283">
</a>
</div>
<div class="lightbox" style="background-image: url({{ asset('/bundles/atlas/constructiondocuments/'~element['element'].getCode()~'/'~element['element'].getCode()~'-Iso-Bild.png') }});">
<a href="{{ asset('/bundles/atlas/constructiondocuments/'~element['element'].getCode()~'/'~element['element'].getCode()~'-Iso-Bild.png') }}"
class="lightbox-button fancybox">
<span class="icon"></span>
<img
src="{{ asset('/bundles/atlas/images/empty_thumb.png') }}"
width="283" height="283">
</a>
</div>
<div> </div>
<table id="tpc-value-table" border="0" class="contenttable" width="100%"
data-element-code="{{ element['element'].getCode() }}"
data-tpc-key-prefix="{{ element['element'].getTpcKeyPrefix() }}">
{% for t in element['thermals'] %}
<tr>
<td>
{% set pos = t.getPosition() %}
{% if pos|length == 2 %}
<span class="obj-num long">
{% else %}
<span class="obj-num">
{% endif %}
{{ t.getPosition() }}
</span>
</td>
<td>{{ t.getName() }}</td>
<td>
{{ t.getVariable() | raw }}
</td>
<td class="nowrap" >
<select class="tpc-value-selector" data-code="{{ t.getCode() }}">
{% for v in t.getThermalValues() %}
<option value="{{ v.getCode() }}">{{ v.getValue() }}</option>
{% endfor %}
</select>
{{ t.getUnit() }}
</td>
</tr>
{% endfor %}
{% endif %}
</table>
<p id="caption_thermal">
Thermische Werte des Konstruktionsanschlusses
</p>
<p class="subline">
(Zwischenwerte können linear interpoliert werden)
</p>
<table border="0" class="contenttable" width="100%">
<input type="hidden" id="tpc-key" name="tpc-key" value="">
{% if regulationComponents['u1'] is defined %}
<tr>
<td>Wärmedurchgangskoeffizient Regelbauteil {{ regulationComponents['u1'].getName() }}</td>
<td>U</td>
<td><span id="tpc-u1" class="strong-text">$wert-aus-thermal-xml-u1</span> W/(m²K)</td>
</tr>
{% endif %}
{% if regulationComponents['u2'] is defined %}
<tr>
<td>Wärmedurchgangskoeffizient Regelbauteil {{ regulationComponents['u2'].getName() }}</td>
<td>U</td>
<td><span id="tpc-u2" class="strong-text">$wert-aus-thermal-xml-u2</span> W/(m²K)</td>
</tr>
{% endif %}
{% if regulationComponents['u3'] is defined %}
<tr>
<td>Wärmedurchgangskoeffizient Regelbauteil {{ regulationComponents['u3'].getName() }}</td>
<td>U</td>
<td><span id="tpc-u3" class="strong-text">$wert-aus-thermal-xml-u3</span> W/(m²K)</td>
</tr>
{% endif %}
{% if 'y' in availableTpcKeys %}
<tr>
<td>Längenbezogener Wärmedurchgangskoeffizient</td>
<td>ψ</td>
<td><span id="tpc-y" class="strong-text">$wert-aus-thermal-xml-y</span> W/(mK)</td>
</tr>
{% endif %}
{% if 'c' in availableTpcKeys %}
<tr>
<td>Punktbezogener Wärmedurchgangskoeffizient</td>
<td>χ</td>
<td><span id="tpc-c" class="strong-text">$wert-aus-thermal-xml-c</span> W/K</td>
</tr>
{% endif %}
{% if 'q' in availableTpcKeys %}
<tr>
<td>Minimale Oberflächentemperatur im beheizten Raum</td>
<td>θ<sub>min</sub></td>
<td><span id="tpc-q" class="strong-text" onchange="alert('change');">$wert-aus-thermal-xml-q</span> °C</td>
</tr>
{% endif %}
<tr id="tpc-q-warning" style="display:none;">
<td colspan="3" style="color:#96BF2F; font-weight: bold; padding:5px 10px 5px 10px;">Achtung: Die Konstruktion erfüllt nicht die Mindestanforderungen an den Wärmeschutz von Wärmebrücken gemäß DIN 4108 Teil 2!</td>
</tr>
</table>
<div class="obj-tools">
<input type="hidden" id="ajaxCalladdElementToCart"
value="{{ path('atlas_ajax', {'action' : 'addElementToCart' }) }}">
<button id="add-element-to-cart-button" class="btn_add_obj" data-element-id="{{ element['element'].getId() }}"
data-tpc-key-code="" data-psi-value="">Zu meinen Details hinzufügen
</button>
<a href="{{ path('atlasDownload', {'fileType' : 'constructionPdf', 'fileId' : element['element'].getCode() }) }}"/>
<input type="hidden" id="constructionsDetailPdfDownloadLink"
value="{{ path('constructionsDetailPdfDownload', {'productId' : element['element'].getId(), 'tpcKeyCode': 'TPCKEYCODE' }) }}">
<a id="constructions-detail-pdf-download-button" href="">
<button class="btn_save">Speichern (PDF)</button>
</a>
</div>
<div class="clear"><!-- --></div>
{% if element['element'].getNotes()|length > 0 %}
<p id="caption_notes">
Konstruktionshinweise<br/>
{% for note in element['element'].getNotes() %}
{{ note.getValue() }}</br>
{% endfor %}
</p>
{% endif %}
<script>
$(document).ready(function () {
$(".wrapper-form, #wrapper-woge, #wrapper-wigeb").css("display", "none");
$("a.filter_close").find('img').toggle();
$("#downloads, #cart").css("display", "block");
});
</script>
{% endblock %}
{% block object_nav %}
<div class="object-nav">
{% if previous != 0 %}
<a href="{{ path('heatProtection') }}/{{ previous_link }}"
name="constructionDetailsLink">
<div class="prev_obj"></div>
<span>vorheriges Modell</span>
</a>
{% else %}
<a href="" onClick="return false;">
<div class="prev_obj grayscale"></div>
<span>vorheriges Modell</span>
</a>
{% endif %}
{% if next != 0 %}
<a href="{{ path('heatProtection') }}/{{ next_link }}"
name="constructionDetailsLink" class="next_obj">
<span>nächstes Modell</span>
<div class="next_obj"></div>
</a>
{% else %}
<a href="" onClick="return false;" class="next_obj">
<span>nächstes Modell</span>
<div class="next_obj grayscale"></div>
</a>
{% endif %}
</div>
{% endblock %}
{% block teaser_login %}{% endblock %}
{% block teaser_download %}
{% include 'teaser_download.html.twig' %}
{% endblock %}
{% block teaser_cart %}
{% include 'teaser_cart.html.twig' %}
{% endblock %}