app/Plugin/ProductOption42/Resource/template/admin/Product/product_edit.twig line 1

Open in your IDE?
  1. {#
  2. * Plugin Name : ProductOption
  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. {% if id is not null %}
  11. <div class="card rounded border-0 mb-4">
  12.     <div class="card-header">
  13.         <div class="row">
  14.             <div class="col-8">
  15.                 <div class="d-inline-block" data-tooltip="true" data-placement="top"
  16.                      title="{{ 'productoption.tooltip.product.product_option'|trans }}">
  17.                 <span class="card-title">
  18.                     {{ 'productoption.admin.product.product_option__card_title'|trans }}
  19.                     <i class="fa fa-question-circle fa-lg ml-1"></i>
  20.                 </span>
  21.                 </div>
  22.             </div>
  23.             <div class="col-4 text-end">
  24.                 <a data-bs-toggle="collapse" href="#productOption" aria-expanded="false"
  25.                    aria-controls="productOption">
  26.                     <i class="fa fa-angle-up fa-lg"></i>
  27.                 </a>
  28.             </div>
  29.         </div>
  30.     </div>
  31.     <div class="collapse show ec-cardCollapse" id="productOption">
  32.         <div class="card-body">
  33.             {% if Product.ProductOptions|length > 0 %}
  34.                 <table class="table table-striped">
  35.                     <thead class="table-active">
  36.                     <th class="pl-3 pt-2 pb-2">{{ 'productoption.admin.product.option.backend_name'|trans }}</th>
  37.                     <th class="pt-2 pb-2">{{ 'productoption.admin.product.option.name'|trans }}</th>
  38.                     <th class="pt-2 pb-2">{{ 'productoption.admin.product.option.type'|trans }}</th>
  39.                     </thead>
  40.                     <tbody>
  41.                     {% for ProductOption in Product.ProductOptions %}
  42.                         <tr>
  43.                             <td class="pl-3">{{ ProductOption.Option.backend_name }}</td>
  44.                             <td>{{ ProductOption.Option.name }}</td>
  45.                             <td>{{ arrType[ProductOption.Option.type] }}</td>
  46.                         </tr>
  47.                     {% endfor %}
  48.                     </tbody>
  49.                 </table>
  50.             {% endif %}
  51.             <div class="d-block text-center text-center">
  52.                 <a href="{{ path('admin_product_product_option', { 'id' : id }) }}" class="btn btn-ec-regular" data-action="confirm"
  53.                    title="{{ 'admin.common.move_to_confirm_message'|trans({
  54.                        '%name%' : 'productoption.admin.product.option.option.rank.assign'|trans
  55.                    }) }}">{{ 'productoption.admin.product.product_option__confirm_of_product'|trans }}</a>
  56.             </div>
  57.             <div class="d-block text-center text-center" style="margin-top:10px;">
  58.                 <a href="{{ path('admin_product_product_option_rank', { 'id' : id }) }}" class="btn btn-ec-regular" data-action="confirm"
  59.                    title="{{ 'admin.common.move_to_confirm_message'|trans({
  60.                        '%name%' : 'productoption.admin.product.option.option.rank.sort'|trans
  61.                    }) }}">{{ 'productoption.admin.product.product_option_rank__confirm_of_product'|trans }}</a>
  62.             </div>
  63.         </div>
  64.     </div>
  65. </div>
  66. {% endif %}