app/Plugin/ExpressLink42/Resource/template/admin/Order/order_schedule_date.twig line 1

Open in your IDE?
  1. {#
  2. * Plugin Name : ExpressLink42
  3. *
  4. * Copyright (C) BraTech Co., Ltd. All Rights Reserved.
  5. * http://www.bratech.co.jp/
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. #}
  10. <div id="expresslink_schedule_date" style="display:none;">
  11.     <div class="row mb-3">
  12.         <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>
  13.         <div class="col">
  14.             {{ form_widget(form.Shipping.shipping_schedule_date) }}
  15.             {{ form_errors(form.Shipping.shipping_schedule_date) }}
  16.         </div>
  17.     </div>
  18. </div>
  19. <script>
  20.     $(function() {
  21.         $('div.row.mb-3').each(function(i) {
  22.             if($(this).text().match(/{{'admin.order.delivery_time'|trans}}/)){
  23.                 $elem = $('#expresslink_schedule_date');
  24.                 $(this).after($elem.html());
  25.                 $elem.remove();
  26.             }
  27.         });
  28.     });
  29. </script>