arch-8.x-1.x-dev/modules/product/templates/product-add-list.html.twig

modules/product/templates/product-add-list.html.twig
{#
/**
 * @file
 * Default theme implementation to list product types available for adding product.
 *
 * This list is displayed on the Add product admin page.
 *
 * Available variables:
 * - types: A list of product types, each with the following properties:
 *   - add_link: Link to create a piece of product of this type.
 *   - description: Description of this type of product.
 *
 * @see template_preprocess_product_add_list()
 *
 * @ingroup themeable
 */
#}
{% if types is not empty %}
  <dl>
    {% for type in types %}
      <dt>{{ type.add_link }}</dt>
      <dd>{{ type.description }}</dd>
    {% endfor %}
  </dl>
{% else %}
  <p>
    {% set create_product = path('product.type_add') %}
    {% trans %}
      You have not created any product types yet. Go to the
      <a href="{{ create_product }}">product type creation page</a> to add a new product type.
    {% endtrans %}
  </p>
{% endif %}

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc