app/Plugin/EccubePaymentLite42/Resource/template/admin/Order/payment_status_form.twig line 1

Open in your IDE?
  1. <script>
  2.     $(function() {
  3.         $('#orderOverview .col-6:first').append(
  4.             '<div class="row mb-3 form-group">' +
  5.                 '<div class="col-3 col-form-label">' +
  6.                     '{{ 'gmo_epsilon.admin.order.payment_status'|trans }}' +
  7.                 '</div>' +
  8.                 '<div class="col">' +
  9.                     '<select id="order_PaymentStatus" name="order[PaymentStatus]" class="form-control">' +
  10.                         '<option value="">-</option>' +
  11.                         {% for key, child in form.PaymentStatus.vars.choices %}
  12.                         {% set Status = form.PaymentStatus.vars.choices[key].data %}
  13.                         '<option value="{{ key }}" {% if form.PaymentStatus.vars.value == key %}selected="selected"{% endif %}>{{ Status }}</option>' +
  14.                         {% endfor %}
  15.                     '</select>' +
  16.                     {% if form.PaymentStatus.vars.errors|length > 0 %}
  17.                         {% for error in form.PaymentStatus.vars.errors %}
  18.                             '<span class="invalid-feedback d-block">' +
  19.                                 '<span class="d-block">' +
  20.                                     '<span class="form-error-icon badge bg-danger text-uppercase">エラー</span> <span class="form-error-message">{{ error.message }}</span>' +
  21.                                 '</span>' +
  22.                             '</span>' +
  23.                         {% endfor %}
  24.                     {% endif %}
  25.                 '</div>' +
  26.             '</div>'
  27.         );
  28.         $('#submitPaymentStatusForm').on('click', function() {
  29.             $('#form1').submit();
  30.         });
  31.     });
  32. </script>