{% if element is defined %}
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<link href="{{ app.request.scheme ~'://' ~ app.request.httpHost ~ asset('bundles/atlas/css/pdf.css') }}"
rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="page-1">
<div id="beton-logo">
<img src="{{ app.request.scheme ~'://' ~ app.request.httpHost ~ asset('bundles/atlas/images/logo.png') }}"
align="right">
</div>
<div class="clear"></div>
<h1><font color="#d6d6d6">Wärmeschutztechnische Kennwerte</font></h1>
<table id="top-table">
<tr>
<td>Modell-Nummer</td>
<td class="bold-text">{{ element['element'].getCode()|default("") }}</td>
</tr>
<tr>
<td>Konstruktionsart</td>
<td class="bold-text">{{ element['construction_name']|default("") }}</td>
</tr>
<tr>
<td>Anschluss</td>
<td class="bold-text">{{ element['type_name']|default("") }}</td>
</tr>
<tr>
<td>Untergruppe/Variante</td>
<td class="bold-text">{{ element['element'].getName() |default("") }}</td>
</tr>
</table>
<br>
<div class="clear"></div>
<table width="100%" id="details-table" class="">
{% for t in element['thermals'] | default(null) %}
<tr>
<td><span class="obj-num">{{ t.getPosition() }}</span></td>
<td>{{ t.getName() }}</td>
<td>{{ t.getVariable() }}</td>
<td class="small-padding-right">
{% for v in t.getThermalValues() %}
{% if v.getCode() == selectedValues[t.getCode()] %}
{{ v.getValue()|number_format(3, ',', '.') }}
{% endif %}
{% endfor %}
</td>
<td>{{ t.getUnit() }}</td>
</tr>
{% endfor %}
</table>
<div class="clear"></div>
<h4>Thermische Werte des Konstruktionsanschlusses</h4>
(Zwischenwerte können linear interpoliert werden)
<table width="100%" id="value-table">
{% set availableTpcKeys = tpcData %}
{% if regulationComponents['u1'] is defined %}
<tr>
<td>Wärmedurchgangskoeffizient Regelbauteil {{ regulationComponents['u1'].getName() }}</td>
<td class="right">U</td>
<td class="right small-padding-right">{{ tpcData['u1'] is defined ? tpcData['u1']|number_format(3, ',', '.') : 0 }}</td>
<td class="small-padding-right">W/(m²K)</td>
</tr>
{% endif %}
{% if regulationComponents['u2'] is defined %}
<tr>
<td>Wärmedurchgangskoeffizient Regelbauteil {{ regulationComponents['u2'].getName() }}</td>
<td class="right">U</td>
<td class="right small-padding-right">{{ tpcData['u2'] is defined ? tpcData['u2']|number_format(3, ',', '.') : 0 }}</td>
<td class="small-padding-right">W/(m²K)</td>
</tr>
{% endif %}
{% if regulationComponents['u3'] is defined %}
<tr>
<td>Wärmedurchgangskoeffizient Regelbauteil {{ regulationComponents['u3'].getName() }}</td>
<td class="right">U</td>
<td class="right small-padding-right">{{ tpcData['u3'] is defined ? tpcData['u3']|number_format(3, ',', '.') : 0 }}</td>
<td class="small-padding-right">W/(m²K)</td>
</tr>
{% endif %}
{% if 'y' in availableTpcKeys|keys %}
<tr>
<td>Längenbezogener Wärmedurchgangskoeffizient</td>
<td class="right">ψ</td>
<td class="right small-padding-right">{{ tpcData['y']|number_format(3, ',', '.') }}</td>
<td class="small-padding-right">W/(mK)</td>
</tr>
{% endif %}
{% if 'c' in availableTpcKeys|keys %}
<tr>
<td>Punktbezogener Wärmedurchgangskoeffizient</td>
<td class="right">χ</td>
<td class="right small-padding-right">{{ tpcData['c']|number_format(3, ',', '.') }}</td>
<td class="small-padding-right">W/K</td>
</tr>
{% endif %}
{% if 'q' in availableTpcKeys|keys %}
<tr>
<td>Minimale Oberflächentemperatur im beheizten Raum</td>
<td class="right">θmin</td>
<td class="right small-padding-right">{{ tpcData['q']|number_format(1, ',', '.') }}</td>
<td class="small-padding-right">°C</td>
</tr>
{% endif %}
</table>
<div class="clear"></div>
</div>
<div id="page-2">
<div id="beton-logo">
<img src="{{ app.request.scheme ~'://' ~ app.request.httpHost ~ asset('bundles/atlas/images/logo.png') }}"
align="right">
</div>
<div class="clear"></div>
<h2>Konstruktionszeichnung</h2>
<center>
<img
src="{{ app.request.scheme ~'://' ~ app.request.httpHost ~ asset('/bundles/atlas/constructiondocuments/'~element['element'].getCode()~'/'~element['element'].getCode()~'-Konstruktion.png') }}"
class="img-element">
</center>
<div class="clear"></div>
<h2>Temperaturbild einer repräsentativen Variante</h2>
<center>
<img
src="{{ app.request.scheme ~'://' ~ app.request.httpHost ~ asset('/bundles/atlas/constructiondocuments/'~element['element'].getCode()~'/'~element['element'].getCode()~'-Iso-Bild.png') }}"
class="img-element">
</center>
<div class="clear"></div>
</div>
</body>
</html>
{% endif %}