Added color to type in preorder popup

This commit is contained in:
Frank Schubert
2023-03-14 17:23:18 +01:00
parent 206a701326
commit cd9bd420a6
2 changed files with 9 additions and 8 deletions

View File

@@ -401,6 +401,7 @@
["zip", preorder.adb_plz],
["city", preorder.adb_ort],
["type", preorder.type_label],
["typestyle", "color: #000; background-color: " + icon_color],
["adrcd", preorder.adrcd],
["extref", preorder.extref ? preorder.extref : ""],
["gps", (preorder.gps_lat && preorder.gps_long) ? preorder.gps_lat + ", " + preorder.gps_long : ""],

View File

@@ -10,23 +10,23 @@ ob_start();
<table class="table table-sm table-striped">
<tr>
<th class="font-weight-bold">GWR Adrcd:</th>
<td>{{ADRCD}}</td>
</tr><tr>
<th class="font-weight-bold">Extref:</th>
<td>{{EXTREF}}</td>
<th class="font-weight-bold">Bestelltyp:</th>
<td style="{{TYPESTYLE}}">{{TYPE}}</td>
</tr><tr>
<th class="font-weight-bold">Gebäudetyp:</th>
<td>{{CONNECTIONTYPE}}</td>
</tr><tr>
<th class="font-weight-bold">Bestelltyp:</th>
<td>{{TYPE}}</td>
</tr><tr>
<th class="font-weight-bold">Anschlüsse:</th>
<td>{{COUNT}}</td>
</tr><tr>
<th class="font-weight-bold">GPS:</th>
<td><a href="https://maps.google.com/maps?t=k&q=loc:{{GPS}}" target="_blank">{{GPS}}</a></td>
</tr><tr>
<th class="font-weight-bold">GWR Adrcd:</th>
<td>{{ADRCD}}</td>
</tr><tr>
<th class="font-weight-bold">Extref:</th>
<td>{{EXTREF}}</td>
</tr><tr>
<th class="font-weight-bold">Kontakt:</th>
<td>{{CONTACT}}</td>