app/Plugin/TabaCustomFields2/Resource/template/snippet/shopping_index.twig line 1

Open in your IDE?
  1. <script>
  2.     $(function () {
  3.         $('.ec-orderRole__detail').append($('#tabacustomfields2_shopping_index'));
  4.     });
  5. </script>
  6. <div id="tabacustomfields2_shopping_index" class="mt-3">
  7.     {% for f in form|filter(f => f.vars.eccube_form_options.auto_render and f.vars.name matches '[^plg_custom_field*]') %}
  8.         <div class="ec-tabaCustomFields">
  9.             {% if f.vars.eccube_form_options.form_theme %}
  10.                 {% form_theme f f.vars.eccube_form_options.form_theme %}
  11.                 {{ form_row(f) }}
  12.             {% else %}
  13.                 <div class="ec-rectHeading">
  14.                     <h2>{{ form_label(f) }}</h2>
  15.                 </div>
  16.             {% set FORM = form_widget(f) %}
  17.             {% if  FORM matches '{^.*(textarea|text).*}' %}
  18.                 <div class="ec-input">
  19.             {% elseif FORM matches '{^.*radio.*}' %}
  20.                 <div class="ec-radio">
  21.             {% elseif FORM matches '{^.*select.*}' %}
  22.                 <div class="ec-select">
  23.             {% elseif FORM matches '{^.*checkbox.*}' %}
  24.                 <div class="ec-checkbox">
  25.             {% else %}
  26.                 <div>
  27.             {% endif %}
  28.                     {{ FORM|raw }}
  29.                     {{ form_errors(f) }}
  30.                 </div>
  31.             {% endif %}
  32.         </div>
  33.     {% endfor %}
  34. </div>