{#

This file is part of the Sonata package.

(c) Thomas Rabaix <thomas.rabaix@sonata-project.org>

For the full copyright and license information, please view the LICENSE
file that was distributed with this source code.

#}


{#
    Default product template file, you can
      => customize the global template : Product:Product:view.twig
      => rewrite your own template
#}

{% extends 'SonataProductBundle:Product:view.html.twig' %}

{% set variations_properties = ['level', 'duration'] %}

{% block product_title %}{{ product.name }}{% endblock %}

{% block product_delivery %}{% endblock %}

{% block product_properties_before_price %}
    {% if not product.isMaster %}
        <dt style="width: auto;">{{ 'training.level_title'|trans([], 'SonataProductBundle') }}</dt>
        <dd style="margin-left: 110px;">{{ product.level|trans([], 'SonataProductBundle') }}</dd>
        <dt style="width: auto;">{{ 'training.instructor_title'|trans([], 'SonataProductBundle') }}</dt>
        <dd style="margin-left: 110px;">{{ product.instructorName|trans([], 'SonataProductBundle') }}</dd>
        {% if product.startDate %}
            <dt style="width: auto;">{{ 'training.start_date_title'|trans([], 'SonataProductBundle') }}</dt>
            <dd style="margin-left: 110px;">{{ product.startDate|date() }}</dd>
        {% endif %}
        <dt style="width: auto;">{{ 'training.duration_title'|trans([], 'SonataProductBundle') }}</dt>
        <dd style="margin-left: 110px;">{{ product.duration|trans([], 'SonataProductBundle') }}</dd>
    {% endif %}
{% endblock %}

{#

This file is part of the Sonata package.

(c) Thomas Rabaix <thomas.rabaix@sonata-project.org>

For the full copyright and license information, please view the LICENSE
file that was distributed with this source code.

#}


{#
    Default product template file, you can
      => customize the global template : Product:Product:view.twig
      => rewrite your own template
#}

{% extends 'SonataProductBundle:Product:view.html.twig' %}

{% set variations_properties = ['level', 'duration'] %}

{% block product_title %}{{ product.name }}{% endblock %}

{% block product_delivery %}{% endblock %}

Remove unusued anymore block in Training product view template
Remove unusued anymore block in Training product view template
