{# @var travelOption \AppBundle\Entity\TravelOption #}
<div class="checkbox">
    {{ form_widget(travelOptionForm) }}
    <label for="{{ travelOptionForm.vars.id }}">
        {{ travelOption.name }} (p.P {{ travelOption.price|number_format(2) }} €)
        {% if travelOption.description is not empty %}
            <br class="visible-xs">
            (<a href="#" data-toggle="modal" data-target="#st-booking-option-{{ travelOption.id }}-modal">Details</a>)
        {% endif %}
    </label>
    {% if travelOption.description is not empty %}
        {% embed "default/components/embed/modal.html.twig" with {
            'title': travelOption.name,
            'id': 'booking-option-' ~ travelOption.id
        } %}
            {% block body %}{{ travelOption.description|raw }}{% endblock %}
        {% endembed %}
    {% endif %}
</div>