sterntours/trunk/app/Resources/views/default/components/departuresModal.html.twig
Kevin Adametz 54fc46ace4 Optimierung Darstellungen, kleine Bugs,
SS-Sudan twig im Content
2019-07-09 14:29:58 +02:00

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"><i class="fa fa-times"></i></span>
</button>
<h4 class="modal-title text-left">Abflugorte / Zuschläge</h4>
</div>
<div class="modal-body">
<table class="table table-modal">
<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 %}