?? GreyFile — Mystic File Browser

Current path: home/webdevt/prestashop17/src/PrestaShopBundle/Resources/views/Admin/Sell/Catalog/Product/Blocks/



?? Go up: /home/webdevt/prestashop17/src/PrestaShopBundle/Resources/views/Admin/Sell/Catalog/Product

?? Viewing: tabs.html.twig

{#**
 * Copyright since 2007 PrestaShop SA and Contributors
 * PrestaShop is an International Registered Trademark & Property of PrestaShop SA
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Open Software License (OSL 3.0)
 * that is bundled with this package in the file LICENSE.md.
 * It is also available through the world-wide-web at this URL:
 * https://opensource.org/licenses/OSL-3.0
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to license@prestashop.com so we can send you a copy immediately.
 *
 * DISCLAIMER
 *
 * Do not edit or add to this file if you wish to upgrade PrestaShop to newer
 * versions in the future. If you wish to customize PrestaShop for your
 * needs please refer to https://devdocs.prestashop.com/ for more information.
 *
 * @author    PrestaShop SA and Contributors <contact@prestashop.com>
 * @copyright Since 2007 PrestaShop SA and Contributors
 * @license   https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
 *#}
{% set isBasicTabValid = productForm.basic.vars.valid %}
{% set isOptionsTabValid = productForm.options.vars.valid %}
{% set isPricingTabValid = productForm.pricing.vars.valid %}
{% set isSEOTabValid = productForm.seo.vars.valid %}

{# Some forms may be removed #}
{% set isStockTabValid = productForm.stock is not defined or productForm.stock.vars.valid %}
{% set isShippingTabValid = productForm.shipping is not defined or productForm.shipping.vars.valid %}

<div class="tabs js-tabs">
  <div class="arrow d-xl-none js-arrow left-arrow float-left">
    <i class="material-icons hide">chevron_left</i>
  </div>

  <ul class="nav nav-tabs js-nav-tabs" id="form-nav" role="tablist">
    <li id="basic-tab-nav" class="nav-item{% if not isBasicTabValid %} has-error{% endif %}">
      <a href="#basic-tab" role="tab" data-toggle="tab" class="nav-link active">
        {{ 'Basic settings'|trans({}, 'Admin.Catalog.Feature') }}
      </a>
    </li>

    {% if productForm.stock is defined %}
      <li id="stock-tab-nav" class="nav-item{% if not isStockTabValid %} has-error{% endif %}">
        <a href="#stock-tab" role="tab" data-toggle="tab" class="nav-link">
          {% if productType == 'virtual' %}
            {{ 'Virtual product'|trans({}, 'Admin.Catalog.Feature') }}
          {% else %}
            {{ 'Quantities'|trans({}, 'Admin.Catalog.Feature') }}
          {% endif %}
        </a>
      </li>
    {% endif %}

    {% if productType == 'combinations' %}
      <li id="combinations-tab-nav" class="nav-item">
        <a href="#combinations-tab" role="tab" data-toggle="tab" class="nav-link">
          {{ 'Combinations'|trans({}, 'Admin.Catalog.Feature') }}
        </a>
      </li>
    {% endif %}

    {% if productForm.shipping is defined %}
      <li id="shipping-tab-nav" class="nav-item{% if not isShippingTabValid %} has-error{% endif %}">
        <a href="#shipping-tab" role="tab" data-toggle="tab" class="nav-link">
          {{ 'Shipping'|trans({}, 'Admin.Catalog.Feature') }}
        </a>
      </li>
    {% endif %}

    <li id="pricing-tab-nav" class="nav-item{% if not isPricingTabValid %} has-error{% endif %}">
      <a href="#pricing-tab" role="tab" data-toggle="tab" class="nav-link">
        {{ 'Pricing'|trans({}, 'Admin.Catalog.Feature') }}
      </a>
    </li>

    <li id="seo-tab-nav" class="nav-item{% if not isSEOTabValid %} has-error{% endif %}">
      <a href="#seo-tab" role="tab" data-toggle="tab" class="nav-link">
        {{ 'SEO'|trans({}, 'Admin.Catalog.Feature') }}
      </a>
    </li>

    <li id="options-tab-nav" class="nav-item{% if not isOptionsTabValid %} has-error{% endif %}">
      <a href="#options-tab" role="tab" data-toggle="tab" class="nav-link">
        {{ 'Options'|trans({}, 'Admin.Global') }}
      </a>
    </li>

    {% if hooksarraycontent(extraModulesHooks) is not empty %}
      <li id="modules-tab-nav" class="nav-item">
        <a href="#modules-tab" role="tab" data-toggle="tab" class="nav-link">
          {{ 'Modules'|trans({}, 'Admin.Catalog.Feature') }}
        </a>
      </li>
    {% endif %}
  </ul>

  <div class="arrow d-xl-none js-arrow right-arrow visible float-right">
    <i class="material-icons hide">chevron_right</i>
  </div>
</div>


??

??