app/Plugin/ProductPlus42/Resource/template/admin/Product/ext_edit.twig line 1

Open in your IDE?
  1. {#
  2. * Plugin Name : ProductPlus
  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. {% for ProductItem in ProductItems %}
  11.     {% set name = 'productplus_' ~ ProductItem.id %}
  12.     {% if ProductItem.input_type == constant('Plugin\\ProductPlus42\\Entity\\ProductItem::IMAGE_TYPE') %}
  13.     <div class="row">
  14.         <div class="col-3">
  15.             <div class="d-inline-block" data-tooltip="true" data-placement="top" title="{{ 'tooltip.product.image'|trans }}">
  16.                 <span>{{ form[name].vars.label }}</span>
  17.                 {% if form[name].vars.required %}
  18.                 <span class="badge bg-primary ms-1">
  19.                     {{ 'admin.common.required'|trans }}
  20.                 </span>
  21.                 {% endif %}
  22.             </div>
  23.         </div>
  24.         <div class="col mb-2">
  25.             <p id="message-{{ ProductItem.id }}"></p>
  26.             <div id="upload-zone-{{ ProductItem.id }}" class="media rounded">
  27.                 <div class="media-body">
  28.                     {{ form_widget(form[name], { attr : { style : 'display:none;' } }) }}
  29.                     {{ form_errors(form[name]) }}
  30.                 </div><!-- /.media-body -->
  31.             </div><!-- /.media -->
  32.         </div>
  33.     </div>
  34.     {% else %}
  35.     <div class="row" id="detail_box__productplus_{{ ProductItem.id }}">
  36.         <div class="col-3">
  37.             <div class="d-inline-block">
  38.                 <span>{{ form[name].vars.label }}</span>
  39.                 {% if form[name].vars.required %}
  40.                 <span class="badge bg-primary ms-1">
  41.                     {{ 'admin.common.required'|trans }}
  42.                 </span>
  43.                 {% endif %}
  44.             </div>
  45.         </div>
  46.         <div class="col mb-2">
  47.             <div>
  48.                 {{ form_widget(form[name]) }}
  49.                 {{ form_errors(form[name]) }}
  50.             </div>
  51.         </div>
  52.     </div>
  53.     {% endif %}
  54. {% endfor %}