diff options
-rw-r--r-- | templates/journey.html.ep | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/templates/journey.html.ep b/templates/journey.html.ep index 712bba6..ff5bc12 100644 --- a/templates/journey.html.ep +++ b/templates/journey.html.ep @@ -188,6 +188,24 @@ % } </td> </tr> + % if ($journey->{user_data} and $journey->{user_data}{wagons}) { + <tr> + <th scope="row">Rollmaterial</th> + <td> + % for my $wagongroup (@{$journey->{user_data}{wagongroups} // []}) { + Gruppe <%= $wagongroup %><br/> + % } + % for my $wagon (@{$journey->{user_data}{wagons}}) { + <span style="margin-right: 0.5ex;"><%= substr($wagon->{id}, 0, 2) %></span><span style="margin-right: 0.5ex;"><%= substr($wagon->{id}, 2, 2) %></span><span style="margin-right: 0.5ex;"><%= substr($wagon->{id}, 4, 1) %></span><span style="margin-right: 0.5ex; font-weight: bold;"><%= substr($wagon->{id}, 5, 3) %></span><span style="margin-right: 0.5ex;"><%= substr($wagon->{id}, 8, 3) %></span><span style="margin-right: 1em;"><%= substr($wagon->{id}, 11) %></span> + %= $wagon->{type} + % if ($wagon->{number}) { + – Wagen <%= $wagon->{number} %> + % } + <br/> + % } + </td> + </tr> + % } </table> </div> </div> |