ebs/templates/pages/product/edit_service.html.twig
2023-12-21 08:49:38 +01:00

41 lines
1.5 KiB
Twig

{% extends 'layout/base.html.twig' %}
{% form_theme form 'bootstrap_5_layout.html.twig' %}
{% block body %}
<div class="px-3 px-lg-0">
{% include 'components/layout/_title_3.html.twig' with {
name: 'edit_service.form.title'|trans
} %}
{% if info is defined and not null %}
{% include 'components/layout/_text.html.twig' with {
text: info
} %}
{% endif %}
<div class="row justify-content-center">
<div class="col-md-8 col-lg-6 col-xl-5">
{{ form_start(form, {
attr: {
novalidate: true,
}
}) }}
{% include 'components/product/_service_fields.html.twig' %}
{% if product.images is not empty %}
<div class="d-flex flex-column mb-4">
{% for image in product.images %}
{% include 'components/form/_photo_preview.html.twig' with {
image,
entity: product,
} %}
{% endfor %}
</div>
{% endif %}
{% include 'components/product/_address_form.html.twig' %}
{% include 'components/product/service_request/_submit.html.twig' with {
submit: form.submit
} %}
{{ form_end(form) }}
</div>
</div>
</div>
{% endblock %}