1{#** 2 * Copyright since 2007 PrestaShop SA and Contributors 3 * PrestaShop is an International Registered Trademark & Property of PrestaShop SA 4 * 5 * NOTICE OF LICENSE 6 * 7 * This source file is subject to the Open Software License (OSL 3.0) 8 * that is bundled with this package in the file LICENSE.md. 9 * It is also available through the world-wide-web at this URL: 10 * https://opensource.org/licenses/OSL-3.0 11 * If you did not receive a copy of the license and are unable to 12 * obtain it through the world-wide-web, please send an email 13 * to license@prestashop.com so we can send you a copy immediately. 14 * 15 * DISCLAIMER 16 * 17 * Do not edit or add to this file if you wish to upgrade PrestaShop to newer 18 * versions in the future. If you wish to customize PrestaShop for your 19 * needs please refer to https://devdocs.prestashop.com/ for more information. 20 * 21 * @author PrestaShop SA and Contributors <contact@prestashop.com> 22 * @copyright Since 2007 PrestaShop SA and Contributors 23 * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) 24 *#} 25 26<div class="card"> 27 <h3 class="card-header"> 28 {{ 'Products'|trans({}, 'Admin.Global') }} 29 ({{ viewableManufacturer.manufacturerProducts|length }}) 30 </h3> 31 <div class="card-body"> 32 {% for product in viewableManufacturer.manufacturerProducts %} 33 <div class="card"> 34 <div class="card-header clearfix"> 35 <a href="{{ path('admin_product_form', {'id': product.id}) }}">{{ product.name }}</a> 36 37 <div class="d-inline-block float-right"> 38 <div class="btn-group-action text-right"> 39 <div class="btn-group"> 40 <a class="btn btn-link dropdown-toggle dropdown-toggle-dots dropdown-toggle-split p-0 no-rotate" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> 41 </a> 42 <div class="dropdown-menu dropdown-menu-right"> 43 <a class="btn tooltip-link js-submit-row-action dropdown-item" 44 href="{{ path('admin_product_form', {'id': product.id}) }}" 45 > 46 {{ 'Edit'|trans({}, 'Admin.Actions') }} 47 </a> 48 <button class="btn tooltip-link js-form-submit-btn dropdown-item" 49 type="button" 50 data-form-submit-url="{{ path('admin_product_unit_action', {'action': 'delete', 'id': product.id}) }}" 51 data-form-confirm-message="{{ '%s%s?'|format('Delete item #'|trans({}, 'Admin.International.Feature'), product.id) }}" 52 > 53 {{ 'Delete'|trans({}, 'Admin.Actions') }} 54 </button> 55 </div> 56 </div> 57 </div> 58 </div> 59 </div> 60 <div class="card-body"> 61 {% if product.combinations is not empty %} 62 <table class="table"> 63 <thead> 64 <tr> 65 <th>{{ 'Attribute name'|trans({}, 'Admin.Catalog.Feature') }}</th> 66 <th>{{ 'Reference'|trans({}, 'Admin.Global') }}</th> 67 <th>{{ 'EAN13'|trans({}, 'Admin.Catalog.Feature') }}</th> 68 <th>{{ 'UPC'|trans({}, 'Admin.Catalog.Feature') }}</th> 69 <th>{{ 'MPN'|trans({}, 'Admin.Catalog.Feature') }}</th> 70 {% if not isAllShopContext and isStockManagementEnabled %} 71 <th>{{ 'Available quantity'|trans({}, 'Admin.Catalog.Feature') }}</th> 72 {% endif %} 73 </tr> 74 </thead> 75 <tbody> 76 {% for combination in product.combinations %} 77 <tr> 78 <td>{{ combination.attributes }}</td> 79 <td>{{ combination.reference }}</td> 80 <td>{{ combination.ean13 }}</td> 81 <td>{{ combination.upc }}</td> 82 <td>{{ combination.mpn }}</td> 83 {% if not isAllShopContext and isStockManagementEnabled %} 84 <td>{{ combination.quantity }}</td> 85 {% endif %} 86 </tr> 87 {% endfor %} 88 </tbody> 89 </table> 90 {% else %} 91 <table class="table"> 92 <thead> 93 <tr> 94 <th>{{ 'Ref:'|trans({}, 'Admin.Catalog.Feature') }}</th> 95 <th>{{ 'EAN13:'|trans({}, 'Admin.Catalog.Feature') }}</th> 96 <th>{{ 'UPC:'|trans({}, 'Admin.Catalog.Feature') }}</th> 97 <th>{{ 'MPN:'|trans({}, 'Admin.Catalog.Feature') }}</th> 98 {% if isStockManagementEnabled %} 99 <th>{{ 'Qty:'|trans({}, 'Admin.Catalog.Feature') }}</th> 100 {% endif %} 101 </tr> 102 </thead> 103 <tbody> 104 <tr> 105 <td>{{ product.reference }}</td> 106 <td>{{ product.ean13 }}</td> 107 <td>{{ product.upc }}</td> 108 <td>{{ product.mpn }}</td> 109 {% if isStockManagementEnabled %} 110 <td>{{ product.quantity }}</td> 111 {% endif %} 112 </tr> 113 </tbody> 114 </table> 115 {% endif %} 116 </div> 117 </div> 118 {% endfor %} 119 </div> 120</div> 121