57 lines
No EOL
3 KiB
Twig
57 lines
No EOL
3 KiB
Twig
<div class="modal fade" tabindex="-1" role="dialog" id="st-departures-modal-{{ id }}">
|
|
<div class="modal-dialog" role="document">
|
|
<div class="modal-content">
|
|
<div class="modal-header">
|
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
|
<span aria-hidden="true">×</span>
|
|
</button>
|
|
<h4 class="modal-title">Abflugorte / Zuschläge</h4>
|
|
</div>
|
|
<div class="modal-body">
|
|
<table class="table">
|
|
<thead>
|
|
<tr>
|
|
<th style="text-align: left; width: 80%">Ort</th>
|
|
<th style="width: 20%">Zu-/Abschlag</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for departure in departures %}
|
|
{# @var departure \AppBundle\Entity\TravelDeparturePoint #}
|
|
<tr>
|
|
<td style="text-align: left">
|
|
{% if departure.flightTime is defined %}
|
|
{% if departure.flightTime.startWeekday is defined %}
|
|
{% if departure.flightTime[startWeekday] != "" %}
|
|
<a href="#" data-toggle="collapse" data-target="#flight_{{ travelName }}_{{ departure.id }}" class="pull-right collapsed">Flugzeiten <i class="fa fa-plus"></i></a>
|
|
{% endif %}
|
|
{% endif %}
|
|
<h4>{{ departure.name }}</h4>
|
|
{% if departure.flightTime.startWeekday is defined %}
|
|
<div class="collapse" id="flight_{{ travelName }}_{{ departure.id }}" style="">
|
|
{% for flightTime in departure.flightTime[startWeekday]|split('\n') %}
|
|
{% if flightTime != "" %}
|
|
{{ flightTime|raw }}<br>
|
|
{% endif %}
|
|
{% endfor %}
|
|
</div>
|
|
{% endif %}
|
|
{% endif %}
|
|
</td>
|
|
<td>{{ departure.extraCharge|number_format(2) }} €</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<div class="modal-footer">
|
|
<button type="button" class="btn btn-default" data-dismiss="modal">schließen</button>
|
|
</div>
|
|
</div><!-- /.modal-content -->
|
|
</div><!-- /.modal-dialog -->
|
|
</div><!-- /.modal -->
|
|
|
|
|
|
{% for departure in travel_date.departures %}
|
|
{# @var departure \AppBundle\Entity\TravelDeparturePoint #}
|
|
{% endfor %} |