Commit 3042b677 authored by Volker Krause's avatar Volker Krause
Browse files

Use formatted values of pkpass fields, not the raw ones

This now makes a difference that KPkPass implements date/time detection
and formatting.
parent 9f7ff05f
Pipeline #67691 passed with stage
in 54 minutes and 15 seconds
......@@ -27,7 +27,7 @@
{% endfor %}
</tr><tr>
{% for field in pass.headerFields %}
<td style="font-size: 150%; padding-top:0px;">{{ field.value }}</td>
<td style="font-size: 150%; padding-top:0px;">{{ field.valueDisplayString }}</td>
{% endfor %}
</tr>
</table>
......@@ -41,7 +41,7 @@
<td></td>
<td style="width:50%; white-space: nowrap; text-align:right; color: {{ pass.labelColorName }}; padding-bottom:0px;">{{ pass.primaryFields.1.label }}</td>
</tr><tr style="font-size: 200%;">
<td style="vertical-align:top; padding-top:0px;">{{ pass.primaryFields.0.value }}</td>
<td style="vertical-align:top; padding-top:0px;">{{ pass.primaryFields.0.valueDisplayString }}</td>
<td style="color: {{ pass.labelColorName }}; padding-top:0px;">
{% if pass.transitType == pass.Air %}
&#9992;
......@@ -55,7 +55,7 @@
&rarr;
{% endif %}
</td>
<td style="text-align:right; vertical-align:top; padding-top:0px;">{{ pass.primaryFields.1.value }}</td>
<td style="text-align:right; vertical-align:top; padding-top:0px;">{{ pass.primaryFields.1.valueDisplayString }}</td>
</tr>
</table>
</div>
......@@ -68,7 +68,7 @@
{% endfor %}
</tr><tr style="font-size: 150%;">
{% for field in pass.auxiliaryFields %}
<td style="vertical-align:top; padding-top:0px;">{{ field.value }}</td>
<td style="vertical-align:top; padding-top:0px;">{{ field.valueDisplayString }}</td>
{% endfor %}
</tr>
</table>
......@@ -82,7 +82,7 @@
{% endfor %}
</tr><tr style="font-size: 150%;">
{% for field in pass.secondaryFields %}
<td style="vertical-align:top; padding-top:0px;">{{ field.value }}</td>
<td style="vertical-align:top; padding-top:0px;">{{ field.valueDisplayString }}</td>
{% endfor %}
</tr>
</table>
......@@ -99,7 +99,7 @@
<hr/>
{% for field in pass.backFields %}
<div style="color: {{ pass.labelColorName }};">{{ field.label }}</div>
<div>{{ field.value|safe|linebreaksbr }}</div>
<div>{{ field.valueDisplayString|safe|linebreaksbr }}</div>
{% endfor %}
</div> <!-- boarding pass -->
......
......@@ -31,7 +31,7 @@
{% endfor %}
</tr><tr>
{% for field in pass.headerFields %}
<td style="font-size: 120%; padding-top:0px;">{{ field.value }}</td>
<td style="font-size: 120%; padding-top:0px;">{{ field.valueDisplayString }}</td>
{% endfor %}
</tr>
</table>
......@@ -51,7 +51,7 @@
{% endfor %}
</tr><tr style="font-size: 120%;">
{% for field in pass.primaryFields %}
<td style="vertical-align:top; padding-top:0px;">{{ field.value }}</td>
<td style="vertical-align:top; padding-top:0px;">{{ field.valueDisplayString }}</td>
{% endfor %}
</tr>
</table>
......@@ -65,7 +65,7 @@
{% endfor %}
</tr><tr style="font-size: 120%;">
{% for field in pass.secondaryFields %}
<td style="vertical-align:top; padding-top:0px;">{{ field.value }}</td>
<td style="vertical-align:top; padding-top:0px;">{{ field.valueDisplayString }}</td>
{% endfor %}
</tr>
</table>
......@@ -79,7 +79,7 @@
{% endfor %}
</tr><tr style="font-size: 120%;">
{% for field in pass.auxiliaryFields %}
<td style="vertical-align:top; padding-top:0px;">{{ field.value }}</td>
<td style="vertical-align:top; padding-top:0px;">{{ field.valueDisplayString }}</td>
{% endfor %}
</tr>
</table>
......@@ -96,7 +96,7 @@
<hr/>
{% for field in pass.backFields %}
<div style="color: {{ pass.labelColorName }};">{{ field.label }}</div>
<div>{{ field.value|safe|linebreaksbr }}</div>
<div>{{ field.valueDisplayString|safe|linebreaksbr }}</div>
{% endfor %}
</div> <!-- boarding pass -->
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment