<div class="modal fade" id="inpostDispatchOrderModal" tabindex="-1" role="dialog">
    <div class="modal-dialog modal-lg" 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">&times;</span></button>
                <h4 class="modal-title" id="inpostDispatchOrderTitle">{{ text_dispatch_order }}</h4>
            </div>
            <div class="modal-body">
                <form action="#" method="post" enctype="multipart/form-data" id="form-dispatch-order" class="form-horizontal">
                    {% if not pickupPoints %}
                        <h3>{{ text_no_pickup_points }}</h3>
                    {% else %}
                        <div class="form-group">
                            <label for="dispatchPoint" class="col-sm-2 control-label">{{ text_dispatch_point }}</label>
                            <div class="col-sm-10">

                                <select name="dispatchPoint" id="dispatchPoint" class="form-control">
                                    {% for point in pickupPoints %}
                                    <option value="{{ point.id_pickup_point }}">{{ point.name }} ({{ point.street ~ ' ' ~ point.housenumber ~ ', ' ~ point.postcode ~ ', ' ~ point.city }})</option>
                                    {% endfor %}
                                </select>
                            </div>
                        </div>
                    {% endif %}
                    <hr>
                    <button type="button" class="btn btn-primary btn-sm" id="button-create-pickup-point"><i class="fa fa-plus-circle"></i> {{ text_add_pickup_point }}</button>
                </form>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" id="button-close-dispatch-order-modal">{{ text_button_modal_close }}</button>
                <button type="button" class="btn btn-primary" id="button-submit-dispatch-order-form{{ bulk ? '-bulk' }}" data-id="{{ id }}" {% if not pickupPoints %} disabled="disabled" {% endif %}>
                    {{ text_dispatch_order }}</button>
            </div>
        </div>
    </div>
</div>