{#
* Plugin Name : ExpressLink42
*
* Copyright (C) BraTech Co., Ltd. All Rights Reserved.
* http://www.bratech.co.jp/
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
#}
<div id="expresslink_schedule_date" style="display:none;">
<div class="row mb-3">
<label class="col-3 col-form-label"><i class="fa fa-truck-pickup fa-fw me-1" aria-hidden="true"></i>{{ 'expresslink.admin.form.order.label.shipping_schedule_date'|trans }}</label>
<div class="col">
{{ form_widget(form.Shipping.shipping_schedule_date) }}
{{ form_errors(form.Shipping.shipping_schedule_date) }}
</div>
</div>
</div>
<script>
$(function() {
$('div.row.mb-3').each(function(i) {
if($(this).text().match(/{{'admin.order.delivery_time'|trans}}/)){
$elem = $('#expresslink_schedule_date');
$(this).after($elem.html());
$elem.remove();
}
});
});
</script>